2021-03-16 10:34:34 +00:00
|
|
|
const pkg = require("./package.json");
|
|
|
|
const glob = require("glob");
|
|
|
|
const fs = require("fs-extra");
|
|
|
|
const path = require("path");
|
|
|
|
|
|
|
|
fs.mkdir("dist/node_modules", {}, (err) => {
|
|
|
|
if (err) throw err;
|
|
|
|
const required = Object.keys(pkg.dependencies);
|
|
|
|
required.forEach((m) => {
|
|
|
|
fs.copySync(`node_modules/${m}`, `dist/node_modules/${m}`);
|
|
|
|
});
|
|
|
|
glob("src/components/verb-info/*.svg", (err, files) => {
|
|
|
|
if (err) throw err;
|
|
|
|
files.forEach((file) => {
|
|
|
|
fs.copySync(file, `dist/components/verb-info/${path.basename(file)}`);
|
|
|
|
});
|
|
|
|
});
|
2022-04-15 14:42:37 +00:00
|
|
|
glob("src/components/vp-explorer/*.svg", (err, files) => {
|
|
|
|
if (err) throw err;
|
|
|
|
files.forEach((file) => {
|
|
|
|
fs.copySync(file, `dist/components/vp-explorer/${path.basename(file)}`);
|
|
|
|
});
|
|
|
|
});
|
2022-04-13 11:22:22 +00:00
|
|
|
glob("src/components/vp-explorer/*.jpg", (err, files) => {
|
|
|
|
if (err) throw err;
|
|
|
|
files.forEach((file) => {
|
|
|
|
fs.copySync(file, `dist/components/vp-explorer/${path.basename(file)}`);
|
|
|
|
});
|
|
|
|
});
|
2021-03-16 10:34:34 +00:00
|
|
|
});
|