Copy components definitions to the dist directory

This commit is contained in:
kpdecker
2013-11-03 17:20:28 -06:00
parent 60f8aad5c9
commit 6ab579bb2a
2 changed files with 12 additions and 1 deletions
+11 -1
View File
@@ -16,6 +16,15 @@ module.exports = function(grunt) {
},
clean: ["dist", "lib/handlebars/compiler/parser.js"],
copy: {
components: {
files: [
{expand: true, cwd: 'components/', src: ['**'], dest: 'dist/'}
]
}
},
transpile: {
amd: {
type: "amd",
@@ -104,10 +113,11 @@ module.exports = function(grunt) {
this.registerTask('node', ['transpile:cjs']);
this.registerTask('globals', ['packager-fork']);
this.registerTask('release', 'Build final packages', ['amd', 'uglify']);
this.registerTask('release', 'Build final packages', ['copy:components', 'amd', 'uglify']);
// Load tasks from npm
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-requirejs');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
+1
View File
@@ -35,6 +35,7 @@
"eco": "~1.1.0-rc-3",
"grunt": "~0.4.1",
"grunt-contrib-clean": "~0.4.1",
"grunt-contrib-copy": "~0.4.1",
"grunt-contrib-jshint": "~0.6.3",
"grunt-contrib-requirejs": "~0.4.1",
"grunt-contrib-uglify": "~0.2.2",