Skip to content

Instantly share code, notes, and snippets.

@vinkrish
Created January 26, 2020 06:34
Show Gist options
  • Save vinkrish/13312498354a569fee84625a9735eae2 to your computer and use it in GitHub Desktop.
Save vinkrish/13312498354a569fee84625a9735eae2 to your computer and use it in GitHub Desktop.
1.Validate HTML/CSS/JavaScript
2.Minify CSS/JavaScript
3.Compile Typescript or CoffeeScript to JS
3.Compile LESS to CSS
Webpack to bundle or compile javascript into a single minified file that works in the browser.
npm install -g grunt-cli
npm install grunt --save-dev
npm install grunt-contrib-clean --save-dev
npm i grunt-contrib-jshint --save-dev
npm i grunt-contrib-uglify --save-dev
npm i grunt-htmlhint --save-dev
npm i grunt-contrib-htmlmin --save-dev
npm i grunt-contrib-less --save-dev
npm i grunt-contrib-csslint --save-dev
npm i grunt-contrib-cssmin --save-dev
grunt default -v
default -> task
-v -> verbose mode
Gulp:
npm i gulp -g
npm i gulp --save
gulp taskName
gulp default
npm i gulp-uglify --save-dev
npm i [email protected] --save
npm i [email protected] --save-dev
npm i [email protected] --save-dev
npm i [email protected] --save-dev
npm i [email protected] --save-dev
npm i [email protected] --save-dev
npm i [email protected] --save-dev
npm i [email protected] --save-dev
npm i --save-dev gulp-babel babel-preset-es2015
npm i --save-dev del
npm i --save-dev gulp-zip
npm i --save-dev [email protected] [email protected] [email protected]
gulp watch
node server.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment