Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kityminder-core
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
吴志俊
kityminder-core
Commits
23a2a747
Commit
23a2a747
authored
Apr 28, 2014
by
Jinqn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改grunt
parent
51bdc33c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Gruntfile.js
Gruntfile.js
+4
-2
No files found.
Gruntfile.js
View file @
23a2a747
...
@@ -21,6 +21,7 @@ module.exports = function ( grunt ) {
...
@@ -21,6 +21,7 @@ module.exports = function ( grunt ) {
' * ====================================================
\
n'
+
' * ====================================================
\
n'
+
' */
\
n
\
n'
,
' */
\
n
\
n'
,
buildPath
=
'import.js'
,
buildPath
=
'import.js'
,
srcPath
=
'src/'
,
distPath
=
'dist/'
;
distPath
=
'dist/'
;
var
getPath
=
function
(
readFile
)
{
var
getPath
=
function
(
readFile
)
{
...
@@ -30,7 +31,7 @@ module.exports = function ( grunt ) {
...
@@ -30,7 +31,7 @@ module.exports = function ( grunt ) {
sources
=
sources
[
1
].
replace
(
/
\/\/
.*
\n
/g
,
'
\
n'
).
replace
(
/'|"|
\n
|
\t
|
\s
/g
,
''
);
sources
=
sources
[
1
].
replace
(
/
\/\/
.*
\n
/g
,
'
\
n'
).
replace
(
/'|"|
\n
|
\t
|
\s
/g
,
''
);
sources
=
sources
.
split
(
","
);
sources
=
sources
.
split
(
","
);
sources
.
forEach
(
function
(
filepath
,
index
)
{
sources
.
forEach
(
function
(
filepath
,
index
)
{
sources
[
index
]
=
filepath
;
sources
[
index
]
=
srcPath
+
filepath
;
}
);
}
);
return
sources
;
return
sources
;
...
@@ -63,7 +64,8 @@ module.exports = function ( grunt ) {
...
@@ -63,7 +64,8 @@ module.exports = function ( grunt ) {
},
},
files
:
(
function
()
{
files
:
(
function
()
{
var
files
=
{};
var
files
=
{};
files
[
distPath
+
'kityminder.all.js'
]
=
distPath
+
'kityminder.all.min.js'
;
files
[
distPath
+
'kityminder.all.min.js'
]
=
distPath
+
'kityminder.all.js'
;
console
.
log
(
files
);
return
files
;
return
files
;
}
)()
}
)()
}
}
...
...
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