-
Notifications
You must be signed in to change notification settings - Fork 3
/
copyfiles.mjs
39 lines (36 loc) · 1007 Bytes
/
copyfiles.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*! LIGHT-PARTICLE: COPYFILES.MJS
*
* Author: sitdisch
* Source: https://sitdisch.github.io/#mythemeway
* License: MIT
* Copyright © 2021 sitdisch
*/
import { copy } from 'fs-extra';
const copyfiles = [
{
source: './node_modules/devicon',
files: ['devicon.min.css', 'LICENSE', 'fonts'],
target: 'devicon'
},
{
source: './node_modules/@fortawesome/fontawesome-free',
files: ['LICENSE.txt', 'css/all.min.css', 'css/v4-shims.min.css', 'webfonts'],
target: 'fontawesome'
},
{
source: './node_modules/jquery',
files: ['/dist/jquery.min.js', 'LICENSE.txt'],
target: 'jquery'
},
{
source: './node_modules/bootstrap/',
files: ['/dist/js/bootstrap.bundle.min.js', '/dist/js/bootstrap.bundle.min.js.map', 'LICENSE'],
target: 'bootstrap'
}
];
copyfiles.forEach(copyfile =>
copyfile.files.forEach(file =>
copy(`${copyfile.source}/${file}`, `./docs/assets/lib_c/${copyfile.target}/${file}`)
.catch(err => console.error(err))
)
);