O'Reilly logo

Continuous Integration, Delivery, and Deployment by Sander Rossel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required