Toggle navigation
Toggle navigation
This project
Loading...
Sign in
arcs
/
arcs.js
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
3
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Jean-Yves Didier
2023-04-21 18:27:16 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ffcb83de91be3da1028dd1a5e9e3efcd1aed9986
ffcb83de
1 parent
bcc67f18
included 2 more tools
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
5 deletions
tools/arcsclient.js
tools/arcscmpserver.js
tools/arcsrepos.js
tools/package.json
tools/arcsclient.js
0 → 100644
View file @
ffcb83d
import
process
from
'node:process'
;
import
*
as
fs
from
'node:fs'
;
const
helpers
=
{
'-h'
:
function
(){
console
.
log
(
"usage: node arcsclient.js [-h] "
);
process
.
exit
(
0
);
}
}
/** list of helpers that are needed
* -h: help
* -q: keywords_list
* -i: install library
*
*
*/
\ No newline at end of file
tools/arcscmpserver.js
0 → 100644
View file @
ffcb83d
import
process
from
'node:process'
;
tools/arcsrepos.js
View file @
ffcb83d
...
...
@@ -92,15 +92,15 @@ for(const element of files) {
}
}
}
if
(
libraries
[
element
]
===
undefined
)
{
libraries
[
path
.
relative
(
inputDir
,
element
)]
=
null
;
}
}
catch
(
e
)
{
console
.
log
(
`
${
element
}
is not a valid component library`
);
}
for
(
let
c
in
cmp
)
{
console
.
log
(
c
);
if
(
components
[
c
]
===
undefined
)
{
console
.
log
(
`adding component
${
c
}
from
${
cmp
[
c
].
library
}
`
)
components
[
c
]
=
cmp
[
c
];
}
else
{
components
[
c
]
=
[
components
[
c
],
cmp
[
c
]
];
...
...
@@ -110,4 +110,4 @@ for(const element of files) {
const
result
=
{
components
,
libraries
};
fs
.
writeFileSync
(
outputFile
,
JSON
.
stringify
(
result
,
null
,
2
));
fs
.
writeFileSync
(
path
.
join
(
inputDir
,
outputFile
)
,
JSON
.
stringify
(
result
,
null
,
2
));
...
...
tools/package.json
0 → 100644
View file @
ffcb83d
{
"type"
:
"module"
}
\ No newline at end of file
Please
register
or
login
to post a comment