Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scilla-declare-generator
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-declare-generator
Commits
ce220d6a
Commit
ce220d6a
authored
Jun 20, 2019
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
抽离common-component-list
parent
0b420f41
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
cli-wrapper.js
bin/cli-wrapper.js
+5
-6
cli.js
bin/cli.js
+0
-0
No files found.
bin/cli-wrapper.js
View file @
ce220d6a
...
...
@@ -29,7 +29,6 @@ function getAllDependencies(dependencies, missingDependencies, componentName, ve
}
else
{
missingDependencies
[
key
]
=
temp
[
key
];
}
}
}
}
...
...
@@ -41,10 +40,12 @@ exports.execute = async function (program) {
return
1
;
}
const
componentsPath
=
program
.
projectPath
||
path
.
join
(
os
.
homedir
(),
'.scilla'
,
'components'
);
const
projectPath
=
program
.
projectPath
||
process
.
cwd
();
const
componentsPath
=
path
.
join
(
os
.
homedir
(),
'.scilla'
,
'components'
);
const
componentsSrcPath
=
path
.
join
(
componentsPath
,
'src'
);
const
tsconfig
=
fs
.
readJsonSync
(
path
.
join
(
componentsPath
,
'tsconfig.json'
)
);
const
tsconfig
=
fs
.
readJsonSync
(
'tsconfig.json'
);
const
inputFile
=
program
.
input
;
const
inputFileFolder
=
path
.
dirname
(
inputFile
);
...
...
@@ -61,8 +62,6 @@ exports.execute = async function (program) {
return
result
;
}
const
projectPath
=
process
.
cwd
();
function
declareFilter
(
source
)
{
return
source
.
fileName
.
indexOf
(
inputFileFolder
)
>=
0
;
}
...
...
@@ -71,7 +70,7 @@ exports.execute = async function (program) {
tsconfig
,
dependencies
,
inputFile
,
components
Src
Path
,
componentsPath
,
projectPath
,
null
,
declareFilter
...
...
bin/cli.js
100644 → 100755
View file @
ce220d6a
File mode changed from 100644 to 100755
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