Update grunt.js to use grunt-contrib-copy instead of grunt-cp
This commit is contained in:
18
grunt.js
18
grunt.js
@@ -1,7 +1,7 @@
|
|||||||
/* global module:false */
|
/* global module:false */
|
||||||
module.exports = function(grunt) {
|
module.exports = function(grunt) {
|
||||||
grunt.loadNpmTasks('grunt-css');
|
grunt.loadNpmTasks('grunt-css');
|
||||||
grunt.loadNpmTasks('grunt-cp');
|
grunt.loadNpmTasks('grunt-contrib-copy');
|
||||||
// Project configuration.
|
// Project configuration.
|
||||||
grunt
|
grunt
|
||||||
.initConfig({
|
.initConfig({
|
||||||
@@ -27,14 +27,12 @@ module.exports = function(grunt) {
|
|||||||
dest : 'dist/<%= pkg.name %>/css/<%= pkg.name %>.css'
|
dest : 'dist/<%= pkg.name %>/css/<%= pkg.name %>.css'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
cp: {
|
copy: {
|
||||||
i18n: {
|
dist: {
|
||||||
src: 'i18n',
|
files: {
|
||||||
dest: 'dist/jquery.uls/i18n'
|
'dist/jquery.uls/i18n/': 'i18n/**',
|
||||||
},
|
'dist/jquery.uls/images/': 'images/**'
|
||||||
images: {
|
}
|
||||||
src: 'images',
|
|
||||||
dest: 'dist/jquery.uls/images'
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
min : {
|
min : {
|
||||||
@@ -95,7 +93,7 @@ module.exports = function(grunt) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
// Default task.
|
// Default task.
|
||||||
grunt.registerTask('default', 'lint cssmin concat min cp csslint');
|
grunt.registerTask('default', 'lint cssmin concat min copy csslint');
|
||||||
grunt.registerTask('test', 'lint qunit');
|
grunt.registerTask('test', 'lint qunit');
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user