Skip to content

thxl2010/duyb-cli-gulp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

duyb-cli-gulp

NPM Downloads NPM Version License Dependency Status devDependency Status Code Style

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

  1. Fork it on GitHub!
  2. Clone the fork to your own machine.
  3. Checkout your feature branch: git checkout -b my-awesome-feature
  4. Commit your changes to your own branch: git commit -am 'Add some feature'
  5. Push your work back up to your fork: git push -u origin my-awesome-feature
  6. 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 1255248666@qq.com (https://gihub.com/thxl2010)

About

cli for gulp web project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published