Skip to content

Commit

Permalink
Added copy task to skin build jplayer#260
Browse files Browse the repository at this point in the history
  • Loading branch information
thepag committed Dec 14, 2014
1 parent 0a97610 commit f5b08f2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,15 @@ module.exports = function(grunt) {
}
},

copy: {
skins: {
files: [
{expand: true, cwd: 'src/skin/blue.monday/', src: ['image/**', 'mustache/**'], dest: 'dist/skin/blue.monday/'},
{expand: true, cwd: 'src/skin/pink.flag/', src: ['image/**', 'mustache/**'], dest: 'dist/skin/pink.flag/'}
]
},
},

jshint: {

test: {
Expand Down Expand Up @@ -122,6 +131,7 @@ module.exports = function(grunt) {

grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-sass');
grunt.loadNpmTasks('grunt-mxmlc');
Expand All @@ -132,5 +142,5 @@ module.exports = function(grunt) {
grunt.registerTask('build', ['js', 'swf', 'css']);
grunt.registerTask('js', ['concat', 'uglify']);
grunt.registerTask('swf', ['mxmlc']);
grunt.registerTask('css', ['sass']);
grunt.registerTask('css', ['sass', 'copy:skins']);
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"flex-sdk": "~4.6.0-0",
"grunt": "~0.4.5",
"grunt-contrib-concat": "~0.5.0",
"grunt-contrib-copy": "^0.7.0",
"grunt-contrib-jshint": "~0.10.0",
"grunt-contrib-uglify": "~0.6.0",
"grunt-mxmlc": "~0.5.2",
Expand Down

0 comments on commit f5b08f2

Please sign in to comment.