Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cos-uploader
Project
Project
Details
Activity
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
hewenhao
cos-uploader
Commits
47cf87e9
Commit
47cf87e9
authored
Apr 29, 2021
by
hewenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: export
parent
db76c8b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
index.js
index.js
+2
-2
No files found.
index.js
View file @
47cf87e9
...
...
@@ -28,7 +28,7 @@ const list = folderList
.
map
(
item
=>
{
const
subFolderPath
=
`./
${
f
}
/
${
item
}
`
const
subList
=
fastglob
.
sync
(
`**`
,
{
onlyFiles
:
true
,
deep
:
1
,
cwd
:
subFolderPath
})
const
outputFileName
=
`./dist/
${
f
}
_
${
item
}
.js
on
`
;
const
outputFileName
=
`./dist/
${
f
}
_
${
item
}
.js`
;
return
{
folderPath
:
subFolderPath
,
outputFileName
,
...
...
@@ -62,7 +62,7 @@ function uploadFolder (folder) {
},
...
ret
}),
{});
fs
.
writeFileSync
(
folder
.
outputFileName
,
JSON
.
stringify
(
mapper
,
null
,
2
)
);
fs
.
writeFileSync
(
folder
.
outputFileName
,
`export default
${
JSON
.
stringify
(
mapper
,
null
,
2
)}
`
);
return
mapper
;
})
}
...
...
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