Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scilla-serverside-cli
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
劳工
scilla-serverside-cli
Commits
733de042
Commit
733de042
authored
Jun 28, 2019
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除掉ts编译的中间过程
parent
2ded3caf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
19 deletions
+16
-19
cli-wrapper.js
bin/cli-wrapper.js
+16
-19
No files found.
bin/cli-wrapper.js
View file @
733de042
...
@@ -11,35 +11,32 @@ const glob = require('glob');
...
@@ -11,35 +11,32 @@ const glob = require('glob');
exports
.
execute
=
async
function
(
program
)
{
exports
.
execute
=
async
function
(
program
)
{
const
inputFile
=
program
.
input
;
const
inputFile
=
program
.
input
;
if
(
await
fs
.
exists
(
inputFile
))
{
if
(
await
fs
.
exists
(
inputFile
))
{
const
stat
=
await
fs
.
stat
(
inputFile
);
const
stat
=
await
fs
.
stat
(
inputFile
);
if
(
stat
.
isDirectory
())
{
if
(
stat
.
isDirectory
())
{
const
indexFiles
=
glob
.
sync
(
path
.
join
(
inputFile
,
'**/index.ts'
));
const
indexFiles
=
glob
.
sync
(
path
.
join
(
inputFile
,
'**/index.ts'
));
let
code
,
params
=
{
let
params
=
{
projectPath
:
program
.
projectPath
,
projectPath
:
program
.
projectPath
,
};
};
for
(
let
file
of
indexFiles
)
{
for
(
let
file
of
indexFiles
)
{
console
.
log
(
file
);
console
.
log
(
file
);
params
.
input
=
file
;
params
.
input
=
file
;
code
=
await
executeDeclareGenerator
(
params
);
await
executeFile
(
program
);
if
(
code
>
0
){
return
code
;
}
code
=
await
executeTsCompiler
(
params
);
if
(
code
>
0
){
return
code
;
}
}
}
}
else
{
}
else
{
await
executeFile
(
program
);
let
code
;
code
=
await
executeDeclareGenerator
(
program
);
if
(
code
>
0
){
return
code
;
}
return
await
executeTsCompiler
(
program
);
}
}
}
}
return
10
return
10
};
};
async
function
executeFile
(
params
)
{
let
code
;
code
=
await
executeDeclareGenerator
(
params
);
if
(
code
>
0
)
{
return
code
;
}
//return await executeTsCompiler(params);
}
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