๐Ÿ“ฆ lencx / create-mpl

โšก๏ธ Create a project in seconds!

โ˜… 60 stars โ‘‚ 14 forks ๐Ÿ‘ 60 watching โš–๏ธ MIT License
clielectronextensionminiprogrammplreactremixscaffoldtemplatevitevuewasm
๐Ÿ“ฅ Clone https://github.com/lencx/create-mpl.git
HTTPS git clone https://github.com/lencx/create-mpl.git
SSH git clone git@github.com:lencx/create-mpl.git
CLI gh repo clone lencx/create-mpl
lencx lencx feat: add tauri (#7) 3eafc01 3 years ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ bin
๐Ÿ“ src
๐Ÿ“„ .gitignore
๐Ÿ“„ LICENSE
๐Ÿ“„ package.json
๐Ÿ“„ README.md
๐Ÿ“„ tsconfig.json
๐Ÿ“„ tsup.config.ts
๐Ÿ“„ README.md

create-mpl

Create a project in seconds!

asciicast

Usage

With NPM:

npm init mpl@latest

With Yarn:

yarn create mpl

With PNPM:

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.

# --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 - you can also submit a PR to list your template there.

> npm init mpl@latest my-app --type github
โšก๏ธ v0.1.x
โœ” github owner: โ€ฆ <owner>
โœ” github repo: โ€ฆ <repo>
โœ” repo branch: โ€ฆ <branch>
โœ” sub dir: โ€ฆ <sub_dir> # '/' - root path
[dgh::download] <owner>/<repo>:<branch>/<sub_dir> /<your_path>/my-app

$ cd my-app

FAQ

mpl FAQ - Encountered an unknown error, please try again after clearing the cache.

rm -rf $(npm get cache)/_npx/*

Related