lucy-cli 2.0.0-beta.12 → 2.0.0-beta.14

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.
Files changed (184) hide show
  1. package/dist/commands/git.d.ts +3 -3
  2. package/dist/commands/home.d.ts +1 -1
  3. package/dist/init/cargo.d.ts +1 -1
  4. package/dist/init/gitModules.d.ts +1 -1
  5. package/dist/init/index.d.ts +1 -1
  6. package/dist/init/index.js +0 -2
  7. package/dist/init/index.js.map +1 -1
  8. package/dist/init/monorepo.d.ts +1 -1
  9. package/dist/init/prepareVelo.d.ts +1 -1
  10. package/dist/init/tauri.d.ts +1 -1
  11. package/dist/init/templates.d.ts +1 -1
  12. package/dist/init/velo.d.ts +1 -1
  13. package/package.json +8 -2
  14. package/.cursorignore +0 -4
  15. package/.eslintrc.cjs +0 -96
  16. package/.github/funding.yml +0 -2
  17. package/.nvmrc +0 -1
  18. package/.stylelintrc.js +0 -8
  19. package/.wix/debug.log +0 -10
  20. package/.yarnrc.yml +0 -2
  21. package/files/sync-data/data/test.csv +0 -17
  22. package/files/sync-data/files/lucy.jpg +0 -0
  23. package/files/sync-data/schema/test.json +0 -11
  24. package/lucy.jpg +0 -0
  25. package/mitarbeiter-login.html +0 -188
  26. package/old/Gulpfile.d.ts +0 -34
  27. package/old/Gulpfile.js +0 -116
  28. package/old/Gulpfile.js.map +0 -1
  29. package/old/Gulpfile.ts +0 -231
  30. package/old/gulp/backend.d.ts +0 -3
  31. package/old/gulp/backend.js +0 -92
  32. package/old/gulp/backend.js.map +0 -1
  33. package/old/gulp/backend.ts +0 -109
  34. package/old/gulp/checks.d.ts +0 -3
  35. package/old/gulp/checks.js +0 -205
  36. package/old/gulp/checks.js.map +0 -1
  37. package/old/gulp/checks.ts +0 -228
  38. package/old/gulp/clean.d.ts +0 -3
  39. package/old/gulp/clean.js +0 -29
  40. package/old/gulp/clean.js.map +0 -1
  41. package/old/gulp/clean.ts +0 -33
  42. package/old/gulp/copy.d.ts +0 -2
  43. package/old/gulp/copy.js +0 -34
  44. package/old/gulp/copy.js.map +0 -1
  45. package/old/gulp/copy.ts +0 -42
  46. package/old/gulp/helpers.d.ts +0 -2
  47. package/old/gulp/helpers.js +0 -25
  48. package/old/gulp/helpers.js.map +0 -1
  49. package/old/gulp/helpers.ts +0 -26
  50. package/old/gulp/pages.d.ts +0 -2
  51. package/old/gulp/pages.js +0 -37
  52. package/old/gulp/pages.js.map +0 -1
  53. package/old/gulp/pages.ts +0 -40
  54. package/old/gulp/pipeline.d.ts +0 -1
  55. package/old/gulp/pipeline.js +0 -29
  56. package/old/gulp/pipeline.js.map +0 -1
  57. package/old/gulp/pipeline.ts +0 -31
  58. package/old/gulp/public.d.ts +0 -2
  59. package/old/gulp/public.js +0 -50
  60. package/old/gulp/public.js.map +0 -1
  61. package/old/gulp/public.ts +0 -59
  62. package/old/gulp/styles.d.ts +0 -2
  63. package/old/gulp/styles.js +0 -40
  64. package/old/gulp/styles.js.map +0 -1
  65. package/old/gulp/styles.ts +0 -46
  66. package/old/gulp/templates.d.ts +0 -2
  67. package/old/gulp/templates.js +0 -33
  68. package/old/gulp/templates.js.map +0 -1
  69. package/old/gulp/templates.ts +0 -39
  70. package/old/gulp/types.d.ts +0 -4
  71. package/old/gulp/types.js +0 -289
  72. package/old/gulp/types.js.map +0 -1
  73. package/old/gulp/types.ts +0 -311
  74. package/old/gulp/watchers.d.ts +0 -9
  75. package/old/gulp/watchers.js +0 -59
  76. package/old/gulp/watchers.js.map +0 -1
  77. package/old/gulp/watchers.ts +0 -105
  78. package/old/helpers.d.ts +0 -32
  79. package/old/helpers.js +0 -267
  80. package/old/helpers.js.map +0 -1
  81. package/old/helpers.ts +0 -307
  82. package/old/index.d.ts +0 -59
  83. package/old/index.js +0 -288
  84. package/old/index.js.map +0 -1
  85. package/old/index.ts +0 -379
  86. package/old/init.d.ts +0 -8
  87. package/old/init.js +0 -165
  88. package/old/init.js.map +0 -1
  89. package/old/init.ts +0 -183
  90. package/old/models.d.ts +0 -37
  91. package/old/models.js +0 -2
  92. package/old/models.js.map +0 -1
  93. package/old/models.ts +0 -35
  94. package/old/prepare.d.ts +0 -8
  95. package/old/prepare.js +0 -20
  96. package/old/prepare.js.map +0 -1
  97. package/old/prepare.ts +0 -24
  98. package/old/schemas/index.d.ts +0 -0
  99. package/old/schemas/index.js +0 -2
  100. package/old/schemas/index.js.map +0 -1
  101. package/old/schemas/index.ts +0 -0
  102. package/old/schemas/types.d.ts +0 -0
  103. package/old/schemas/types.js +0 -2
  104. package/old/schemas/types.js.map +0 -1
  105. package/old/schemas/types.ts +0 -0
  106. package/old/settings.json +0 -67
  107. package/old/sync.d.ts +0 -2
  108. package/old/sync.js +0 -88
  109. package/old/sync.js.map +0 -1
  110. package/old/sync.ts +0 -97
  111. package/old/types.d.ts +0 -8
  112. package/pnpm-workspace.yaml +0 -6
  113. package/settings/backend-settings.json +0 -19
  114. package/settings/master-settings.json +0 -20
  115. package/settings/page-settings.json +0 -21
  116. package/settings/public-settings.json +0 -22
  117. package/src/args.ts +0 -121
  118. package/src/commands/checks.ts +0 -51
  119. package/src/commands/cleanup.ts +0 -11
  120. package/src/commands/copy.ts +0 -29
  121. package/src/commands/edit.ts +0 -81
  122. package/src/commands/exec.ts +0 -73
  123. package/src/commands/git.ts +0 -152
  124. package/src/commands/home.ts +0 -20
  125. package/src/commands/install.ts +0 -269
  126. package/src/commands/read.ts +0 -45
  127. package/src/commands/write.ts +0 -45
  128. package/src/commands.ts +0 -21
  129. package/src/config.ts +0 -142
  130. package/src/error.ts +0 -3
  131. package/src/helpers.ts +0 -93
  132. package/src/index.ts +0 -113
  133. package/src/init/blocks.ts +0 -85
  134. package/src/init/cargo.ts +0 -25
  135. package/src/init/expo.ts +0 -69
  136. package/src/init/gitModules.ts +0 -15
  137. package/src/init/index.ts +0 -88
  138. package/src/init/monorepo.ts +0 -72
  139. package/src/init/prepareVelo.ts +0 -19
  140. package/src/init/tauri.ts +0 -42
  141. package/src/init/templates.ts +0 -98
  142. package/src/init/velo.ts +0 -66
  143. package/src/policy.ts +0 -6
  144. package/src/prepare.ts +0 -24
  145. package/src/runtime.ts +0 -21
  146. package/src/schemas/gulp.ts +0 -31
  147. package/src/schemas/index.ts +0 -17
  148. package/src/schemas/lucy.ts +0 -43
  149. package/src/schemas/tsconfig.ts +0 -35
  150. package/src/schemas/types.ts +0 -40
  151. package/src/settings.json +0 -67
  152. package/src/states.ts +0 -15
  153. package/src/tasks/Gulpfile.ts +0 -207
  154. package/src/tasks/gulp/backend.ts +0 -113
  155. package/src/tasks/gulp/checks.ts +0 -219
  156. package/src/tasks/gulp/clean.ts +0 -38
  157. package/src/tasks/gulp/copy.ts +0 -38
  158. package/src/tasks/gulp/helpers.ts +0 -18
  159. package/src/tasks/gulp/pages.ts +0 -43
  160. package/src/tasks/gulp/pipeline.ts +0 -31
  161. package/src/tasks/gulp/public.ts +0 -61
  162. package/src/tasks/gulp/styles.ts +0 -47
  163. package/src/tasks/gulp/templates.ts +0 -53
  164. package/src/tasks/gulp/types.ts +0 -310
  165. package/src/tasks/gulp/watchers.ts +0 -97
  166. package/src/tasks/index.ts +0 -24
  167. package/src/tasks/syncSettings.ts +0 -21
  168. package/src/types.d.ts +0 -8
  169. package/src/utils/index.ts +0 -0
  170. package/src/utils/logger.ts +0 -40
  171. package/src/wix-sdk/check.ts +0 -24
  172. package/src/wix-sdk/client.ts +0 -18
  173. package/src/wix-sdk/index.ts +0 -17
  174. package/src/wix-sdk/init.ts +0 -54
  175. package/src/wix-sdk/run.ts +0 -56
  176. package/src/wix-sync/client.ts +0 -6
  177. package/src/wix-sync/export.ts +0 -19
  178. package/src/wix-sync/import.ts +0 -27
  179. package/src/wix-sync/index.ts +0 -36
  180. package/src/wix-sync/init.ts +0 -77
  181. package/src/wix-sync/is-alive.ts +0 -25
  182. package/src/wix-sync/migrate.ts +0 -23
  183. package/src/wix-sync/sync.ts +0 -27
  184. package/tsconfig.json +0 -34
