Nevertheless! Party Metaphorically

    @100tal-seg/seg-react

    0.0.2 • Public • Published

    seg-react

    A cli tool for React Development. Docs.

    Install

    $ npm install seg-react -g
    
    $ sr --help

    Cli

    Recommended

    $ mkdir ice-project
    $ cd ice-project
    
    $ sr init project # also support component/block
    $ sr dev
    $ sr build
    $ sr add block

    Methods

    Not recommended

    init({ scaffold })

    init project by scaffold:

    const { init } = require('seg-react');
    
    await init({
      template: '@icedesign/lite-scaffold',
      // Default: process.cwd()
      projectDir: ''
      // component/block/project, Default: project
      type: ''
    });

    build({ customWebpackConfig, cliOptions })

    build project:

    const { build } = require('seg-react');
    
    await build({
      customWebpackConfig: {},
      // ref to bin/ice-build.js
      cliOptions: {}
    });

    Keywords

    Install

    npm i @100tal-seg/seg-react

    DownloadsWeekly Downloads

    6

    Version

    0.0.2

    License

    MIT

    Unpacked Size

    553 kB

    Total Files

    77

    Last publish

    Collaborators

    • simple111
    • uv-w