File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55### Additions
66
7+ - [ Issue #18 ] - App directory
78
89## [ 0.1.1] - 2018-03-26
910
Original file line number Diff line number Diff line change 4646 },
4747 "exporter" : {
4848 "dirBuild" : " ./dist" ,
49+ "dirMerge" : " ./app" ,
4950 "dirViews" : " ./views" ,
5051 "dirImages" : " ./public/images" ,
5152 "dirCSS" : " ./public/stylesheets" ,
Original file line number Diff line number Diff 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 ) &&
You can’t perform that action at this time.
0 commit comments