https://github.com/lessfish/jsj
个人写 demo 的脚手架
https://github.com/lessfish/jsj
Last synced: 11 months ago
JSON representation
个人写 demo 的脚手架
- Host: GitHub
- URL: https://github.com/lessfish/jsj
- Owner: lessfish
- Created: 2017-08-08T03:38:12.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-05-17T02:01:34.000Z (over 1 year ago)
- Last Synced: 2025-01-09T02:33:26.932Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 444 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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~~
```