Copy components definitions to the dist directory
This commit is contained in:
+11
-1
@@ -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');
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user