forked from UI5Lab/UI5Lab-central
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcombineProjects.js
19 lines (15 loc) · 1.02 KB
/
combineProjects.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
var fs = require('fs-extra');
// copy browser
fs.copySync('./node_modules/ui5lab-browser/dist/test-resources/ui5lab/browser', './test/ui5lab/browser');
// copy all loaded projects to the appropriate places (resources and test-resources)
// TODO: detect projects dynamically and copy them based on metadata in libraries.json file
fs.copySync('./node_modules/ui5lab-library-simple/dist/resources/', './src');
fs.copySync('./node_modules/ui5lab-library-simple/dist/test-resources/', './test');
fs.copySync('./node_modules/striptoastr/dist/', './src');
fs.copySync('./node_modules/striptoastr/test/', './test');
fs.copySync('./node_modules/openui5-qrcode/dist/', './src');
fs.copySync('./node_modules/openui5-qrcode/src/', './src');
fs.copySync('./node_modules/openui5-qrcode/test/demo', './test/it/designfuture/qrcode');
fs.copySync('./node_modules/openui5-qrcode/test/index.json', './test/it/designfuture/qrcode/index.json');
// copy central library.json that lists all UI5Lab projects
fs.copySync('./libraries.json', './test/libraries.json');