Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
608f56e9
Commit
608f56e9
authored
Oct 23, 2018
by
eddie.woo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev打包修改
parent
d2234f06
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
2 deletions
+28
-2
Gruntfile.js
atms-web/src/main/webapp/Gruntfile.js
+13
-1
package.json
atms-web/src/main/webapp/package.json
+1
-0
yarn.lock
atms-web/src/main/webapp/yarn.lock
+14
-1
No files found.
atms-web/src/main/webapp/Gruntfile.js
View file @
608f56e9
...
...
@@ -453,6 +453,17 @@ grunt.initConfig({
clean
:
{
temp
:
[
'<%= pkg.bundleTemp %>'
]
},
copy
:
{
html
:
{
files
:
[{
expand
:
true
,
cwd
:
'<%= pkg.bundleTemp %>/'
,
src
:
'**/*'
,
dest
:
'<%= pkg.bundleDest %>/'
}]
}
}
});
grunt
.
loadNpmTasks
(
'grunt-contrib-concat'
);
...
...
@@ -460,6 +471,7 @@ grunt.loadNpmTasks('grunt-contrib-less');
grunt
.
loadNpmTasks
(
'grunt-contrib-uglify'
);
grunt
.
loadNpmTasks
(
'grunt-contrib-cssmin'
);
grunt
.
loadNpmTasks
(
'grunt-contrib-clean'
);
grunt
.
loadNpmTasks
(
'grunt-contrib-copy'
);
grunt
.
registerTask
(
'build'
,
'生产构建任务'
,
function
()
{
grunt
.
task
.
run
([
'concat'
,
'less'
,
'uglify'
,
'clean'
])
...
...
@@ -473,5 +485,5 @@ grunt.registerTask('dev', '开发环境', function () {
'concat:commonJs'
,
'concat:frameworkJs'
,
'concat:frameworkLess'
,
'concat:taxDocumentManageLess'
,
'concat:taxDocumentManageJs'
,
'concat:appJs'
,
'concat:vatJs'
,
'concat:vatCss'
,
'concat:vatLess'
,
'less'
,
'
uglif
y'
,
'clean'
])
'less'
,
'
cop
y'
,
'clean'
])
});
atms-web/src/main/webapp/package.json
View file @
608f56e9
...
...
@@ -12,6 +12,7 @@
"devDependencies"
:
{
"grunt-contrib-clean"
:
"^2.0.0"
,
"grunt-contrib-concat"
:
"1.0.1"
,
"grunt-contrib-copy"
:
"^1.0.0"
,
"grunt-contrib-cssmin"
:
"^3.0.0"
,
"grunt-contrib-less"
:
"1.4.1"
,
"grunt-contrib-uglify"
:
"^4.0.0"
...
...
atms-web/src/main/webapp/yarn.lock
View file @
608f56e9
...
...
@@ -143,7 +143,7 @@ caseless@~0.12.0:
resolved "http://registry.npm.taobao.org/caseless/download/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc"
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"
resolved "http://registry.npm.taobao.org/chalk/download/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98"
integrity sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=
...
...
@@ -328,6 +328,11 @@ figures@^1.0.1:
escape-string-regexp "^1.0.5"
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:
version "1.1.2"
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:
chalk "^1.0.0"
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:
version "3.0.0"
resolved "http://registry.npm.taobao.org/grunt-contrib-cssmin/download/grunt-contrib-cssmin-3.0.0.tgz#1767c0a062f4b7353c5adcadc52dcff7197d4d89"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment