Skip to content

Commit 62fb76e

Browse files
committed
add copy task and copy template to distribution directory
1 parent 380ab14 commit 62fb76e

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

Gruntfile.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,16 @@ module.exports = function(grunt) {
2828
dest: 'build/<%= pkg.name %>.min.css'
2929
}
3030
},
31+
copy: {
32+
template : {
33+
files: [
34+
{
35+
src: ['src/angular-advanced-searchbox.html'],
36+
dest: 'build/angular-advanced-searchbox.html'
37+
}
38+
]
39+
}
40+
},
3141
jshint: {
3242
all: [
3343
'./src/*.js', '*.json'
@@ -42,8 +52,9 @@ module.exports = function(grunt) {
4252
grunt.loadNpmTasks('grunt-contrib-uglify');
4353
grunt.loadNpmTasks('grunt-contrib-cssmin');
4454
grunt.loadNpmTasks('grunt-contrib-jshint');
55+
grunt.loadNpmTasks('grunt-contrib-copy');
4556

4657
// Default task(s).
47-
grunt.registerTask('default', ['jshint:all', 'uglify', 'cssmin']);
58+
grunt.registerTask('default', ['jshint:all', 'uglify', 'cssmin', 'copy']);
4859

4960
};

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"homepage": "https://github.com/dnauck/angular-advanced-searchbox",
3131
"devDependencies": {
3232
"grunt": "^0.4.5",
33+
"grunt-contrib-copy": "^0.7.0",
3334
"grunt-contrib-cssmin": "^0.10.0",
3435
"grunt-contrib-jshint": "^0.10.0",
3536
"grunt-contrib-uglify": "^0.6.0"

0 commit comments

Comments
 (0)