Skip to content

Instantly share code, notes, and snippets.

@daviddassau
Created September 12, 2017 01:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daviddassau/e1413c0490b185678b97120fd88b2c6a to your computer and use it in GitHub Desktop.
Save daviddassau/e1413c0490b185678b97120fd88b2c6a to your computer and use it in GitHub Desktop.
Do touch .gitignore, and type .DS_Store in it, then type lib/node_modules in it
Make "dist" "javascripts" "lib" and "styles" directories
Touch javascripts/main.js
Touch index.html
Touch styles/main.css
Do boilerplate code
npm install grunt-cli -g
CD into lib folder
npm init
Hit enter until you see daviddassau$
npm install grunt grunt-contrib-jshint matchdep grunt-contrib-watch jshint-stylish --save-dev
Type "use strict"; into main.js
Do a rm package-lock.json to remove the package-lock JSON file
touch Gruntfile.js
Put the gruntfile stuff in it. https://gist.githubusercontent.com/morecallan/732a2923b18c99c14ffd8d9838bf3410/raw/c0366cae2d64bf71c18a67be042880873a4bb97e/1_linting_GruntFile.js
CD back out into your main directory
Do your git status/add/commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment