Copy the icons into the chrome extension folder.

This commit is contained in:
Nicolas Stepien 2013-03-21 01:24:39 +01:00
parent bc7bfddaa7
commit 9520b45246
2 changed files with 13 additions and 2 deletions

View File

@ -47,11 +47,19 @@ module.exports = function(grunt) {
'tmp/script.js'
],
dest: 'builds/<%= pkg.name %>.user.js'
},
}
},
copy: {
userjs: {
// Lazily copy the userscript
src: 'builds/<%= pkg.name %>.user.js',
dest: 'builds/<%= pkg.name %>.js'
},
crx: {
src: 'img/*.png',
dest: 'builds/crx/',
expand: true,
flatten: true
}
},
coffee: {
@ -117,6 +125,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-coffee');
grunt.loadNpmTasks('grunt-contrib-compress');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-exec');
@ -125,9 +134,10 @@ module.exports = function(grunt) {
'coffee:script',
'concat:manifest',
'concat:crx',
'copy:crx',
'concat:userscript',
'concat:userjs',
'concat:metadata',
'copy:userjs',
'clean'
]);
grunt.registerTask('release', ['default', 'exec:commit', 'exec:push', 'compress:crx']);

View File

@ -21,6 +21,7 @@
"grunt-contrib-coffee": "~0.6.3",
"grunt-contrib-compress": "~0.4.4",
"grunt-contrib-concat": "~0.1.3",
"grunt-contrib-copy": "~0.4.0",
"grunt-contrib-watch": "~0.3.1",
"grunt-exec": "~0.4.0"
},