Commit 290e4521 authored by super-lin0's avatar super-lin0

docs

parent de688c46
Pipeline #160 canceled with stages
......@@ -12,11 +12,8 @@ $ yarn create nemean [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 simple boilerplate, support typescript.
- `block` - Create a umi block.
- `library` - Create a library with umi.
- `plugin` - Create a umi plugin.
- `nemean-pro` - Create project with a layout-only nemean-pro boilerplate, use together with umi block.
- `nemean-simple` - Create project with a simple boilerplate, support typescript.
## Usage Example
......@@ -24,39 +21,18 @@ $ yarn create nemean [appName]
$ yarn create nemean
? Select the boilerplate type (Use arrow keys)
ant-design-pro - Create project with a layout-only ant-design-pro boilerplate, use together with umi block.
❯ app - Create project with a simple boilerplate, support typescript.
block - Create a umi block.
library - Create a library with umi.
plugin - Create a umi plugin.
nemean-pro - Create project with a layout-only nemean-pro boilerplate, use together with umi block.
❯ nemean-simple - Create project with a simple boilerplate, support typescript.
? Do you want to use typescript? (y/N)
? What functionality do you want to enable? (Press <space> to select, <a> to toggle all, <i> to invert selection)
❯◯ antd
◯ dva
◯ code splitting
◯ dll
create abc/package.json
create abc/.gitignore
create abc/.editorconfig
create abc/.env
create abc/.eslintrc
create abc/.prettierignore
create abc/.prettierrc
create abc/.umirc.js
create abc/mock/.gitkeep
create abc/src/assets/yay.jpg
create abc/src/global.css
create abc/src/layouts/index.css
create abc/src/layouts/index.tsx
create abc/src/pages/index.css
create abc/src/pages/index.tsx
create abc/tsconfig.json
create abc/typings.d.ts
📋 Copied to clipboard, just use Ctrl+V
✨ File Generate Done
? Which language do you want to use? JavaScript
> git clone http://platform.kuopu.net:9999/gitlab/nemean-group/nemean-simple.git --depth=1 nemean-simple-demo
> [Sylvanas] Prepare js environment...
> [JS] Clean up...
📋 Copied to clipboard, just use Ctrl+V
✨ File Generate Done
```
## FAQ
......
......@@ -41,7 +41,7 @@ class AntDesignProGenerator extends BasicGenerator {
name: 'language',
type: 'list',
message: 'Which language do you want to use?',
choices: ['JavaScript'],
choices: ['JavaScript', 'TypeScript'],
},
];
return this.prompt(prompts).then(props => {
......
{
"name": "create-nemean",
"version": "0.0.24",
"version": "0.0.26",
"description": "Creates a UmiJS application using the command line.",
"homepage": "https://github.com/umijs/create-umi",
"bugs": {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment