pluralsight-gulp
You've built your JavaScript application but how do you automate testing, code analysis, running it locally or deploying it? These redundant tasks can consume valuable time and resources. Stop working so hard and take advantage of JavaScript task automation using Gulp to streamline these tasks and give you back more time in the day. Studying this repo can help clarify how Gulp works, jump-start task automation with Gulp, find and resolve issues faster, and be a more productive.
Requirements
- Install Node
- on OSX install home brew and type
brew install node
- on Windows install chocolatey
- Read here for some tips on Windows
- open command prompt as administrator
- type
choco install nodejs
- type
choco install nodejs.install
- type
- on OSX install home brew and type
- On OSX you can alleviate the need to run as sudo by following these instructions. I highly recommend this step on OSX
- Open terminal
- Type
npm install -g node-inspector bower gulp
Quick Start
Prior to taking the course, clone this repo and run the content locally
$ npm install
$ bower install
$ npm start
Install the packages for testing
npm install --save-dev karma chai karma-chai karma-chai-sinon karma-chrome-launcher karma-coverage karma-growl-reporter karma-mocha karma-phantomjs-launcher karma-sinon mocha mocha-clean sinon-chai sinon phantomjs
Or the specific versions for this course
npm install --save-dev chai@1.10.0 karma@0.12.31 karma-chai@0.1.0 karma-chai-sinon@0.1.4 karma-chrome-launcher@0.1.7 karma-coverage@0.2.7 karma-growl-reporter@0.1.1 karma-mocha@0.1.10 karma-phantomjs-launcher@0.1.4 karma-sinon@1.0.4 mocha@2.1.0 mocha-clean@0.4.0 phantomjs@1.9.13 sinon@1.12.2 sinon-chai@2.6.0
Migrating to Gulp 4
If a previous version is installed then you may need to uninstall that before installing v4
npm install -g "gulpjs/gulp#4.0"
npm install -g "gulpjs/gulp-cli"
npm install "gulpjs/gulp#4.0" --save-dev
gulp --tasks-simple
https://app.pluralsight.com/library/courses/javascript-build-automation-gulpjs/recommended-courses