@100tal-seg/seg-react
SEG SDK
Last updated 4 months ago by uv-w .
MIT · Original npm · Tarball · package.json
$ cnpm install @100tal-seg/seg-react 
SYNC missed versions from official npm registry.

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: {}
});

Current Tags

  • 0.0.2                                ...           latest (4 months ago)

1 Versions

  • 0.0.2                                ...           4 months ago
Maintainers (2)
Downloads
Today 0
This Week 1
This Month 6
Last Day 0
Last Week 3
Last Month 5
Dependencies (90)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |