Skip to content

Commit 66da6c3

Browse files
committed
[Issue #18] - App directory
1 parent c44ec3b commit 66da6c3

3 files changed

Lines changed: 14 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
### Additions
66

7+
- [Issue #18] - App directory
78

89
## [0.1.1] - 2018-03-26
910

config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
},
4747
"exporter": {
4848
"dirBuild": "./dist",
49+
"dirMerge": "./app",
4950
"dirViews": "./views",
5051
"dirImages": "./public/images",
5152
"dirCSS": "./public/stylesheets",

lib/chainlinks/builder.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,18 @@ let Builder = function() {
4949
this.binCmd("mkdir " + buildPath, false);
5050
}
5151

52+
// Check for an app directory to merge
53+
if (this.dirMerge && this.dirMerge.length &&
54+
fs.existsSync(this.dirMerge)) {
55+
56+
// Create app directory path
57+
let mergePath = path.normalize(this.dirMerge);
58+
59+
// Merge the directory
60+
shell.execSync("cp -rf " + mergePath + " " + buildPath);
61+
62+
}
63+
5264
// Install
5365
if (
5466
this.binCmd(this.installCmd) &&

0 commit comments

Comments
 (0)