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
059504b0
Commit
059504b0
authored
Apr 29, 2019
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
exit code
parent
1970f918
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
cli-wrapper.js
bin/cli-wrapper.js
+6
-2
cli.js
bin/cli.js
+8
-2
No files found.
bin/cli-wrapper.js
View file @
059504b0
...
...
@@ -6,6 +6,10 @@ const {execute: executeDeclareGenerator} = require('scilla-declare-generator/bin
const
{
execute
:
executeTsCompiler
}
=
require
(
'scilla-ts-compiler/bin/cli-wrapper'
);
exports
.
execute
=
async
function
(
program
)
{
await
executeDeclareGenerator
(
program
);
await
executeTsCompiler
(
program
);
let
code
;
code
=
await
executeDeclareGenerator
(
program
);
if
(
code
>
0
){
return
code
;
}
return
await
executeTsCompiler
(
program
);
};
bin/cli.js
View file @
059504b0
...
...
@@ -15,7 +15,13 @@ program
.
option
(
'-p, --projectPath [string]'
,
'path of project'
)
.
parse
(
process
.
argv
);
execute
(
program
).
catch
(
e
=>
{
execute
(
program
).
then
(
code
=>
{
if
(
code
>
0
){
process
.
exit
(
code
)
}
}
).
catch
(
e
=>
{
console
.
error
(
e
);
process
.
exit
(
2
);
process
.
exit
(
99
);
});
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