|
2 | 2 | * This gruntfile is based on the project-gruntfile found at: |
3 | 3 | * https://github.com/Breinify/brein-javascript/tree/master/grunt/project-gruntfile.js |
4 | 4 | * |
5 | | - * Template Version: 1.0.2 |
| 5 | + * Template Version: 1.1.0 |
6 | 6 | * |
7 | 7 | * Change Log: |
8 | 8 | * |
| 9 | + * 1.1.0 |
| 10 | + * - removed Jasmine from grunt build script (because of dependency issues) |
| 11 | + * |
9 | 12 | * 1.0.2 |
10 | 13 | * - added possibility to define a port for the server |
11 | 14 | * - added replacement of placeholders in JavaScripts ({{PROJECT.VERSION}}) |
@@ -54,8 +57,6 @@ module.exports = function (grunt) { |
54 | 57 | //noinspection JSUnresolvedFunction |
55 | 58 | grunt.loadNpmTasks('grunt-string-replace'); |
56 | 59 | //noinspection JSUnresolvedFunction |
57 | | - grunt.loadNpmTasks('grunt-contrib-jasmine'); |
58 | | - //noinspection JSUnresolvedFunction |
59 | 60 | //grunt.loadNpmTasks('grunt-sync-json'); |
60 | 61 |
|
61 | 62 | var uglifySaveLicense = require('uglify-save-license'); |
@@ -353,18 +354,6 @@ module.exports = function (grunt) { |
353 | 354 | {expand: true, cwd: 'src/plugins', src: 'Unsubscribe.js', dest: 'dist', rename: function(dest) { return dest + '/breinify-unsubscribe.js' } } |
354 | 355 | ] |
355 | 356 | } |
356 | | - }, |
357 | | - |
358 | | - /* |
359 | | - * Task to test stuff with Jasmine |
360 | | - */ |
361 | | - jasmine: { |
362 | | - test: { |
363 | | - src: ['dist/<%= pkg.name %>.js', 'dist/breinify-activities.js', 'dist/breinify-trigger.js', 'dist/breinify-recommendations.js', 'dist/breinify-alertme.js', 'dist/breinify-pickup.js', 'dist/breinify-sms.js', 'dist/breinify-ui-popup.js', 'dist/breinify-opt-status.js', 'dist/breinify-ui-validator.js'], |
364 | | - options: { |
365 | | - specs: ['specs/**/*.js', '!specs/**/*.jquery.js'] |
366 | | - } |
367 | | - } |
368 | 357 | } |
369 | 358 | }); |
370 | 359 |
|
@@ -431,18 +420,11 @@ module.exports = function (grunt) { |
431 | 420 | grunt.task.run('clean:setup', 'combine:false', 'createBowerDir', 'bower:setup', 'dist', 'copy:setup'); |
432 | 421 | }); |
433 | 422 |
|
434 | | - //noinspection JSUnresolvedFunction |
435 | | - grunt.registerTask('test', 'Tests the files using Jasmine', function () { |
436 | | - |
437 | | - //noinspection JSUnresolvedVariable |
438 | | - grunt.task.run('dist', 'jasmine:test'); |
439 | | - }); |
440 | | - |
441 | 423 | //noinspection JSUnresolvedFunction |
442 | 424 | grunt.registerTask('publish', 'Publishes the package to npm', function () { |
443 | 425 |
|
444 | 426 | //noinspection JSUnresolvedVariable |
445 | | - grunt.task.run('dist', 'jasmine:test'); |
| 427 | + grunt.task.run('dist'); |
446 | 428 | }); |
447 | 429 |
|
448 | 430 | //noinspection JSUnresolvedFunction |
|
0 commit comments