Skip to content

Latest commit

 

History

History
76 lines (53 loc) · 3.15 KB

README.md

File metadata and controls

76 lines (53 loc) · 3.15 KB

gulp-gold 🔧, npm link

GitHub release dependencies Status Known Vulnerabilities GitHub license

custom Gulp pack

TL;DR

Used latest tools: Gulp, Babel, Webpack, PostCSS, Prettier

Installing

  • You must have NodeJS (includes NPM) installed
npm install --legacy-peer-deps

"--legacy-peer-deps" is required because of Stylelint, it'll be resolved later

This project uses Gulp v.4 so we should have gulp-cli or npx (goes with NPM v5.3.0+) installed globally to use npm scripts using local Gulp:

npm install -g gulp-cli

Usage

npm scripts

  • npm run build just build with NODE_ENV=production
  • npm run dev or npm start serving from src
  • npm run prod serving from dist
  • npm run lint
  • npm run format

gulp tasks

requires gulp-cli to be installed globally

  • gulp serve clean->lint->build->browsersync->watch in src
  • gulp clean->lint->build
  • gulp lintStyles
  • gulp lintScripts
  • other tasks you can find in the gulpfile

Optional