Gulp

You may have noticed, but our Gulp file fails to run. Basically, everything is well up to the tests of the minified JavaScript files. Luckily, we can fix this really easy! In the karma.min.conf.js file, simply make sure you browserify everything in the spec folder:

[...]   preprocessors: {      '../prod/scripts/*.js': ['browserify'],      'spec/*.js': ['browserify']   },[...]

That should fix your Gulp run. Everything should work now, testing, linting, minifying, and so on. Another thing though, we have added the Node.js tests, which are not yet included in our gulpfile. We can simply create an extra task and run jasmine-node tests. Of course, we need an extra Karma plugin, the karma-jasmine-node plugin (https://www.npmjs.com/package/gulp-jasmine-node ...

Get Continuous Integration, Delivery, and Deployment now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.