Package Exports
- create-mpl
- create-mpl/dist/index.js
- create-mpl/dist/index.mjs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (create-mpl) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
create-mpl
Create a project in seconds!
Usage
With NPM:
npm init mpl@latestWith Yarn:
yarn create mplWith PNPM:
pnpm create mplThen follow the prompts!
Application Types
web- Web Appremix- Remixvite- Vitecra- Reactumi- UmiJSvue- Vuejssvelte- Svelteangular- Angular
tauri- Tauriwasm- WebAssemblymini- Mini Programtaro- Tarouni- uni-app
electron- Electronelectron-quick-start- Electron Quick Startelectron-quick-start-typescript- Electron Quick Start (TypeScript)
extension- Extensionvscode- Visual Studio Codechrome- 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 webCommunity 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-appFAQ
mpl FAQ - Encountered an unknown error, please try again after clearing the cache.
rm -rf $(npm get cache)/_npx/*
Related
- awesome/mpl - Awesome mpl template.
- download-github - ⬇️ Download directory from a GitHub repo.