UNPKG

yoda-common-boilerplate

Version:

Repository of all JCP reusable atoms, molecules and organisms

15 lines (12 loc) 528 B
var fse = require("fs-extra"), path = require("path"), rootPath = path.resolve(__dirname, "../"), buildPath = path.resolve(rootPath, "build/"), compiledSrcPath = path.resolve(buildPath, "src/"), sourceSrcPath = path.resolve(rootPath, "src/"); try { fse.copySync(path.resolve(sourceSrcPath, "package.json"), path.resolve(buildPath, "package.json")); fse.copySync(path.resolve(sourceSrcPath, "styles"), path.resolve(compiledSrcPath, "styles")); } catch (error) { error && console.error(error); }