Commit 608f56e9 authored by eddie.woo's avatar eddie.woo

dev打包修改

parent d2234f06
...@@ -453,6 +453,17 @@ grunt.initConfig({ ...@@ -453,6 +453,17 @@ grunt.initConfig({
clean: { clean: {
temp: ['<%= pkg.bundleTemp %>'] temp: ['<%= pkg.bundleTemp %>']
}, },
copy: {
html: {
files: [{
expand: true,
cwd: '<%= pkg.bundleTemp %>/',
src: '**/*',
dest: '<%= pkg.bundleDest %>/'
}]
}
}
}); });
grunt.loadNpmTasks('grunt-contrib-concat'); grunt.loadNpmTasks('grunt-contrib-concat');
...@@ -460,6 +471,7 @@ grunt.loadNpmTasks('grunt-contrib-less'); ...@@ -460,6 +471,7 @@ grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-cssmin'); grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-clean'); grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.registerTask('build', '生产构建任务', function () { grunt.registerTask('build', '生产构建任务', function () {
grunt.task.run(['concat', 'less', 'uglify', 'clean']) grunt.task.run(['concat', 'less', 'uglify', 'clean'])
...@@ -473,5 +485,5 @@ grunt.registerTask('dev', '开发环境', function () { ...@@ -473,5 +485,5 @@ grunt.registerTask('dev', '开发环境', function () {
'concat:commonJs', 'concat:frameworkJs','concat:frameworkLess', 'concat:commonJs', 'concat:frameworkJs','concat:frameworkLess',
'concat:taxDocumentManageLess', 'concat:taxDocumentManageJs','concat:appJs', 'concat:taxDocumentManageLess', 'concat:taxDocumentManageJs','concat:appJs',
'concat:vatJs', 'concat:vatCss','concat:vatLess', 'concat:vatJs', 'concat:vatCss','concat:vatLess',
'less', 'uglify', 'clean']) 'less', 'copy', 'clean'])
}); });
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
"devDependencies": { "devDependencies": {
"grunt-contrib-clean": "^2.0.0", "grunt-contrib-clean": "^2.0.0",
"grunt-contrib-concat": "1.0.1", "grunt-contrib-concat": "1.0.1",
"grunt-contrib-copy": "^1.0.0",
"grunt-contrib-cssmin": "^3.0.0", "grunt-contrib-cssmin": "^3.0.0",
"grunt-contrib-less": "1.4.1", "grunt-contrib-less": "1.4.1",
"grunt-contrib-uglify": "^4.0.0" "grunt-contrib-uglify": "^4.0.0"
......
...@@ -143,7 +143,7 @@ caseless@~0.12.0: ...@@ -143,7 +143,7 @@ caseless@~0.12.0:
resolved "http://registry.npm.taobao.org/caseless/download/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" resolved "http://registry.npm.taobao.org/caseless/download/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc"
integrity sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw= integrity sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=
chalk@^1.0.0, chalk@~1.1.1: chalk@^1.0.0, chalk@^1.1.1, chalk@~1.1.1:
version "1.1.3" version "1.1.3"
resolved "http://registry.npm.taobao.org/chalk/download/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" resolved "http://registry.npm.taobao.org/chalk/download/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98"
integrity sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg= integrity sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=
...@@ -328,6 +328,11 @@ figures@^1.0.1: ...@@ -328,6 +328,11 @@ figures@^1.0.1:
escape-string-regexp "^1.0.5" escape-string-regexp "^1.0.5"
object-assign "^4.1.0" object-assign "^4.1.0"
file-sync-cmp@^0.1.0:
version "0.1.1"
resolved "http://registry.npm.taobao.org/file-sync-cmp/download/file-sync-cmp-0.1.1.tgz#a5e7a8ffbfa493b43b923bbd4ca89a53b63b612b"
integrity sha1-peeo/7+kk7Q7kju9TKiaU7Y7YSs=
find-up@^1.0.0: find-up@^1.0.0:
version "1.1.2" version "1.1.2"
resolved "http://registry.npm.taobao.org/find-up/download/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f" resolved "http://registry.npm.taobao.org/find-up/download/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f"
...@@ -445,6 +450,14 @@ grunt-contrib-concat@1.0.1: ...@@ -445,6 +450,14 @@ grunt-contrib-concat@1.0.1:
chalk "^1.0.0" chalk "^1.0.0"
source-map "^0.5.3" source-map "^0.5.3"
grunt-contrib-copy@^1.0.0:
version "1.0.0"
resolved "http://registry.npm.taobao.org/grunt-contrib-copy/download/grunt-contrib-copy-1.0.0.tgz#7060c6581e904b8ab0d00f076e0a8f6e3e7c3573"
integrity sha1-cGDGWB6QS4qw0A8HbgqPbj58NXM=
dependencies:
chalk "^1.1.1"
file-sync-cmp "^0.1.0"
grunt-contrib-cssmin@^3.0.0: grunt-contrib-cssmin@^3.0.0:
version "3.0.0" version "3.0.0"
resolved "http://registry.npm.taobao.org/grunt-contrib-cssmin/download/grunt-contrib-cssmin-3.0.0.tgz#1767c0a062f4b7353c5adcadc52dcff7197d4d89" resolved "http://registry.npm.taobao.org/grunt-contrib-cssmin/download/grunt-contrib-cssmin-3.0.0.tgz#1767c0a062f4b7353c5adcadc52dcff7197d4d89"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment