diff --git a/gulpfile.js b/gulpfile.js index 52aa06a900..c9a261b7c9 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -214,9 +214,9 @@ function config() { constants: _.merge({}, { appSettings: { version: project.version, - environment: project.production ? 'Production' : 'Development' + environment: project.env } - }, require('./settings' + (project.production ? '.Production' : '') + '.json') || {}) + }, require('./settings.' + project.env + '.json') || {}) })); } @@ -377,6 +377,15 @@ gulp.task('deploy', ['dist'], function () { .pipe(ghPages({ cacheDir: paths.dist + '.publish' })); }); +gulp.task('deploy-preview', ['dist'], function () { + return gulp.src(paths.dist + '**/*') + .pipe(ghPages({ + cacheDir: paths.dist + '.publish', + remoteUrl: 'git@github.com:bitwarden/web-preview.git', + origin: 'preview' + })); +}); + gulp.task('serve', function () { connect.server({ port: 4001, diff --git a/package.json b/package.json index 66d0517a5e..d73f8c8da2 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "bitwarden", - "version": "1.9.1", - "production": true, + "version": "1.10.0", + "env": "Production", "devDependencies": { "connect": "3.6.0", "lodash": "4.17.4", diff --git a/settings.Preview.json b/settings.Preview.json new file mode 100644 index 0000000000..bc044968e8 --- /dev/null +++ b/settings.Preview.json @@ -0,0 +1,5 @@ +{ + "appSettings": { + "apiUri": "https://preview.api.bitwarden.com" + } +} diff --git a/src/app/settings.js b/src/app/settings.js index 5ebf43a174..6599bf5f89 100644 --- a/src/app/settings.js +++ b/src/app/settings.js @@ -1,2 +1,2 @@ angular.module("bit") -.constant("appSettings", {"apiUri":"https://api.bitwarden.com","version":"1.9.1","environment":"Production"}); +.constant("appSettings", {"apiUri":"https://api.bitwarden.com","version":"1.10.0","environment":"Production"});