Skip to content

Commit 40db125

Browse files
committed
Build: Define an npm script & a Grunt task for Jenkins
1 parent 309052e commit 40db125

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Gruntfile.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,11 @@ grunt.registerTask( "default", [
338338
"build",
339339
"compare_size"
340340
] );
341+
grunt.registerTask( "jenkins", [
342+
"npmcopy",
343+
"build",
344+
"compare_size"
345+
] );
341346
grunt.registerTask( "build", [ "max", "concat", "uglify" ] );
342347
grunt.registerTask( "ci", [ "default" ] );
343348
grunt.registerTask( "karma-browserstack-current", [

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"scripts": {
1212
"browserstack": "grunt npmcopy && grunt karma-browserstack-current && grunt karma-browserstack-legacy",
1313
"ci": "grunt ci",
14-
"test": "grunt ci"
14+
"test": "grunt ci",
15+
"jenkins": "grunt jenkins"
1516
},
1617
"maintainers": [
1718
{

0 commit comments

Comments
 (0)