@@ -1,2 +0,0 @@
1
- import { TaskOptions } from '../Gulpfile';
2
- export declare function buildPages(options: TaskOptions): () => any;
package/old/gulp/pages.js DELETED
@@ -1,37 +0,0 @@
1
- import gulp from 'gulp';
2
- import * as path from 'path';
3
- import { blue, orange, red } from '../index.js';
4
- import swc from 'gulp-swc';
5
- const swcOptions = {
6
- jsc: {
7
- target: 'es2020',
8
- parser: {
9
- syntax: "typescript",
10
- tsx: true,
11
- },
12
- preserveAllComments: false,
13
- minify: {
14
- compress: true // equivalent to {}
15
- }
16
- },
17
- };
18
- export function buildPages(options) {
19
- const { outputDir } = options;
20
- return () => {
21
- return gulp.src('typescript/pages/*.ts')
22
- .pipe(swc(swcOptions))
23
- .on('error', function (e) {
24
- console.log("💩" + red.underline.bold(` => Build of Pages files failed!`));
25
- console.log("💩" + red.underline.bold(` => Error: ${orange(e.message)}`));
26
- this.emit('end');
27
- })
28
- .pipe(gulp.dest(path.join(outputDir, 'pages')))
29
- .on('error', function (e) {
30
- console.log("💩" + red.underline.bold(' => Build of Pages TS files failed!'));
31
- console.log("💩" + red.underline.bold(` => Error: ${orange(e.message)}`));
32
- this.emit('end');
33
- })
34
- .on('end', function () { console.log("🐶" + blue.underline(' => Build of Pages TS files succeeded!')); });
35
- };
36
- }
37
- //# sourceMappingURL=pages.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pages.js","sourceRoot":"","sources":["pages.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,GAAG,MAAM,UAAU,CAAC;AAE3B,MAAM,UAAU,GAAG;IACf,GAAG,EAAE;QACD,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACJ,MAAM,EAAE,YAAY;YACpB,GAAG,EAAE,IAAI;SACZ;QACD,mBAAmB,EAAE,KAAK;QAC1B,MAA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AC,CAAC,CAAC,CAAC;IACrH,CAAC,CAAC;AACN,CAAC"}
package/old/gulp/pages.ts DELETED
@@ -1,40 +0,0 @@
1
- import gulp from 'gulp';
2
- import { TaskOptions } from '../Gulpfile';
3
- import * as path from 'path';
4
- import { blue, orange, red } from '../index.js';
5
- import swc from 'gulp-swc';
6
-
7
- const swcOptions = {
8
- jsc: {
9
- target: 'es2020',
10
- parser: {
11
- syntax: "typescript",
12
- tsx: true,
13
- },
14
- preserveAllComments: false,
15
- minify: {
16
- compress: true // equivalent to {}
17
- }
18
- },
19
- };
20
-
21
- export function buildPages(options: TaskOptions) {
22
- const { outputDir} = options;
23
-
24
- return () => {
25
- return gulp.src('typescript/pages/*.ts')
26
- .pipe(swc(swcOptions))
27
- .on('error', function (e: Error) {
28
- console.log("💩" + red.underline.bold(` => Build of Pages files failed!`));
29
- console.log("💩" + red.underline.bold(` => Error: ${orange(e.message)}`));
30
- this.emit('end');
31
- })
32
- .pipe(gulp.dest(path.join(outputDir, 'pages')))
33
- .on('error', function (e: Error) {
34
- console.log("💩" + red.underline.bold(' => Build of Pages TS files failed!'));
35
- console.log("💩" + red.underline.bold(` => Error: ${orange(e.message)}`));
36
- this.emit('end');
37
- })
38
- .on('end', function() { console.log("🐶" + blue.underline(' => Build of Pages TS files succeeded!')); });
39
- };
40
- }
@@ -1 +0,0 @@
1
- export declare function setProdConfig(): () => any;
@@ -1,29 +0,0 @@
1
- import gulp from 'gulp';
2
- import * as path from 'path';
3
- import replace from 'gulp-string-replace';
4
- import { blue, orange, red } from '../index.js';
5
- export function setProdConfig() {
6
- const tag = process.env.GIT_TAG || 'development';
7
- const regexGit = /gitTag:\s*(.*),/g;
8
- const regexDev = /devMode:\s*(.*),/g;
9
- return () => {
10
- return gulp
11
- .src(['./typescript/public/constants/env.ts'])
12
- .pipe(replace(regexGit, `gitTag: '${tag}',`))
13
- .pipe(replace(regexDev, `devMode: false,`))
14
- .pipe(gulp.dest((file) => {
15
- const filePath = file.dirname;
16
- const outputDir = path.dirname(filePath);
17
- return path.join(`${outputDir}/constants`);
18
- }))
19
- .on('error', function (e) {
20
- console.log("💩" + red.underline.bold(' => Setting the git tag failed!'));
21
- console.log("💩" + red.underline.bold(` => Error: ${orange(e.message)}`));
22
- this.emit('end');
23
- })
24
- .on('end', function () {
25
- console.log("🐶" + blue.underline(' => Setting the git tag succeeded!'));
26
- });
27
- };
28
- }
29
- //# sourceMappingURL=pipeline.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pipeline.js","sourceRoot":"","sources":["pipeline.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B,OAAO,OAAO,MAAM,qBAAqB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,UAAU,aAAa;IACzB,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,OAAO,IAAI,aAAa,CAAC;IACjD,MAAM,QAAQ,GAAG,kBAAkB,CAAC;IACpC,MAAM,QAAQ,GAAG,mBAAmB,CAAC;IAErC,OAAO,GAAG,EAAE;QACR,OAAO,IAAI;aACN,GAAG,CAAC,CAAC,sCAAsC,CAAC,CAAC;aAC7C,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,YAAY,GAAG,IAAI,CAAC,CAAC;aAC5C,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC;aAC1C,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAU,EAAE,EAAE;YAC3B,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC;YAC9B,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;YAEzC,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,SAAS,YAAY,CAAC,CAAC;QAC/C,CAAC,CAAC,CAAC;aACF,EAAE,CAAC,OAAO,EAAE,UAAU,CAAQ;YAC3B,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,iCAAiC,CAAC,CAAC,CAAC;YAC1E,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,cAAc,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC;YAC1E,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACrB,CAAC,CAAC;aACD,EAAE,CAAC,KAAK,EAAE;YAAa,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,oCAAoC,CAAC,CAAC,CAAC;QACrG,CAAC,CAAC,CAAC;IACP,CAAC,CAAA;AACL,CAAC"}
@@ -1,31 +0,0 @@
1
- import gulp from 'gulp';
2
- import * as path from 'path';
3
- import { File } from '../Gulpfile';
4
- import replace from 'gulp-string-replace';
5
- import { blue, orange, red } from '../index.js';
6
-
7
- export function setProdConfig() {
8
- const tag = process.env.GIT_TAG || 'development';
9
- const regexGit = /gitTag:\s*(.*),/g;
10
- const regexDev = /devMode:\s*(.*),/g;
11
-
12
- return () => {
13
- return gulp
14
- .src(['./typescript/public/constants/env.ts'])
15
- .pipe(replace(regexGit, `gitTag: '${tag}',`))
16
- .pipe(replace(regexDev, `devMode: false,`))
17
- .pipe(gulp.dest((file: File) => {
18
- const filePath = file.dirname;
19
- const outputDir = path.dirname(filePath);
20
-
21
- return path.join(`${outputDir}/constants`);
22
- }))
23
- .on('error', function (e: Error) {
24
- console.log("💩" + red.underline.bold(' => Setting the git tag failed!'));
25
- console.log("💩" + red.underline.bold(` => Error: ${orange(e.message)}`));
26
- this.emit('end');
27
- })
28
- .on('end', function() { console.log("🐶" + blue.underline(' => Setting the git tag succeeded!'));
29
- });
30
- }
31
- }
@@ -1,2 +0,0 @@
1
- import { TaskOptions } from '../Gulpfile';
2
- export declare function buildPublic(options: TaskOptions): import("undertaker").TaskFunction;
@@ -1,50 +0,0 @@
1
- import gulp from 'gulp';
2
- import * as path from 'path';
3
- import { blue, orange, red } from '../index.js';
4
- import swc from 'gulp-swc';
5
- const swcOptions = {
6
- jsc: {
7
- target: 'es2020',
8
- parser: {
9
- syntax: "typescript",
10
- tsx: true,
11
- },
12
- preserveAllComments: false,
13
- minify: {
14
- compress: true // equivalent to {}
15
- }
16
- },
17
- };
18
- export function buildPublic(options) {
19
- const folders = ['typescript', ...options.modulesSourcePaths];
20
- const { outputDir } = options;
21
- // Create tasks for each folder
22
- const tasks = folders.map((folder) => {
23
- const taskName = `build_Public-${folder}`; // Create a unique name for each task
24
- const task = () => gulp.src([
25
- `${folder}/public/**/*.ts`,
26
- `${folder}/public/**/*.tsx`,
27
- ])
28
- .pipe(swc(swcOptions))
29
- .on('error', function (e) {
30
- console.log("💩" + red.underline.bold(` => Build of Public files for ${orange(folder)} failed!`));
31
- console.log("💩" + red.underline.bold(` => Error: ${orange(e.message)}`));
32
- this.emit('end');
33
- })
34
- .pipe(gulp.dest(path.join(outputDir, 'public')))
35
- .on('error', function (e) {
36
- console.log("💩" + red.underline.bold(` => Build of Public files for ${orange(folder)} failed!`));
37
- console.log("💩" + red.underline.bold(` => Error: ${orange(e.message)}`));
38
- this.emit('end');
39
- })
40
- .on('end', function () {
41
- console.log("🐶" + blue.underline(` => Build of Public files for ${orange(folder)} succeeded!`));
42
- });
43
- // Register the task with Gulp
44
- Object.defineProperty(task, 'name', { value: taskName }); // Set a unique name for debugging
45
- return task;
46
- });
47
- // Run all tasks in parallel
48
- return gulp.parallel(...tasks);
49
- }
50
- //# sourceMappingURL=public.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"public.js","sourceRoot":"","sources":["public.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B,OAAO,EAAE,IAA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IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC;aAC/C,EAAE,CAAC,OAAO,EAAE,UAAU,CAAQ;YAC3B,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,iCAAiC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC;YAClG,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,cAAc,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC;YAC1E,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACrB,CAAC,CAAC;aACD,EAAE,CAAC,KAAK,EAAE;YACP,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,iCAAiC,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC;QACrG,CAAC,CAAC,CAAC;QAEX,8BAA8B;QAC9B,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,kCAAkC;QAC5F,OAAO,IAAI,CAAC;IAChB,CAAC,CAAC,CAAC;IAEH,4BAA4B;IAC5B,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC;AACnC,CAAC"}
@@ -1,59 +0,0 @@
1
- import gulp from 'gulp';
2
- import * as path from 'path';
3
- import { TaskOptions } from '../Gulpfile';
4
- import { blue, orange, red } from '../index.js';
5
- import swc from 'gulp-swc';
6
-
7
- const swcOptions = {
8
- jsc: {
9
- target: 'es2020',
10
- parser: {
11
- syntax: "typescript",
12
- tsx: true,
13
- },
14
- preserveAllComments: false,
15
- minify: {
16
- compress: true // equivalent to {}
17
- }
18
- },
19
- };
20
-
21
- export function buildPublic(options: TaskOptions) {
22
- const folders = ['typescript', ...options.modulesSourcePaths];
23
-
24
- const { outputDir } = options;
25
-
26
- // Create tasks for each folder
27
- const tasks = folders.map((folder) => {
28
- const taskName = `build_Public-${folder}`; // Create a unique name for each task
29
-
30
- const task = () =>
31
- gulp.src([
32
- `${folder}/public/**/*.ts`,
33
- `${folder}/public/**/*.tsx`,
34
- ])
35
- .pipe(swc(swcOptions))
36
- .on('error', function (e: Error) {
37
- console.log("💩" + red.underline.bold(` => Build of Public files for ${orange(folder)} failed!`));
38
- console.log("💩" + red.underline.bold(` => Error: ${orange(e.message)}`));
39
- this.emit('end');
40
- })
41
- .pipe(gulp.dest(path.join(outputDir, 'public')))
42
- .on('error', function (e: Error) {
43
- console.log("💩" + red.underline.bold(` => Build of Public files for ${orange(folder)} failed!`));
44
- console.log("💩" + red.underline.bold(` => Error: ${orange(e.message)}`));
45
- this.emit('end');
46
- })
47
- .on('end', function () {
48
- console.log("🐶" + blue.underline(` => Build of Public files for ${orange(folder)} succeeded!`));
49
- });
50
-
51
- // Register the task with Gulp
52
- Object.defineProperty(task, 'name', { value: taskName }); // Set a unique name for debugging
53
- return task;
54
- });
55
-
56
- // Run all tasks in parallel
57
- return gulp.parallel(...tasks);
58
- }
59
-
@@ -1,2 +0,0 @@
1
- import { TaskOptions } from '../Gulpfile';
2
- export declare function compileScss(options: TaskOptions): import("undertaker").TaskFunction;
@@ -1,40 +0,0 @@
1
- import gulp from 'gulp';
2
- import { blue, orange, red } from '../index.js';
3
- export function compileScss(options) {
4
- const folders = ['typescript'];
5
- const { sass, outputDir } = options;
6
- const buildWixScss = () => gulp.src(['typescript/styles/global.scss'], { allowEmpty: true })
7
- .pipe(sass().on('error', sass.logError))
8
- .on('error', function (e) {
9
- console.log("💩" + red.underline.bold(` => Build of SCSS files for ${orange('global.scs')} failed!`));
10
- console.log("💩" + red.underline.bold(` => Error: ${orange(e.message)}`));
11
- this.emit('end');
12
- })
13
- .pipe(gulp.dest(`${outputDir}/styles`))
14
- .on('error', function (e) {
15
- console.log("💩" + red.underline.bold(` => Compiling of scss files for ${orange('global.scs')} failed!`));
16
- console.log("💩" + red.underline.bold(` => Error: ${orange(e.message)}`));
17
- this.emit('end');
18
- })
19
- .on('end', function () {
20
- console.log("🐶" + blue.underline(` => Compiling of scss files for ${orange('global.scs')} succeeded!`));
21
- });
22
- const buildScss = () => gulp.src(['typescript/public/scss/app.scss'], { allowEmpty: true })
23
- .pipe(sass().on('error', sass.logError))
24
- .on('error', function (e) {
25
- console.log("💩" + red.underline.bold(` => Build of SCSS files for ${orange('app.scss')} failed!`));
26
- console.log("💩" + red.underline.bold(` => Error: ${orange(e.message)}`));
27
- this.emit('end');
28
- })
29
- .pipe(gulp.dest(`${outputDir}/public/css`))
30
- .on('error', function (e) {
31
- console.log("💩" + red.underline.bold(` => Compiling of scss files for ${orange('app.scss')} failed!`));
32
- console.log("💩" + red.underline.bold(` => Error: ${orange(e.message)}`));
33
- this.emit('end');
34
- })
35
- .on('end', function () {
36
- console.log("🐶" + blue.underline(` => Compiling of scss files for ${orange('app.scss')} succeeded!`));
37
- });
38
- return gulp.parallel(buildWixScss, buildScss);
39
- }
40
- //# sourceMappingURL=styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["styles.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,UAAU,WAAW,CAAC,OAAoB;IAC5C,MAAM,OAAO,GAAG,CAAC,YAAY,CAAC,CAAC;IAE/B,MAAM,EAAE,IAAI,EAAE,SAAS,EAAC,GAAG,OAAO,CAAC;IAEnC,MAAM,YAAY,GAAI,GAAG,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,+BAA+B,CAAC,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;SACxF,IAAI,CAAC,IAAI,E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
2
- import chalk from 'chalk';
3
- import { TaskOptions } from '../Gulpfile';
4
- import { blue, orange, red } from '../index.js';
5
-
6
- export function compileScss(options: TaskOptions) {
7
- const folders = ['typescript'];
8
-
9
- const { sass, outputDir} = options;
10
-
11
- const buildWixScss = () => gulp.src(['typescript/styles/global.scss'], { allowEmpty: true })
12
- .pipe(sass().on('error', sass.logError))
13
- .on('error', function (e: Error) {
14
- console.log("💩" + red.underline.bold(` => Build of SCSS files for ${orange('global.scs')} failed!`));
15
- console.log("💩" + red.underline.bold(` => Error: ${orange(e.message)}`));
16
- this.emit('end');
17
- })
18
- .pipe(gulp.dest(`${outputDir}/styles`))
19
- .on('error', function (e: Error) {
20
- console.log("💩" + red.underline.bold(` => Compiling of scss files for ${orange('global.scs')} failed!`));
21
- console.log("💩" + red.underline.bold(` => Error: ${orange(e.message)}`));
22
- this.emit('end');
23
- })
24
- .on('end', function () {
25
- console.log("🐶" + blue.underline(` => Compiling of scss files for ${orange('global.scs')} succeeded!`));
26
- });
27
-
28
- const buildScss = () => gulp.src(['typescript/public/scss/app.scss'], { allowEmpty: true })
29
- .pipe(sass().on('error', sass.logError))
30
- .on('error', function (e: Error) {
31
- console.log("💩" + red.underline.bold(` => Build of SCSS files for ${orange('app.scss')} failed!`));
32
- console.log("💩" + red.underline.bold(` => Error: ${orange(e.message)}`));
33
- this.emit('end');
34
- })
35
- .pipe(gulp.dest(`${outputDir}/public/css`))
36
- .on('error', function (e: Error) {
37
- console.log("💩" + red.underline.bold(` => Compiling of scss files for ${orange('app.scss')} failed!`));
38
- console.log("💩" + red.underline.bold(` => Error: ${orange(e.message)}`));
39
- this.emit('end');
40
- })
41
- .on('end', function () {
42
- console.log("🐶" + blue.underline(` => Compiling of scss files for ${orange('app.scss')} succeeded!`));
43
- });
44
-
45
- return gulp.parallel(buildWixScss, buildScss);
46
- }
@@ -1,2 +0,0 @@
1
- import { TaskOptions } from '../Gulpfile';
2
- export declare function previewTemplates(options: TaskOptions): import("undertaker").TaskFunction;
@@ -1,33 +0,0 @@
1
- import gulp from 'gulp';
2
- import exec from 'gulp-exec';
3
- import { blue, orange, red } from '../index.js';
4
- export function previewTemplates(options) {
5
- const folders = ['typescript', ...options.modulesSourcePaths];
6
- const taskOpt = {
7
- continueOnError: true,
8
- };
9
- // Create tasks for each folder
10
- const tasks = folders.map((folder) => {
11
- const taskName = `render_templates-${folder}`; // Create a unique name for each task
12
- const task = () => gulp.src([
13
- `${folder}/backend/templates/**/*.tsx`,
14
- `${folder}/backend/templates/data/*.json`,
15
- `!${folder}/backend/templates/render.ts`,
16
- ])
17
- .pipe(exec((file) => `npx tsx --tsconfig ./local.tsconfig.json ${file.path}`, taskOpt))
18
- .on('error', function (e) {
19
- console.log("💩" + red.underline.bold(` => Render of Template for ${orange(folder)} failed!`));
20
- console.log("💩" + red.underline.bold(` => Error: ${orange(e.message)}`));
21
- this.emit('end');
22
- })
23
- .on('end', function () {
24
- console.log("🐶" + blue.underline(` => Render of Template for ${orange(folder)} succeeded!`));
25
- });
26
- // Register the task with Gulp
27
- Object.defineProperty(task, 'name', { value: taskName }); // Set a unique name for debugging
28
- return task;
29
- });
30
- // Run all tasks in parallel
31
- return gulp.parallel(...tasks);
32
- }
33
- //# sourceMappingURL=templates.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"templates.js","sourceRoot":"","sources":["templates.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,UAAU,gBAAgB,CAAC,OAAoB;IAC7C,MAAM,OAAO,GAAG,CAAC,YAAY,EAAE,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAE9D,MAAM,OAAO,GAAG;QACZ,eAAe,EAAE,IAAI;KACxB,CAAC;IAEF,+BAA+B;IAC/B,MAAM,KAAK,GAAG,OAAO,CAAC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- import gulp from 'gulp';
2
- import { File, TaskOptions } from '../Gulpfile';
3
- import exec from 'gulp-exec';
4
- import { blue, orange, red } from '../index.js';
5
-
6
- export function previewTemplates(options: TaskOptions) {
7
- const folders = ['typescript', ...options.modulesSourcePaths];
8
-
9
- const taskOpt = {
10
- continueOnError: true,
11
- };
12
-
13
- // Create tasks for each folder
14
- const tasks = folders.map((folder) => {
15
- const taskName = `render_templates-${folder}`; // Create a unique name for each task
16
- const task = () =>
17
- gulp.src([
18
- `${folder}/backend/templates/**/*.tsx`,
19
- `${folder}/backend/templates/data/*.json`,
20
- `!${folder}/backend/templates/render.ts`,
21
- ])
22
- .pipe(exec((file: File) => `npx tsx --tsconfig ./local.tsconfig.json ${file.path}`, taskOpt))
23
- .on('error', function (e: Error) {
24
- console.log("💩" + red.underline.bold(` => Render of Template for ${orange(folder)} failed!`));
25
- console.log("💩" + red.underline.bold(` => Error: ${orange(e.message)}`));
26
- this.emit('end');
27
- })
28
- .on('end', function () {
29
- console.log("🐶" + blue.underline(` => Render of Template for ${orange(folder)} succeeded!`));
30
- });
31
-
32
- // Register the task with Gulp
33
- Object.defineProperty(task, 'name', { value: taskName }); // Set a unique name for debugging
34
- return task;
35
- });
36
-
37
- // Run all tasks in parallel
38
- return gulp.parallel(...tasks);
39
- }
@@ -1,4 +0,0 @@
1
- import gulp from 'gulp';
2
- import { TaskOptions } from '../Gulpfile';
3
- export declare function updateWixTypes(options: TaskOptions): () => any;
4
- export declare function addTypes(options: TaskOptions, done: gulp.TaskFunctionCallback): NodeJS.ReadWriteStream;