mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
21 lines
484 B
JavaScript
21 lines
484 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",
|
|
].forEach(l => {
|
|
const source = Path.join("node_modules", l);
|
|
const destination = Path.join(componentsPath, l);
|
|
Fs.cpSync(source, destination, { recursive: true });
|
|
});
|