mirror of
https://github.com/bitwarden/web
synced 2025-12-06 00:03:28 +00:00
rework configs to accomedate preview env
This commit is contained in:
13
gulpfile.js
13
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,
|
||||
|
||||
Reference in New Issue
Block a user