Creates a titanOne of react app using the command line.
Usage
$ yarn create titanod [appName]
Boilerplates
ant-design-pro
- Create project with a layout-only ant-design-pro boilerplate, use together with umi block.app
- Create project with a standard titanOne structure boilerplate, support build web or electron app.block
- Create a umi block.library
- Create a library with umi.plugin
- Create a umi plugin.titanOne-design-pro
- Create project with a private titanOne pro boilerplate.
Usage Example
$ yarn create titanod
? Select the boilerplate type (Use arrow keys)
❯ app - Create project with a private titanOne pro boilerplate, support build web or electron app.
block - Create a umi block.
plugin - Create a umi plugin.
? Please choose target ide target environment? (Use arrow keys)
❯ electron
web
? Please input application name (quickstart): (quickstart)
identical ../config/electron/version.json
identical ../tmp_build.lst
identical ../tmp_Node.js打包.lst
identical ../config/electron/init.json
identical ../bin/electron.bat
identical ../bin/electron.sh
identical ../tool/app/utils/index.js
identical ../tool/utils/config.js
identical main.js
identical package.json
identical .env
DONE Begin to install dependencies of quickstart-pc project, please wait patiently ...
START Have successed to installed and start now, you can visit: /index/index.html
✨ File Generate Done
FAQ
yarn create titanod
command failed
这个问题基本上都是因为没有添加 yarn global module 的路径到 PATH 环境变量引起的。
先执行 yarn global bin
拿到路径,然后添加到 PATH 环境变量里。
$ yarn global bin
/usr/local/bin
你也可以尝试用 npm:
$ npm create titanod
或者手动安装 create-titanod,并执行他,
$ npm install create-titanod -g
$ create-titanod
Questions & Suggestions
Please open an issue here.