Create-a ·
Create project using the command line.
$ yarn create a [projectName]
react-component
- Create a React Component, base on umi with umd and esm build.
$ yarn create a
? Select the boilerplate type (Use arrow keys)
❯ react-component - Create a React Component, base on umi with umd and esm build.
xxxxx - Create a xxxxxxx.
xxxxxxx - Create a xxxxxxxxxxxxxx.
xxxxxx - Create a xxxxxxxx.
? 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 xxx/package.json
create xxx/.gitignore
create xxx/.editorconfig
create xxx/.eslintrc
create xxx/.prettierrc
create xxx/.umirc.js
create xxx/src/pages/index.tsx
create xxx/src/index.tsx
create xxx/tsconfig.json
create xxx/typings.d.ts
📋 Copied to clipboard, just use Ctrl+V
✨ File Generate Done
try
$ npm create a
or
$ npm install create-a -g
$ create-a
MIT