/cli

🐸 A tool set for set up the standard javascript project

Primary LanguageTypeScriptMIT LicenseMIT

🐸 @omni-door/cli

The CLI Tool for set up standard javascript project.

NPM downloads npm version Build Status codecov install size license

install

Several options to get up and running:

  • Clone the repo: git@github.com:omni-door/cli.git
  • Install with npm: npm install @omni-door/cli -g
  • Install with Yarn: yarn global add @omni-door/cli
  • Initial project with npx: npx @omni-door/cli init

omni --help

  Usage: index [options] [command]

  Options:

    -v, --version   output the version number
    -h, --help      output usage information

  Commands:

    init [options]          initialize your project
    new [options] [module]  omni new [module] [-f | -c]
    build                   build your project according to [omni.config.js]
    release [options]       publish your project according to [omni.config.js]

omni init

Initial your project by answer several questions

omni init

Initial your project according to some template

omni init -t

or

omni init --entire

options

Usage: omni init [options]

initialize your project

Options:
  -s, --simple [name]     create a simple React SPA project
  -d, --standard [name]   create a standard  React SPA project
  -e, --entire [name]      create a most versatile  React SPA project
  -t, --toolkit [name]     create a toolkit project
  -c, --components [name]  create a React component library
  -h, --help               output usage information

omni new

options

Usage: omni new [options] [module]

omni new [module] [-f | -c]

Options:
  -f, --fc    create a functional component
  -c, --cc    create a class component
  -h, --help  output usage information

omni build

Build your project according to [omni.config.js]

npm run build

or

omni build

omni release

options

Usage: omni release [options]

publish your project according to [omni.config.js]

Options:
  -i, --ignore            ignore automatic iteration version
  -m, --manual <version>  manual iteration version
  -n, --no-verify         bypass unit-test eslint and stylelint check
  -h, --help              output usage information

Accessible SDK

click here

License

Copyright (c) 2019 Bobby.li

Released under the MIT License