lucy-cli 0.7.10 → 0.7.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ export const environment = {
2
+ gitTag: 'development',
3
+ devMode: false,
4
+ development: process.env.SEGMENT === 'dev' ? true : false,
5
+ } as const;
6
+
7
+ export type Environment = typeof environment;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "lucy-cli",
4
- "version": "0.7.10",
4
+ "version": "0.7.12",
5
5
  "description": "Lucy Framework for WIX Studio Editor",
6
6
  "main": ".dist/index.js",
7
7
  "scripts": {
@@ -14,10 +14,12 @@
14
14
  "url": "git+https://github.com/Integral-Systems/wix-lucy-cli.git"
15
15
  },
16
16
  "keywords": [
17
- "Framework",
18
17
  "WIX",
19
18
  "Studio",
20
- "Velo"
19
+ "Velo",
20
+ "WIX Studio",
21
+ "CLI",
22
+ "Typescript"
21
23
  ],
22
24
  "author": "Gradlon von Känel",
23
25
  "license": "MIT",
@@ -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 droneTag = process.env.DRONE_TAG || 'development';
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/public/constants/config.ts'])
15
- .pipe(replace(regexGit, `gitTag: '${droneTag}',`))
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;
package/src/gulp/types.ts CHANGED
@@ -40,7 +40,6 @@ export function updateWixTypes(options: TaskOptions) {
40
40
 
41
41
  if (modules) {
42
42
  for (const [name] of Object.entries(modules)) {
43
- console.error(`Adding module ${name} to WIX types`);
44
43
  // Add module to publicSettings
45
44
  publicSettings.compilerOptions.paths['backend/*.web.js'] = [`../../../${name}/backend/*.web.ts`] as never;
46
45
  publicSettings.compilerOptions.paths['backend/*.web'] = [`../../../${name}/backend/*.web.ts`] as never;