Skip to content

Latest commit

 

History

History
161 lines (136 loc) · 3.52 KB

README.md

File metadata and controls

161 lines (136 loc) · 3.52 KB

💎 gulpfile-config

Licence

Gulp bundler utility with gulpfile-config.json

Requirements

Gulp CLI version 4.0.0

npm install gulp-cli -g

Installation

npm install gulpfile-config --save

Configuration

You can configure building targets, compilers and bundlers with an easy json configuration file.

As in the example gulpfile-config.json

{
  "targets": {
    "browser": {
      "compile": [
        {
          "input": "test/*.html",
          "output": "docs/",
          "minify": true,
          "options": {
            "root": "/"
          }
        },
        {
          "input": "test/templates/emails/*.mjml",
          "output": "docs/templates/emails/",
          "minify": false
        },
        {
          "input": "test/css/main.scss",
          "output": "docs/css/main.css",
          "minify": true
        },
        {
          "input": "test/js/main.js",
          "output": "docs/js/main.js",
          "minify": true
        }
      ],
      "bundle": []
    },
    "dist": {
      "compile": [
        {
          "input": "src/gulpfile-config.js",
          "output": {
            "file": "dist/gulpfile-config.js",
            "format": "cjs"
          }
        }
      ],
      "bundle": []
    }
  },
  "server": {
    "root": "./docs",
    "path": "/gulpfile-config/",
    "host": "localhost",
    "port": 34999
  },
  "tfs": false
}

Commands

Build, Serve & Watch

gulp

Build Only

gulp build

Build & Watch

gulp start

Build Js Only

gulp buildJs

Build Js & Watch

gulp startJs

Build Css Only

gulp buildCss

Build Css & Watch

gulp startCss

Build Specific Target

gulp build --target dist

Contributing

Pull requests are welcome and please submit bugs 🐞


Install packages

npm install

Build, Serve & Watch

gulp

Build Dist

gulp build --target dist

Thank you for taking the time to provide feedback and review. This feedback is appreciated and very helpful 🌈

GitHub forks GitHub stars GitHub followers

If you find it helpful, feel free to contribute in keeping this library up to date via PayPal

PayPal


Contact

Twitter Follow


Release Notes

Changelog here.