Skip to content

Commit

Permalink
Adding a grunt task to create the noder-browser.zip file.
Browse files Browse the repository at this point in the history
  • Loading branch information
divdavem committed May 22, 2014
1 parent ff988fe commit 56cdd61
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.project
.settings
/dist/noder-browser.zip
15 changes: 14 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,19 @@ module.exports = function(grunt) {
}
}
},
compress: {
noderBrowserZip: {
options: {
archive: "dist/noder-browser.zip"
},
files: [{
expand: true,
cwd: 'dist/browser',
src: ['**/*.js']
}]

}
},
jshint: {
sources: ['package.json', '*.js', 'tasks/**/*.js', 'build/**/*.js', 'src/**/*.js', 'spec/**/*.js', '!spec/**/*.error.js', '!spec/browser/json2.js'],
dist: ['dist/*/noder.js'],
Expand Down Expand Up @@ -323,7 +336,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('atpackager');
require('atpackager').loadPlugin('./atpackager');

grunt.registerTask('build', ['clean', 'atpackager', 'uglify', 'gzip', 'doc']);
grunt.registerTask('build', ['clean', 'atpackager', 'uglify', 'gzip', 'compress', 'doc']);
grunt.registerTask('test', ['jsbeautifier:check', 'jshint', 'mocha', 'karma:unit']);
grunt.registerTask('ci', ['jsbeautifier:check', 'jshint', 'mocha', 'karma:ci']);
grunt.registerTask('doc', ['copy:docData', 'copy:docHtml', 'markdown:doc']);
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"expect.js": "0.2.0",
"grunt": "0.4.2",
"grunt-contrib-clean": "0.4.1",
"grunt-contrib-compress": "0.9.1",
"grunt-contrib-copy": "0.5.0",
"grunt-contrib-jshint": "0.3.0",
"grunt-contrib-uglify": "0.4.0",
Expand Down

0 comments on commit 56cdd61

Please sign in to comment.