1.0.0-beta.5 • Published 4 years ago

create-a v1.0.0-beta.5

Weekly downloads
25
License
-
Repository
-
Last release
4 years ago

Create-a · GitHub license npm version npm downloads PRs Welcome

Create project using the command line.

Usage

$ yarn create a [projectName]

Boilerplates

  • react-component - Create a React Component, base on umi with umd and esm build.

Usage Example

$ 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

FAQ

yarn create a command failed

try

$ npm create a

or

$ npm install create-a -g
$ create-a

LICENSE

MIT