Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-pack
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
劳工
zeroing-pack
Commits
b0a9b3e8
Commit
b0a9b3e8
authored
Nov 23, 2019
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加自定义模块支持
parent
b0177d52
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
15 additions
and
11 deletions
+15
-11
index.es.js
dist/index.es.js
+3
-2
index.es.js.map
dist/index.es.js.map
+1
-1
index.js
dist/index.js
+3
-2
index.js.map
dist/index.js.map
+1
-1
index.umd.js
dist/index.umd.js
+3
-2
index.umd.js.map
dist/index.umd.js.map
+1
-1
index.js
src/index.js
+3
-2
No files found.
dist/index.es.js
View file @
b0a9b3e8
...
@@ -21,7 +21,7 @@ async function pack(project, options) {
...
@@ -21,7 +21,7 @@ async function pack(project, options) {
}
}
}
}
async
function
packData
(
data
,
{
getProcesses
,
getScripts
})
{
async
function
packData
(
data
,
{
getProcesses
,
getScripts
,
getCustoms
})
{
let
newData
=
{};
let
newData
=
{};
newData
.
options
=
data
.
options
;
newData
.
options
=
data
.
options
;
delete
newData
.
options
.
tpl
;
delete
newData
.
options
.
tpl
;
...
@@ -29,7 +29,6 @@ async function packData(data, {getProcesses, getScripts}) {
...
@@ -29,7 +29,6 @@ async function packData(data, {getProcesses, getScripts}) {
newData
.
assets
=
data
.
assets
;
newData
.
assets
=
data
.
assets
;
newData
.
dataMapping
=
data
.
dataMapping
;
newData
.
dataMapping
=
data
.
dataMapping
;
newData
.
processes
=
data
.
processes
;
newData
.
processes
=
data
.
processes
;
newData
.
customs
=
data
.
customs
;
let
scriptIDs
=
[];
let
scriptIDs
=
[];
for
(
let
view
of
newData
.
views
)
{
for
(
let
view
of
newData
.
views
)
{
...
@@ -74,6 +73,8 @@ async function packData(data, {getProcesses, getScripts}) {
...
@@ -74,6 +73,8 @@ async function packData(data, {getProcesses, getScripts}) {
}
}
}
}
newData
.
customs
=
data
.
customs
&&
data
.
customs
.
length
>
0
?
await
getCustoms
(
data
.
customs
)
:
[];
return
JSON
.
stringify
(
newData
);
return
JSON
.
stringify
(
newData
);
}
}
...
...
dist/index.es.js.map
View file @
b0a9b3e8
This diff is collapsed.
Click to expand it.
dist/index.js
View file @
b0a9b3e8
...
@@ -25,7 +25,7 @@ async function pack(project, options) {
...
@@ -25,7 +25,7 @@ async function pack(project, options) {
}
}
}
}
async
function
packData
(
data
,
{
getProcesses
,
getScripts
})
{
async
function
packData
(
data
,
{
getProcesses
,
getScripts
,
getCustoms
})
{
let
newData
=
{};
let
newData
=
{};
newData
.
options
=
data
.
options
;
newData
.
options
=
data
.
options
;
delete
newData
.
options
.
tpl
;
delete
newData
.
options
.
tpl
;
...
@@ -33,7 +33,6 @@ async function packData(data, {getProcesses, getScripts}) {
...
@@ -33,7 +33,6 @@ async function packData(data, {getProcesses, getScripts}) {
newData
.
assets
=
data
.
assets
;
newData
.
assets
=
data
.
assets
;
newData
.
dataMapping
=
data
.
dataMapping
;
newData
.
dataMapping
=
data
.
dataMapping
;
newData
.
processes
=
data
.
processes
;
newData
.
processes
=
data
.
processes
;
newData
.
customs
=
data
.
customs
;
let
scriptIDs
=
[];
let
scriptIDs
=
[];
for
(
let
view
of
newData
.
views
)
{
for
(
let
view
of
newData
.
views
)
{
...
@@ -78,6 +77,8 @@ async function packData(data, {getProcesses, getScripts}) {
...
@@ -78,6 +77,8 @@ async function packData(data, {getProcesses, getScripts}) {
}
}
}
}
newData
.
customs
=
data
.
customs
&&
data
.
customs
.
length
>
0
?
await
getCustoms
(
data
.
customs
)
:
[];
return
JSON
.
stringify
(
newData
);
return
JSON
.
stringify
(
newData
);
}
}
...
...
dist/index.js.map
View file @
b0a9b3e8
This diff is collapsed.
Click to expand it.
dist/index.umd.js
View file @
b0a9b3e8
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
}
}
}
}
async
function
packData
(
data
,
{
getProcesses
,
getScripts
})
{
async
function
packData
(
data
,
{
getProcesses
,
getScripts
,
getCustoms
})
{
let
newData
=
{};
let
newData
=
{};
newData
.
options
=
data
.
options
;
newData
.
options
=
data
.
options
;
delete
newData
.
options
.
tpl
;
delete
newData
.
options
.
tpl
;
...
@@ -35,7 +35,6 @@
...
@@ -35,7 +35,6 @@
newData
.
assets
=
data
.
assets
;
newData
.
assets
=
data
.
assets
;
newData
.
dataMapping
=
data
.
dataMapping
;
newData
.
dataMapping
=
data
.
dataMapping
;
newData
.
processes
=
data
.
processes
;
newData
.
processes
=
data
.
processes
;
newData
.
customs
=
data
.
customs
;
let
scriptIDs
=
[];
let
scriptIDs
=
[];
for
(
let
view
of
newData
.
views
)
{
for
(
let
view
of
newData
.
views
)
{
...
@@ -80,6 +79,8 @@
...
@@ -80,6 +79,8 @@
}
}
}
}
newData
.
customs
=
data
.
customs
&&
data
.
customs
.
length
>
0
?
await
getCustoms
(
data
.
customs
)
:
[];
return
JSON
.
stringify
(
newData
);
return
JSON
.
stringify
(
newData
);
}
}
...
...
dist/index.umd.js.map
View file @
b0a9b3e8
This diff is collapsed.
Click to expand it.
src/index.js
View file @
b0a9b3e8
...
@@ -21,7 +21,7 @@ export async function pack(project, options) {
...
@@ -21,7 +21,7 @@ export async function pack(project, options) {
}
}
}
}
async
function
packData
(
data
,
{
getProcesses
,
getScripts
})
{
async
function
packData
(
data
,
{
getProcesses
,
getScripts
,
getCustoms
})
{
let
newData
=
{};
let
newData
=
{};
newData
.
options
=
data
.
options
;
newData
.
options
=
data
.
options
;
delete
newData
.
options
.
tpl
;
delete
newData
.
options
.
tpl
;
...
@@ -29,7 +29,6 @@ async function packData(data, {getProcesses, getScripts}) {
...
@@ -29,7 +29,6 @@ async function packData(data, {getProcesses, getScripts}) {
newData
.
assets
=
data
.
assets
;
newData
.
assets
=
data
.
assets
;
newData
.
dataMapping
=
data
.
dataMapping
;
newData
.
dataMapping
=
data
.
dataMapping
;
newData
.
processes
=
data
.
processes
;
newData
.
processes
=
data
.
processes
;
newData
.
customs
=
data
.
customs
;
let
scriptIDs
=
[];
let
scriptIDs
=
[];
for
(
let
view
of
newData
.
views
)
{
for
(
let
view
of
newData
.
views
)
{
...
@@ -74,6 +73,8 @@ async function packData(data, {getProcesses, getScripts}) {
...
@@ -74,6 +73,8 @@ async function packData(data, {getProcesses, getScripts}) {
}
}
}
}
newData
.
customs
=
data
.
customs
&&
data
.
customs
.
length
>
0
?
await
getCustoms
(
data
.
customs
)
:
[];
return
JSON
.
stringify
(
newData
);
return
JSON
.
stringify
(
newData
);
}
}
...
...
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