-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathpostbuildSchematics.js
More file actions
23 lines (18 loc) · 978 Bytes
/
postbuildSchematics.js
File metadata and controls
23 lines (18 loc) · 978 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
var copyfiles = require('copyfiles');
var callback = function(e) {
if(e) {
console.error(e)
}
};
// COPY collection.json
//copyfiles -f projects/design-angular-kit/schematics/collection.json dist/design-angular-kit/schematics/
var collectionSourcePath = 'projects/design-angular-kit/schematics/collection.json';
var collectionDestionationPath = 'dist/design-angular-kit/schematics/';
var collectionConfig = {verbose: true, flat: true, up: 3};
copyfiles([collectionSourcePath, collectionDestionationPath],collectionConfig, callback);
// COPY schematics/*/schema.json
//copyfiles -f projects/design-angular-kit/schematics/*/schema.json dist/design-angular-kit/"
var schemajsonSourcePath = 'projects/design-angular-kit/schematics/*/schema.json';
var schemajsonDestionationPath = 'dist/design-angular-kit/';
var schemajsonConfig = {verbose: true, flat: false, up: 2};
copyfiles([schemajsonSourcePath, schemajsonDestionationPath], schemajsonConfig, callback);