lucy-cli 0.9.2 → 0.9.3

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.
@@ -9,7 +9,13 @@ const swcOptions = {
9
9
  parser: {
10
10
  syntax: "typescript",
11
11
  tsx: true,
12
+ decorators: true,
13
+ // preserveAllComments: true
12
14
  },
15
+ preserveAllComments: false,
16
+ minify: {
17
+ compress: true // equivalent to {}
18
+ }
13
19
  },
14
20
  };
15
21
  export function buildBackend(options) {
@@ -29,7 +35,6 @@ export function buildBackend(options) {
29
35
  `!${folder}/backend/**/*.jsw.ts`,
30
36
  `!${folder}/backend/**/*.spec.ts`,
31
37
  ])
32
- .pipe(swc(swcOptions))
33
38
  .pipe(swc(swcOptions))
34
39
  .on('error', function (e) {
35
40
  console.log("💩" + red.underline.bold(` => Build of Backend files for ${orange(folder)} failed!`));
@@ -9,6 +9,10 @@ const swcOptions = {
9
9
  syntax: "typescript",
10
10
  tsx: true,
11
11
  },
12
+ preserveAllComments: false,
13
+ minify: {
14
+ compress: true // equivalent to {}
15
+ }
12
16
  },
13
17
  };
14
18
  export function buildPages(options) {
@@ -9,6 +9,10 @@ const swcOptions = {
9
9
  syntax: "typescript",
10
10
  tsx: true,
11
11
  },
12
+ preserveAllComments: false,
13
+ minify: {
14
+ compress: true // equivalent to {}
15
+ }
12
16
  },
13
17
  };
14
18
  export function buildPublic(options) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "lucy-cli",
4
- "version": "0.9.2",
4
+ "version": "0.9.3",
5
5
  "description": "Lucy Framework for WIX Studio Editor",
6
6
  "main": ".dist/index.js",
7
7
  "scripts": {
@@ -12,7 +12,13 @@ const swcOptions = {
12
12
  parser: {
13
13
  syntax: "typescript",
14
14
  tsx: true,
15
+ decorators: true,
16
+ // preserveAllComments: true
15
17
  },
18
+ preserveAllComments: false,
19
+ minify: {
20
+ compress: true // equivalent to {}
21
+ }
16
22
  },
17
23
  };
18
24
 
@@ -37,7 +43,6 @@ export function buildBackend(options: TaskOptions) {
37
43
  `!${folder}/backend/**/*.jsw.ts`,
38
44
  `!${folder}/backend/**/*.spec.ts`,
39
45
  ])
40
- .pipe(swc(swcOptions))
41
46
  .pipe(swc(swcOptions))
42
47
  .on('error', function (e: Error) {
43
48
  console.log("💩" + red.underline.bold(` => Build of Backend files for ${orange(folder)} failed!`));
package/src/gulp/pages.ts CHANGED
@@ -11,6 +11,10 @@ const swcOptions = {
11
11
  syntax: "typescript",
12
12
  tsx: true,
13
13
  },
14
+ preserveAllComments: false,
15
+ minify: {
16
+ compress: true // equivalent to {}
17
+ }
14
18
  },
15
19
  };
16
20
 
@@ -11,6 +11,10 @@ const swcOptions = {
11
11
  syntax: "typescript",
12
12
  tsx: true,
13
13
  },
14
+ preserveAllComments: false,
15
+ minify: {
16
+ compress: true // equivalent to {}
17
+ }
14
18
  },
15
19
  };
16
20