mirror of
https://github.com/BorysLevytskyi/BitwiseCmd.git
synced 2025-12-10 06:52:05 +01:00
Implemented copying of other files from directory
This commit is contained in:
15
Gruntfile.js
15
Gruntfile.js
@@ -9,7 +9,7 @@ module.exports = function(grunt) {
|
||||
},
|
||||
build: {
|
||||
src: 'src/**/*.js',
|
||||
dest: 'build/bitwisecmd.min.js'
|
||||
dest: 'build/js/bitwisecmd.min.js'
|
||||
}
|
||||
},
|
||||
cssmin: {
|
||||
@@ -22,15 +22,24 @@ module.exports = function(grunt) {
|
||||
'build/css/styles.css': ['src/css/styles.css']
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
copy: {
|
||||
files: {
|
||||
src: 'src/*.*',
|
||||
dest: 'build/',
|
||||
flatten: true,
|
||||
expand: true
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// Load the plugin that provides the "uglify" task.
|
||||
grunt.loadNpmTasks('grunt-contrib-uglify');
|
||||
grunt.loadNpmTasks('grunt-contrib-cssmin');
|
||||
grunt.loadNpmTasks('grunt-contrib-copy');
|
||||
|
||||
|
||||
// Default task(s).
|
||||
grunt.registerTask('default', ['uglify','cssmin']);
|
||||
grunt.registerTask('default', ['uglify','cssmin','copy']);
|
||||
|
||||
};
|
||||
@@ -17,7 +17,9 @@
|
||||
},
|
||||
"homepage": "https://github.com/BorysLevytskyi/BitwiseCmd",
|
||||
"devDependencies": {
|
||||
"grunt-contrib-copy": "^0.8.0",
|
||||
"grunt-contrib-cssmin": "^0.12.2",
|
||||
"grunt-contrib-uglify": "^0.9.1"
|
||||
"grunt-contrib-uglify": "^0.9.1",
|
||||
"grunt-processhtml": "^0.3.7"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user