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
acfe82e4
Commit
acfe82e4
authored
Apr 28, 2019
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
aa1c079e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
76 deletions
+7
-76
cli.js
bin/cli.js
+6
-5
log.json
log.json
+0
-70
package.json
package.json
+1
-1
No files found.
bin/cli.js
View file @
acfe82e4
...
@@ -11,10 +11,11 @@ const program = require('commander');
...
@@ -11,10 +11,11 @@ const program = require('commander');
const
{
generateDeclareMap
}
=
require
(
'../src/index'
);
const
{
generateDeclareMap
}
=
require
(
'../src/index'
);
program
program
.
version
(
'1.0.
1
'
)
.
version
(
'1.0.
2
'
)
.
description
(
'scilla declare generator'
)
.
description
(
'scilla declare generator'
)
.
option
(
'-i, --input [string]'
,
'input file'
)
.
option
(
'-i, --input [string]'
,
'input file'
)
.
option
(
'-o, --output [string]'
,
'output file'
)
.
option
(
'-o, --output [string]'
,
'output file'
)
.
option
(
'-p, --pathofcomponents [string]'
,
'path of components'
)
.
option
(
'-v, --verbose [boolean]'
,
'verbose mode'
,
false
)
.
option
(
'-v, --verbose [boolean]'
,
'verbose mode'
,
false
)
.
parse
(
process
.
argv
);
.
parse
(
process
.
argv
);
...
@@ -22,9 +23,9 @@ if(!program.input || program.output){
...
@@ -22,9 +23,9 @@ if(!program.input || program.output){
process
.
exit
(
1
);
process
.
exit
(
1
);
}
}
const
systemComponentsPath
=
path
.
join
(
os
.
homedir
(),
'.scilla'
,
'components'
);
const
componentsPath
=
program
.
pathofcomponents
||
path
.
join
(
os
.
homedir
(),
'.scilla'
,
'components'
);
const
systemComponentsSrcPath
=
path
.
join
(
systemC
omponentsPath
,
'src'
);
const
componentsSrcPath
=
path
.
join
(
c
omponentsPath
,
'src'
);
const
tsconfig
=
fs
.
readJsonSync
(
path
.
join
(
systemC
omponentsPath
,
'tsconfig.json'
));
const
tsconfig
=
fs
.
readJsonSync
(
path
.
join
(
c
omponentsPath
,
'tsconfig.json'
));
const
inputFile
=
program
.
input
;
const
inputFile
=
program
.
input
;
const
inputFileFolder
=
path
.
dirname
(
inputFile
);
const
inputFileFolder
=
path
.
dirname
(
inputFile
);
...
@@ -38,7 +39,7 @@ function declareFilter(source) {
...
@@ -38,7 +39,7 @@ function declareFilter(source) {
const
result
=
generateDeclareMap
(
const
result
=
generateDeclareMap
(
tsconfig
,
tsconfig
,
program
.
input
,
program
.
input
,
systemC
omponentsSrcPath
,
c
omponentsSrcPath
,
projectPath
,
projectPath
,
null
,
null
,
declareFilter
declareFilter
...
...
log.json
deleted
100644 → 0
View file @
aa1c079e
{
"properties"
:
{
"PuzzleItemPrefab"
:
{
"type"
:
"resource"
},
"disrupt"
:
{
"type"
:
"(Anonymous function)"
},
"onCoverOther"
:
{
"type"
:
"(Anonymous function)"
},
"cancelCoverOther"
:
{
"type"
:
"(Anonymous function)"
},
"onItemMove"
:
{
"type"
:
"(Anonymous function)"
},
"missionComplete"
:
{
"type"
:
"(Anonymous function)"
},
"onAlertClose"
:
{
"type"
:
"(Anonymous function)"
}
},
"methods"
:
{
"getPuzzleItem"
:
{
"item"
:
{
"type"
:
"any"
}
},
"start"
:
{
"img"
:
{
"type"
:
"any"
},
"segmentation"
:
{
"type"
:
"any"
},
"_items"
:
{
"type"
:
"Array"
},
"frames"
:
{
"type"
:
"frames"
},
"perSize"
:
{
"type"
:
"number"
},
"offset"
:
{
"type"
:
"number"
},
"sheet"
:
{
"type"
:
"
\"
node_modules/scilla/src/core/Sheet
\"
.Sheet"
,
"defaultValue"
:
[
"img"
,
"frames"
]
}
},
"judgement"
:
{
"complete"
:
{
"type"
:
"boolean"
,
"defaultValue"
:
true
}
}
},
"bases"
:
[
"
\"
node_modules/scilla-components/src/base/ScillaComponent
\"
.ScillaComponent"
,
"
\"
node_modules/scilla/src/core/Component
\"
.Component"
,
"
\"
node_modules/scilla/src/core/HashObject
\"
.HashObject"
]
}
\ No newline at end of file
package.json
View file @
acfe82e4
{
{
"name"
:
"scilla-declare-generator"
,
"name"
:
"scilla-declare-generator"
,
"version"
:
"1.0.
1
"
,
"version"
:
"1.0.
2
"
,
"main"
:
"src/index.js"
,
"main"
:
"src/index.js"
,
"bin"
:
"bin/cli.js"
,
"bin"
:
"bin/cli.js"
,
"license"
:
"
MIT
"
,
"license"
:
"
MIT
"
,
...
...
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