Skip to content

Commit

Permalink
Clean up nodemon, prebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
pointful-mikkel committed Jul 15, 2016
1 parent 5a2b496 commit c89a8d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "0.0.27",
"private": false,
"scripts": {
"development": "touch -t 197804100000.00 system/main.js && nodemon -e js,css,json --watch package.json --watch modules/ --watch system/ --watch cfg/ --watch mvc/ --watch client/ --watch server/ --watch app.js app.js",
"developmentforever": "touch -t 197804100000.00 system/main.js && nodemon --exitcrash -e js,css,json --watch package.json --watch modules/ --watch system/ --watch cfg/ --watch mvc/ --watch client/ --watch server/ --watch app.js app.js",
"development": "touch -t 197804100000.00 system/main.js && nodemon -e js,css,json --watch package.json --watch modules/ --watch system/ --ignore 'system/api/*/api.*.js' --ignore 'system/main.js' --watch cfg/ --watch mvc/ --ignore mvc/model/generated/ --watch client/ --watch server/ --watch app.js app.js",
"developmentforever": "touch -t 197804100000.00 system/main.js && nodemon --exitcrash -e js,css,json --watch package.json --watch modules/ --watch system/ --ignore 'system/api/*/api.*.js' --ignore 'system/main.js' --watch cfg/ --watch mvc/ --ignore mvc/model/generated/ --watch client/ --watch server/ --watch app.js app.js",
"production": "touch -t 197804100000.00 system/main.js && node app.js",
"cordova": "node app.js exitWhenReady"
},
Expand Down
10 changes: 2 additions & 8 deletions system/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,11 +472,6 @@ module.exports = function(app, options) {
}
},
execExternalScript = function(script, callback){
// Assume local directory if not full path
if(!(script.indexOf(".") == 0 || script.indexOf("/") == 0)) {
script = "./" + script;
}

// Run the build step
exec(script, function (error, stdout, stderr) {
if(stdout) {
Expand All @@ -492,10 +487,9 @@ module.exports = function(app, options) {
});
};


// TODO: Add buildfiles to serverconfig for bespoke items to prebuild...
// If serverconfig has prebuild, these will be executed first
if(serverConfig.prebuild) {
async.mapSeries(serverConfig.prebuild, execExternalScript,function(){
async.mapSeries(serverConfig.prebuild, execExternalScript, function(){
runMiso();
});
} else {
Expand Down

0 comments on commit c89a8d4

Please sign in to comment.