Sample code - chapter by chapter
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
1820EN_01_Code
1820EN_02_Code
1820EN_03_Code
1820EN_04_Code
1820EN_05_Code
1820EN_06_Code
1820EN_07_Code
1820EN_08_Code
1820EN_09_Code
1820EN_10_Code
1820EN_11_Code
build
lib
.gitignore
.travis.yml
README.md
grunt.js
karma.conf.js
package.json

README.md

Book Samples

Sample code - chapter by chapter

Each chapter has its own folder, which will correspond to the zip file name for that chapter on submission. Within each chapter folder is a folder for each sample. The folder should contain enough to run the sample independent of the other samples, including tests. There is an index (i.e. 01, 02, etc.) in front of each sample so that you can see the order in which they appear in the chapter. Where the sample has a corresponding Plunk, the Plunk ID is added in brackets after the name of the sample in the folder name.

Library files

There is a common folder for libraries called lib.

Testing

There is a basic grunt file that can run all the unit tests.

You need to install the grunt CLI and testacular globally:

npm -g install grunt-cli testacular

You also need the grunt library locally (using the values in the package.json):

npm install grunt

Run grunt to check for jslint errors, generate HTML2JS templates and execute all the samples' tests.

grunt.cmd