Create cdnjs and components dist dirs

This commit is contained in:
kpdecker
2013-11-03 19:03:49 -06:00
parent 7cef79288a
commit 904daba10b
2 changed files with 12 additions and 2 deletions
+4
View File
@@ -11,7 +11,11 @@ Rakefile
*.nuspec
bench/*
configurations/*
components/*
dist/cdnjs/*
dist/components/*
spec/*
src/*
tasks/*
publish/*
vendor/*
+8 -2
View File
@@ -18,9 +18,15 @@ module.exports = function(grunt) {
clean: ["dist", "lib/handlebars/compiler/parser.js"],
copy: {
cdnjs: {
files: [
{expand: true, cwd: 'dist/', src: ['*.js'], dest: 'dist/cdnjs'}
]
},
components: {
files: [
{expand: true, cwd: 'components/', src: ['**'], dest: 'dist/'}
{expand: true, cwd: 'components/', src: ['**'], dest: 'dist/components'},
{expand: true, cwd: 'dist/', src: ['*.js'], dest: 'dist/components'}
]
}
},
@@ -113,7 +119,7 @@ module.exports = function(grunt) {
this.registerTask('node', ['transpile:cjs']);
this.registerTask('globals', ['packager-fork']);
this.registerTask('release', 'Build final packages', ['copy:components', 'amd', 'uglify']);
this.registerTask('release', 'Build final packages', ['amd', 'uglify', 'copy:components', 'copy:cdnjs']);
// Load tasks from npm
grunt.loadNpmTasks('grunt-contrib-clean');