An open API service indexing awesome lists of open source software.

https://github.com/lessfish/jsj

个人写 demo 的脚手架
https://github.com/lessfish/jsj

Last synced: 11 months ago
JSON representation

个人写 demo 的脚手架

Awesome Lists containing this project

README

          

# jsj

## step - 0

```bash
git clone git@github.com:lessfish/jsj.git
```

## step - 1

open file `cli.js`, edit this line:

```js
// your local repo path here
let basePath = '/Users/fish/github/jsj/'
```

change the `basePath` according to the position of your cloned repo

## step - 2

`cd` to the cloned repo in the command line, and then run:

```bash
npm install
npm link
```

## step - 3

如果输入 `` 参数,可创建文件夹并 init,如果没有,则直接在当前文件夹中 init

```bash
jsj cra
jsj cra-ts
jsj cra-router # 用于测试多 router 场景
jsj cra-multi-router # router 根据文件夹列表自动生成,用于写多 router demo
jsj webpack-init # webpack 最简配置,主要用来测试 js
```

~~The deprecated ones:~~

```
~~jsj gulp-simple ~~(deprecated)
~~jsj gulp ~~(deprecated)
~~jsj webpack-simple ~~(deprecated)
~~jsj webpack ~~(deprecated)
~~jsj webpack-init-4 # webpack 最简配置,主要用来测试 js~~
```