ice-scripts
A cli tool for React Development. Docs.
Install
$ npm install ice-scripts -g
$ ice --help
Cli
Recommended
$ mkdir ice-project
$ cd ice-project
$ ice init project # also support component/block
$ ice dev
$ ice build
$ ice add block
Methods
Not recommended
init({ scaffold })
init project by scaffold:
const { init } = require('ice-scripts');
await init({
template: '@icedesign/lite-scaffold',
// Default: process.cwd()
projectDir: ''
// component/block/project, Default: project
type: ''
});
build({ customWebpackConfig, cliOptions })
build project:
const { build } = require('ice-scripts');
await build({
customWebpackConfig: {},
// ref to bin/ice-build.js
cliOptions: {}
});