2.0.6 • Published 28 days ago
create-two-scripts v2.0.6
EngLish | 中文文档
Introduction
Create-two-scripts, a simple react application front-end scaffolding tool
Description
node >= 10.13.0, webpack >= 5.x and react >= 16.9.x, suppest react + ts/js.
Usage
Install
npm install -g create-two-scripts
// or
yarn global add create-two-scripts
Command
// init project
two init <name>
// start project
two start
// build project
two build
Options
1、Add config file two.config.js
module.exports = {
entry: {},
devServer: {
host: '0.0.0.0',
port: 3001,
open: false,
},
};
2、Support params
name | option | env | desc |
---|---|---|---|
Use ts | -t, --ts | development / production | support typescript |
Use esbuild | -es, --esbuild | development / production | Support esbuild, ast based babel plugins are not supported.(ex: babel-plugin-import) |
Custom port | --port | development | Set port inline |
use esbuild demo
two start -es
two build -es
use js demo, can support typescript
two start
two build
Reference
2.0.6
28 days ago
2.0.4
29 days ago
2.0.3
2 years ago
2.0.2
2 years ago
2.0.1
2 years ago
2.0.0
2 years ago
2.0.0-alpha.0
2 years ago
1.0.9
2 years ago
1.0.9-alpha
2 years ago
1.0.8-alpha.0
2 years ago
1.0.7-alpha.0
2 years ago
1.0.6-alpha.0
2 years ago
1.0.5-alpha.0
2 years ago
1.0.4-alpha.0
2 years ago
1.0.3-alpha.0
2 years ago
1.0.2-alpha.0
2 years ago
1.0.1-alpha.0
2 years ago
1.0.0-alpha.0
2 years ago
1.0.0-alpha.1
2 years ago