e4dea5824b
Signed-off-by: Pamplemousse <git@xaviermaso.com>
24 lines
564 B
JavaScript
24 lines
564 B
JavaScript
const Fs = require("fs");
|
|
const Fse = require("fs-extra");
|
|
const Path = require("path");
|
|
|
|
const componentsPath = Path.join("www", "components");
|
|
Fse.mkdirpSync(componentsPath);
|
|
|
|
[
|
|
"jquery",
|
|
"tweetnacl",
|
|
"ckeditor",
|
|
"codemirror",
|
|
"marked",
|
|
"rangy",
|
|
"components-font-awesome",
|
|
"requirejs",
|
|
"requirejs-plugins",
|
|
"json.sortify",
|
|
"hyper-json",
|
|
].forEach(l => {
|
|
const source = Path.join("node_modules", l);
|
|
const destination = Path.join(componentsPath, l);
|
|
Fs.cpSync(source, destination, { recursive: true });
|
|
});
|