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