$ yarn add wangxc_work_flow --dev
# or npm
$ npm install wangxc_work_flow --save-dev
in your package.json scripts:
"scripts": {
"clean": "wangxc_work_flow clean",
"build": "wangxc_work_flow build",
"develop": "wangxc_work_flow develop"
}
- CLI Usage:
$ wangxc_work_flow <task> [options]
- eg
# Runs the app in development mode
$ wangxc_work_flow serve --port 5210 --open
# Builds the app for production to the `dist` folder
$ wangxc_work_flow build --production
const workFlow = require('work_flow')
const result = workFlow('Wangxc')
└── my-awesome-pages ································· project root
├─ public ········································· static folder
│ └─ favicon.ico ································· static file (unprocessed)
├─ src ············································ source folder
│ ├─ assets ······································ assets folder
│ │ ├─ fonts ···································· fonts folder
│ │ │ └─ pages.ttf ····························· font file (imagemin)
│ │ ├─ images ··································· images folder
│ │ │ └─ logo.png ······························ image file (imagemin)
│ │ ├─ scripts ·································· scripts folder
│ │ │ └─ main.js ······························· script file (babel / uglify)
│ │ └─ styles ··································· styles folder
│ │ ├─ _variables.scss ······················· partial sass file (dont output)
│ │ └─ main.scss ····························· entry scss file (scss / postcss)
│ ├─ layouts ····································· layouts folder
│ │ └─ basic.html ······························· layout file (dont output)
│ ├─ partials ···································· partials folder
│ │ └─ header.html ······························ partial file (dont output)
│ ├─ about.html ·································· page file (use layout & partials)
│ └─ index.html ·································· page file (use layout & partials)
├─ .gitignore ····································· git ignore file
├─ CHANGELOG.md ··································· repo changelog
├─ README.md ······································ repo readme
├─ gulpfile.js ···································· gulp tasks file
├─ package.json ··································· package file
└─ yarn.lock ······································ yarn lock file
- Type:
string
- Details: name string
- Type:
string
- Details: host string
- Default:
''
- Fork it on GitHub!
- Clone the fork to your own machine.
- Checkout your feature branch:
git checkout -b my-awesome-feature
- Commit your changes to your own branch:
git commit -am 'Add some feature'
- Push your work back up to your fork:
git push -u origin my-awesome-feature
- Submit a Pull Request so that we can review your changes.
NOTE: Be sure to merge the latest from "upstream" before making a pull request!
MIT © 虫虫 2475886163@qq.com