Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lencx/create-mpl
⚡️ Create a project in seconds!
https://github.com/lencx/create-mpl
cli electron extension miniprogram mpl react remix scaffold template vite vue wasm
Last synced: 3 months ago
JSON representation
⚡️ Create a project in seconds!
- Host: GitHub
- URL: https://github.com/lencx/create-mpl
- Owner: lencx
- License: mit
- Created: 2021-10-30T06:49:04.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-25T16:51:36.000Z (about 2 years ago)
- Last Synced: 2024-05-23T06:31:33.251Z (8 months ago)
- Topics: cli, electron, extension, miniprogram, mpl, react, remix, scaffold, template, vite, vue, wasm
- Language: TypeScript
- Homepage:
- Size: 46.9 KB
- Stars: 59
- Watchers: 7
- Forks: 13
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# create-mpl
Create a project in seconds!
[![asciicast](https://asciinema.org/a/455622.svg)](https://asciinema.org/a/455622)
## Usage
With NPM:
```bash
npm init mpl@latest
```With Yarn:
```bash
yarn create mpl
```With PNPM:
```bash
pnpm create mpl
```Then follow the prompts!
## Application Types
- `web` - Web App
- `remix` - Remix
- `vite` - Vite
- `cra` - React
- `umi` - UmiJS
- `vue` - Vuejs
- `svelte` - Svelte
- `angular` - Angular
- `tauri` - Tauri
- `wasm` - WebAssembly
- `mini` - Mini Program
- `taro` - Taro
- `uni` - uni-app
- `electron` - Electron
- `electron-quick-start` - Electron Quick Start
- `electron-quick-start-typescript` - Electron Quick Start (TypeScript)
- `extension` - Extension
- `vscode` - Visual Studio Code
- `chrome` - Chrome
- `github` - GitHub Template (Custom)
- ... - (TODO)You can also directly specify the `project name` and the `app type` you want to use via additional command line options.
```bash
# --type, -t: web | wasm | mini | electron | extension | chrome | github# npm 6.x
npm init mpl@latest my-app --type web# npm 7+, extra double-dash is needed:
npm init mpl@latest my-app -- --type web# yarn
yarn create mpl my-app --type web# pnpm
pnpm create mpl my-app -- --type web
```## Community Template
Check out [awesome/mpl](https://github.com/lencx/awesome/blob/main/mpl.md) - you can also submit a PR to list your template there.
```bash
> npm init mpl@latest my-app --type github
⚡️ v0.1.x
✔ github owner: …
✔ github repo: …
✔ repo branch: …
✔ sub dir: … # '/' - root path
[dgh::download] /:/ //my-app$ cd my-app
```## FAQ
[mpl FAQ](https://github.com/lencx/create-mpl/issues/4) - Encountered an unknown error, please try again after clearing the cache.
`rm -rf $(npm get cache)/_npx/*`
## Related
- [awesome/mpl](https://github.com/lencx/awesome/blob/main/mpl.md) - Awesome mpl template.
- [download-github](https://github.com/lencx/download-github) - ⬇️ Download directory from a GitHub repo.