Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-code-divider
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-code-divider
Commits
727a7e83
Commit
727a7e83
authored
Dec 20, 2019
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分离代码分离器
parent
18776cf8
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
19 additions
and
7 deletions
+19
-7
index.es.js
dist/index.es.js
+4
-1
index.es.js.map
dist/index.es.js.map
+1
-1
index.js
dist/index.js
+4
-1
index.js.map
dist/index.js.map
+1
-1
index.umd.js
dist/index.umd.js
+4
-1
index.umd.js.map
dist/index.umd.js.map
+1
-1
index.js
src/index.js
+4
-1
No files found.
dist/index.es.js
View file @
727a7e83
...
...
@@ -167,6 +167,8 @@ ${scripts}
* Created by rockyl on 2019-12-20.
*/
const
TAG
=
'zeroing-code-divider'
;
async
function
divideCode
(
data
,
{
debug
,
compile
,
uglify
,
getProcesses
,
getScripts
,
getCustoms
})
{
const
processManager
=
new
ProcessManager
();
const
scriptManager
=
new
ScriptManager
();
...
...
@@ -201,7 +203,8 @@ async function divideCode(data, {debug, compile, uglify, getProcesses, getScript
let
ptScript
=
processManager
.
generateCurrent
();
if
(
compile
)
{
processManager
.
coverScripts
(
await
compile
(
ptScript
));
//自定义过程先编译
const
result
=
await
compile
(
ptScript
);
processManager
.
coverScripts
(
result
.
code
);
//自定义过程先编译
}
for
(
let
process
of
builtinProcesses
)
{
...
...
dist/index.es.js.map
View file @
727a7e83
This diff is collapsed.
Click to expand it.
dist/index.js
View file @
727a7e83
...
...
@@ -173,6 +173,8 @@ ${scripts}
* Created by rockyl on 2019-12-20.
*/
const
TAG
=
'zeroing-code-divider'
;
async
function
divideCode
(
data
,
{
debug
,
compile
,
uglify
,
getProcesses
,
getScripts
,
getCustoms
})
{
const
processManager
=
new
ProcessManager
();
const
scriptManager
=
new
ScriptManager
();
...
...
@@ -207,7 +209,8 @@ async function divideCode(data, {debug, compile, uglify, getProcesses, getScript
let
ptScript
=
processManager
.
generateCurrent
();
if
(
compile
)
{
processManager
.
coverScripts
(
await
compile
(
ptScript
));
//自定义过程先编译
const
result
=
await
compile
(
ptScript
);
processManager
.
coverScripts
(
result
.
code
);
//自定义过程先编译
}
for
(
let
process
of
builtinProcesses
)
{
...
...
dist/index.js.map
View file @
727a7e83
This diff is collapsed.
Click to expand it.
dist/index.umd.js
View file @
727a7e83
...
...
@@ -173,6 +173,8 @@ ${scripts}
* Created by rockyl on 2019-12-20.
*/
const
TAG
=
'zeroing-code-divider'
;
async
function
divideCode
(
data
,
{
debug
,
compile
,
uglify
,
getProcesses
,
getScripts
,
getCustoms
})
{
const
processManager
=
new
ProcessManager
();
const
scriptManager
=
new
ScriptManager
();
...
...
@@ -207,7 +209,8 @@ ${scripts}
let
ptScript
=
processManager
.
generateCurrent
();
if
(
compile
)
{
processManager
.
coverScripts
(
await
compile
(
ptScript
));
//自定义过程先编译
const
result
=
await
compile
(
ptScript
);
processManager
.
coverScripts
(
result
.
code
);
//自定义过程先编译
}
for
(
let
process
of
builtinProcesses
)
{
...
...
dist/index.umd.js.map
View file @
727a7e83
This diff is collapsed.
Click to expand it.
src/index.js
View file @
727a7e83
...
...
@@ -6,6 +6,8 @@ import ProcessManager from "./ProcessManager";
import
ScriptManager
from
"./ScriptManager"
;
import
CustomManager
from
"./CustomManager"
;
const
TAG
=
'zeroing-code-divider'
;
export
async
function
divideCode
(
data
,
{
debug
,
compile
,
uglify
,
getProcesses
,
getScripts
,
getCustoms
})
{
const
processManager
=
new
ProcessManager
();
const
scriptManager
=
new
ScriptManager
();
...
...
@@ -40,7 +42,8 @@ export async function divideCode(data, {debug, compile, uglify, getProcesses, ge
let
ptScript
=
processManager
.
generateCurrent
();
if
(
compile
)
{
processManager
.
coverScripts
(
await
compile
(
ptScript
));
//自定义过程先编译
const
result
=
await
compile
(
ptScript
);
processManager
.
coverScripts
(
result
.
code
);
//自定义过程先编译
}
for
(
let
process
of
builtinProcesses
)
{
...
...
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