From c4e2846d864ca8ad5cbf7cc8d66e05f13dd72c32 Mon Sep 17 00:00:00 2001 From: oleg Date: Sat, 21 Nov 2015 22:52:20 +0300 Subject: [PATCH 1/4] 0.2.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0089adc..236e862 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nci", - "version": "0.1.4", + "version": "0.2.0", "description": "Continuous integration server written in node.js", "bin": { "nci": "bin/nci" From ac6308acbe6b145eb3564f3abe25e95fb806218f Mon Sep 17 00:00:00 2001 From: oleg Date: Sat, 21 Nov 2015 23:04:21 +0300 Subject: [PATCH 2/4] include static/js/shared into build --- .npmignore | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.npmignore b/.npmignore index 29e2fd7..a20ef91 100644 --- a/.npmignore +++ b/.npmignore @@ -2,7 +2,12 @@ data .npmignore test static/css/**/*.less -static/js +#ignore all static/js except shared +static/js/app +static/js/libs +static/js/requirejs +static/js/templates +static/js/*.js .bowerrc bower.json *.tgz From 20347e9005e23a6bc537ada1cbdd4a9a2ca4591a Mon Sep 17 00:00:00 2001 From: oleg Date: Sat, 21 Nov 2015 23:04:49 +0300 Subject: [PATCH 3/4] 0.2.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 236e862..879b2f3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nci", - "version": "0.2.0", + "version": "0.2.1", "description": "Continuous integration server written in node.js", "bin": { "nci": "bin/nci" From da88eec40d24cf230b378e40f2f1e4c6e041eff1 Mon Sep 17 00:00:00 2001 From: oleg Date: Sun, 22 Nov 2015 10:55:44 +0300 Subject: [PATCH 4/4] create db dir if not exist --- app.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/app.js b/app.js index c1a69d9..f65a864 100644 --- a/app.js +++ b/app.js @@ -143,13 +143,12 @@ Steppy( // path to root dir (with projects, builds etc) app.config.paths.data = path.join(process.cwd(), 'data'); app.config.paths.projects = path.join(app.config.paths.data, 'projects'); - app.config.paths.builds = path.join(app.config.paths.data, 'builds'); app.config.paths.db = path.join(app.config.paths.data, 'db'); app.config.paths.preload = path.join(app.config.paths.data, 'preload.json'); - var buildDirExistsCallback = this.slot(); - fs.exists(app.config.paths.builds, function(isExists) { - buildDirExistsCallback(null, isExists); + var dbDirExistsCallback = this.slot(); + fs.exists(app.config.paths.db, function(isExists) { + dbDirExistsCallback(null, isExists); }); var preloadExistsCallback = this.slot(); @@ -157,11 +156,11 @@ Steppy( preloadExistsCallback(null, isExists); }); }, - function(err, isBuildsDirExists, isPreloadExists) { - if (!isBuildsDirExists) { - fs.mkdir(app.config.paths.builds, this.slot()); - } else { + function(err, isDbDirExists, isPreloadExists) { + if (isDbDirExists) { this.pass(null); + } else { + fs.mkdir(app.config.paths.db, this.slot()); } if (isPreloadExists) {