cli for gulp web project
static web app workflow
$ yarn add duyb-cli-gulp
# or npm
$ npm install duyb-cli-gulp
- create pages.config.js file in root
module.exports = {
// demo: data object for swig ...
data: {
menus: [
{
name: 'Home',
icon: 'aperture',
link: 'index.html',
},
{
name: 'Features',
link: 'features.html',
},
{
name: 'About',
link: 'about.html',
},
{
name: 'Contact',
link: '#',
children: [
{
name: 'Twitter',
link: 'https://twitter.com/thxl2010',
},
{
name: 'About',
link: 'https://weibo.com/thxl2010',
},
{
name: 'divider',
},
{
name: 'About',
link: 'https://github.com/thxl2010',
},
],
},
],
pkg: require('./package.json'),
date: new Date(),
// ...
},
};
-
gulp task in NPM Scripts
{ "scripts": { "clean": "duyb-cli-gulp clean", "dev": "duyb-cli-gulp dev", "build": "duyb-cli-gulp build" } }
- 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!