duyb-cli-gulp
v1.0.1
Published
cli for gulp web project
Downloads
1
Readme
duyb-cli-gulp
cli for gulp web project
static web app workflow
Installation
$ yarn add duyb-cli-gulp
# or npm
$ npm install duyb-cli-gulp
Usage
- 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" } }
Contributing
- 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!
License
MIT © Duyb [email protected] (https://gihub.com/thxl2010)