Skip to content

Commit

Permalink
add task to update jsdelivr CDN repo
Browse files Browse the repository at this point in the history
  • Loading branch information
hgoebl committed Apr 30, 2014
1 parent 7f67b44 commit 9193527
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,21 @@ module.exports = function (grunt) {
files: '<%= jshint.lib_test.src %>',
tasks: ['jshint:lib_test', 'jasmine_node']
}
},
copy: {
jsdelivr: {
files: [
{
expand: true,
src: [
'mobile-detect.min.js',
'mobile-detect.js',
'mobile-detect-modernizr.js'
],
dest: '../jsdelivr/files/mobile-detect.js/<%= pkg.version %>/'
}
]
}
}
});

Expand All @@ -98,9 +113,11 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-exec');
grunt.loadNpmTasks('grunt-jsdoc');
grunt.loadNpmTasks('grunt-jasmine-node');
grunt.loadNpmTasks('grunt-contrib-copy');

// Default task.
grunt.registerTask('default', ['jshint', 'exec:generate', 'jasmine_node', 'uglify']);
grunt.registerTask('dev', ['jshint']);
grunt.registerTask('gh-pages', ['jshint', 'exec:generate', 'jsdoc']);
grunt.registerTask('jsdelivr', ['copy:jsdelivr']);
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"grunt-contrib-uglify": "~0.2.0",
"grunt-contrib-watch": "~0.3.1",
"grunt-jasmine-node": "~0.1.0",
"grunt-contrib-copy": "~0.4.1",
"grunt-jsdoc": "~0.4.0",
"grunt-exec": "~0.4.2",
"uglify-js": "1.3.4",
Expand Down

0 comments on commit 9193527

Please sign in to comment.