0.1.2 • Published 3 years ago

gserve v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

GServe

License NPM Downloads NPM Version Dependency Status devDependency Status Code Style

A gulp workflow for web app

Installation

$ npm install gserve --dev

# or yarn
$ yarn add gserve --dev

Usage

  • Default Project Framework
      .
      ├── src
      |    ├── public
      |    ├── assets
      |    |     ├── styles ··················· Sass Stylesheet
      |    |     ├── images
      |    |     ├── fonts
      |    |     └── scripts ·················· Javascript File
      |    └── index.html
      ├── pages.config.js ····················· Gserve Config
      └── package.json
    • pages.config.js
        // default config
        module.exports = {
          output: 'dist',
          temp: 'dist/temp',
          src: 'src',
          path: {
            style: 'assets/styles/*.scss',
            script: 'assets/scripts/*.js',
            image: 'assets/images/**',
            font: 'assets/fonts/**',
            html: '*.html'
          },
          public: 'public',
          data: {}
        }
  • Usage
      Start develop server:
        yarn gserve develop
      
      Build for prouduction:
        yarn gserve build

Related

  • zce/caz - A simple yet powerful template-based Scaffolding tools.

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 © lhynick