Completed Labs for TDD with React and ES6 by Chris Minnick
You can clone the entire repository by running the command:
git clone https://github.com/watzthisco/tdd-react-es6-labs
This will create a new directory called tdd-react-es6-labs. Change into this directory with this command:
cd tdd-react-es6-labs
Each lab in the course (starting with Lab 7) is in its own branch. The branches are named in labxx
format.
To see the finished files for Lab 7, for example, run this command:
git checkout lab07
- Install Node
- Install git
- Install gulp 4 globally (follow instructions here https://demisx.github.io/gulp4/2015/01/15/install-gulp4.html)
- In the console, type:
npm install
- Extract node_modules.zip
- Test gulp commands using the local version of gulp with the following command:
node_modules/.bin/gulp build
- If that works, try using the appropriate shell script in the root of the project (either gulp.sh (Unix and Mac) or gulp.cmd (Windows)
mac: ./gulp.sh build
or
windows: gulp build
gulp build
To Lint:
Use gulp jshint
for JSHint
Use gulp eslint
for ESLint
Run unit tests in Karma
- Start Karma server:
gulp karma
- Open some browsers and go to http://localhost:9876 in each
gulp test
Run unit tests in the console:
gulp jasmine
or
gulp jest
written by Chris Minnick, copyright 2016, WatzThis?