git clone [email protected]:lessfish/jsj.git
open file cli.js
, edit this line:
// your local repo path here
let basePath = '/Users/fish/github/jsj/'
change the basePath
according to the position of your cloned repo
cd
to the cloned repo in the command line, and then run:
npm install
npm link
如果输入 <projectName>
参数,可创建文件夹并 init,如果没有,则直接在当前文件夹中 init
jsj cra <projectName>
jsj cra-ts <projectName>
jsj cra-router <projectName> # 用于测试多 router 场景
jsj cra-multi-router <projectName> # router 根据文件夹列表自动生成,用于写多 router demo
jsj webpack-init <projectName> # webpack 最简配置,主要用来测试 js
The deprecated ones:
~~jsj gulp-simple <projectName>~~(deprecated)
~~jsj gulp <projectName>~~(deprecated)
~~jsj webpack-simple <projectName>~~(deprecated)
~~jsj webpack <projectName>~~(deprecated)
~~jsj webpack-init-4 <projectName> # webpack 最简配置,主要用来测试 js~~