Skip to content

Commit

Permalink
Merge b07200d into 61cd655
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathew1011 committed Mar 26, 2020
2 parents 61cd655 + b07200d commit 44f384b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/build-wvr-components.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ const concat = require('concat');
const package = require('../package.json');
const majorVersion = package.version.split('.')[0];
const dirName = `${majorVersion}x`;
const dirPath = `dist/bundle/${dirName}`;
const basePath = 'dist/bundle';
const dirPath = `${basePath}/${dirName}`;
const latestPath = `${basePath}/latest`;

(async function build() {
const files = [
Expand All @@ -19,7 +21,8 @@ const dirPath = `dist/bundle/${dirName}`;
fs.ensureDir(dirPath);

await concat(files, `${dirPath}/weaver-components.js`);

fs.copy(`${dirPath}/weaver-components.js`, `${latestPath}/weaver-components.js`);
fs.copy(`${dirPath}/weaver-components.js`, "dist/docs/usage/weaver-components.js");
fs.copy('dist/weaver-components/assets', "dist/docs/usage/assets");

})();

0 comments on commit 44f384b

Please sign in to comment.