lucy-cli 0.7.12 → 0.7.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/gulp/pipeline.js +3 -3
- package/dist/gulp/types.js +0 -1
- package/package.json +1 -1
- package/src/gulp/pipeline.ts +1 -1
package/dist/gulp/pipeline.js
CHANGED
@@ -3,13 +3,13 @@ import * as path from 'path';
|
|
3
3
|
import replace from 'gulp-string-replace';
|
4
4
|
import { blue, red } from '../index.js';
|
5
5
|
export function setProdConfig() {
|
6
|
-
const
|
6
|
+
const tag = process.env.GIT_TAG || 'development';
|
7
7
|
const regexGit = /gitTag:\s*(.*),/g;
|
8
8
|
const regexDev = /devMode:\s*(.*),/g;
|
9
9
|
return () => {
|
10
10
|
return gulp
|
11
|
-
.src(['./typescript/public/constants/
|
12
|
-
.pipe(replace(regexGit, `gitTag: '${
|
11
|
+
.src(['./typescript/public/constants/env.ts'])
|
12
|
+
.pipe(replace(regexGit, `gitTag: '${tag}',`))
|
13
13
|
.pipe(replace(regexDev, `devMode: false,`))
|
14
14
|
.pipe(gulp.dest((file) => {
|
15
15
|
const filePath = file.dirname;
|
package/dist/gulp/types.js
CHANGED
@@ -34,7 +34,6 @@ export function updateWixTypes(options) {
|
|
34
34
|
pageSettings.include = ["../../../typescript/public/**/*", "../../../typescript/__mocks__/**/*", "../../../typescript/backend/**/*"];
|
35
35
|
if (modules) {
|
36
36
|
for (const [name] of Object.entries(modules)) {
|
37
|
-
console.error(`Adding module ${name} to WIX types`);
|
38
37
|
// Add module to publicSettings
|
39
38
|
publicSettings.compilerOptions.paths['backend/*.web.js'] = [`../../../${name}/backend/*.web.ts`];
|
40
39
|
publicSettings.compilerOptions.paths['backend/*.web'] = [`../../../${name}/backend/*.web.ts`];
|
package/package.json
CHANGED
package/src/gulp/pipeline.ts
CHANGED
@@ -11,7 +11,7 @@ export function setProdConfig() {
|
|
11
11
|
|
12
12
|
return () => {
|
13
13
|
return gulp
|
14
|
-
.src(['./typescript/
|
14
|
+
.src(['./typescript/public/constants/env.ts'])
|
15
15
|
.pipe(replace(regexGit, `gitTag: '${tag}',`))
|
16
16
|
.pipe(replace(regexDev, `devMode: false,`))
|
17
17
|
.pipe(gulp.dest((file: File) => {
|