lucy-cli 0.7.11 → 0.7.12
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
package/src/gulp/pipeline.ts
CHANGED
@@ -5,14 +5,14 @@ import replace from 'gulp-string-replace';
|
|
5
5
|
import { blue, red } from '../index.js';
|
6
6
|
|
7
7
|
export function setProdConfig() {
|
8
|
-
const
|
8
|
+
const tag = process.env.GIT_TAG || 'development';
|
9
9
|
const regexGit = /gitTag:\s*(.*),/g;
|
10
10
|
const regexDev = /devMode:\s*(.*),/g;
|
11
11
|
|
12
12
|
return () => {
|
13
13
|
return gulp
|
14
|
-
.src(['./typescript/
|
15
|
-
.pipe(replace(regexGit, `gitTag: '${
|
14
|
+
.src(['./typescript/backend/constants/env.ts'])
|
15
|
+
.pipe(replace(regexGit, `gitTag: '${tag}',`))
|
16
16
|
.pipe(replace(regexDev, `devMode: false,`))
|
17
17
|
.pipe(gulp.dest((file: File) => {
|
18
18
|
const filePath = file.dirname;
|