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] ...@@ -12,11 +12,8 @@ $ yarn create nemean [appName]
## Boilerplates ## Boilerplates
- `ant-design-pro` - Create project with a layout-only ant-design-pro boilerplate, use together with umi block. - `nemean-pro` - Create project with a layout-only nemean-pro boilerplate, use together with umi block.
- `app` - Create project with a simple boilerplate, support typescript. - `nemean-simple` - Create project with a simple boilerplate, support typescript.
- `block` - Create a umi block.
- `library` - Create a library with umi.
- `plugin` - Create a umi plugin.
## Usage Example ## Usage Example
...@@ -24,39 +21,18 @@ $ yarn create nemean [appName] ...@@ -24,39 +21,18 @@ $ yarn create nemean [appName]
$ yarn create nemean $ yarn create nemean
? Select the boilerplate type (Use arrow keys) ? 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. nemean-pro - Create project with a layout-only nemean-pro boilerplate, use together with umi block.
❯ app - Create project with a simple boilerplate, support typescript. ❯ nemean-simple - Create project with a simple boilerplate, support typescript.
block - Create a umi block.
library - Create a library with umi.
plugin - Create a umi plugin.
? Do you want to use typescript? (y/N) ? 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) ? Which language do you want to use? JavaScript
❯◯ antd > git clone http://platform.kuopu.net:9999/gitlab/nemean-group/nemean-simple.git --depth=1 nemean-simple-demo
◯ dva > [Sylvanas] Prepare js environment...
◯ code splitting > [JS] Clean up...
◯ dll 📋 Copied to clipboard, just use Ctrl+V
✨ File Generate Done
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
``` ```
## FAQ ## FAQ
......
...@@ -41,7 +41,7 @@ class AntDesignProGenerator extends BasicGenerator { ...@@ -41,7 +41,7 @@ class AntDesignProGenerator extends BasicGenerator {
name: 'language', name: 'language',
type: 'list', type: 'list',
message: 'Which language do you want to use?', message: 'Which language do you want to use?',
choices: ['JavaScript'], choices: ['JavaScript', 'TypeScript'],
}, },
]; ];
return this.prompt(prompts).then(props => { return this.prompt(prompts).then(props => {
......
{ {
"name": "create-nemean", "name": "create-nemean",
"version": "0.0.24", "version": "0.0.26",
"description": "Creates a UmiJS application using the command line.", "description": "Creates a UmiJS application using the command line.",
"homepage": "https://github.com/umijs/create-umi", "homepage": "https://github.com/umijs/create-umi",
"bugs": { "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