lucy-cli 2.0.0-beta.13 → 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 (172) hide show
  1. package/package.json +7 -2
  2. package/.cursorignore +0 -4
  3. package/.eslintrc.cjs +0 -96
  4. package/.github/funding.yml +0 -2
  5. package/.nvmrc +0 -1
  6. package/.stylelintrc.js +0 -8
  7. package/.wix/debug.log +0 -10
  8. package/.yarnrc.yml +0 -2
  9. package/files/sync-data/data/test.csv +0 -17
  10. package/files/sync-data/files/lucy.jpg +0 -0
  11. package/files/sync-data/schema/test.json +0 -11
  12. package/lucy.jpg +0 -0
  13. package/mitarbeiter-login.html +0 -188
  14. package/old/Gulpfile.d.ts +0 -34
  15. package/old/Gulpfile.js +0 -116
  16. package/old/Gulpfile.js.map +0 -1
  17. package/old/Gulpfile.ts +0 -231
  18. package/old/gulp/backend.d.ts +0 -3
  19. package/old/gulp/backend.js +0 -92
  20. package/old/gulp/backend.js.map +0 -1
  21. package/old/gulp/backend.ts +0 -109
  22. package/old/gulp/checks.d.ts +0 -3
  23. package/old/gulp/checks.js +0 -205
  24. package/old/gulp/checks.js.map +0 -1
  25. package/old/gulp/checks.ts +0 -228
  26. package/old/gulp/clean.d.ts +0 -3
  27. package/old/gulp/clean.js +0 -29
  28. package/old/gulp/clean.js.map +0 -1
  29. package/old/gulp/clean.ts +0 -33
  30. package/old/gulp/copy.d.ts +0 -2
  31. package/old/gulp/copy.js +0 -34
  32. package/old/gulp/copy.js.map +0 -1
  33. package/old/gulp/copy.ts +0 -42
  34. package/old/gulp/helpers.d.ts +0 -2
  35. package/old/gulp/helpers.js +0 -25
  36. package/old/gulp/helpers.js.map +0 -1
  37. package/old/gulp/helpers.ts +0 -26
  38. package/old/gulp/pages.d.ts +0 -2
  39. package/old/gulp/pages.js +0 -37
  40. package/old/gulp/pages.js.map +0 -1
  41. package/old/gulp/pages.ts +0 -40
  42. package/old/gulp/pipeline.d.ts +0 -1
  43. package/old/gulp/pipeline.js +0 -29
  44. package/old/gulp/pipeline.js.map +0 -1
  45. package/old/gulp/pipeline.ts +0 -31
  46. package/old/gulp/public.d.ts +0 -2
  47. package/old/gulp/public.js +0 -50
  48. package/old/gulp/public.js.map +0 -1
  49. package/old/gulp/public.ts +0 -59
  50. package/old/gulp/styles.d.ts +0 -2
  51. package/old/gulp/styles.js +0 -40
  52. package/old/gulp/styles.js.map +0 -1
  53. package/old/gulp/styles.ts +0 -46
  54. package/old/gulp/templates.d.ts +0 -2
  55. package/old/gulp/templates.js +0 -33
  56. package/old/gulp/templates.js.map +0 -1
  57. package/old/gulp/templates.ts +0 -39
  58. package/old/gulp/types.d.ts +0 -4
  59. package/old/gulp/types.js +0 -289
  60. package/old/gulp/types.js.map +0 -1
  61. package/old/gulp/types.ts +0 -311
  62. package/old/gulp/watchers.d.ts +0 -9
  63. package/old/gulp/watchers.js +0 -59
  64. package/old/gulp/watchers.js.map +0 -1
  65. package/old/gulp/watchers.ts +0 -105
  66. package/old/helpers.d.ts +0 -32
  67. package/old/helpers.js +0 -267
  68. package/old/helpers.js.map +0 -1
  69. package/old/helpers.ts +0 -307
  70. package/old/index.d.ts +0 -59
  71. package/old/index.js +0 -288
  72. package/old/index.js.map +0 -1
  73. package/old/index.ts +0 -379
  74. package/old/init.d.ts +0 -8
  75. package/old/init.js +0 -165
  76. package/old/init.js.map +0 -1
  77. package/old/init.ts +0 -183
  78. package/old/models.d.ts +0 -37
  79. package/old/models.js +0 -2
  80. package/old/models.js.map +0 -1
  81. package/old/models.ts +0 -35
  82. package/old/prepare.d.ts +0 -8
  83. package/old/prepare.js +0 -20
  84. package/old/prepare.js.map +0 -1
  85. package/old/prepare.ts +0 -24
  86. package/old/schemas/index.d.ts +0 -0
  87. package/old/schemas/index.js +0 -2
  88. package/old/schemas/index.js.map +0 -1
  89. package/old/schemas/index.ts +0 -0
  90. package/old/schemas/types.d.ts +0 -0
  91. package/old/schemas/types.js +0 -2
  92. package/old/schemas/types.js.map +0 -1
  93. package/old/schemas/types.ts +0 -0
  94. package/old/settings.json +0 -67
  95. package/old/sync.d.ts +0 -2
  96. package/old/sync.js +0 -88
  97. package/old/sync.js.map +0 -1
  98. package/old/sync.ts +0 -97
  99. package/old/types.d.ts +0 -8
  100. package/pnpm-workspace.yaml +0 -6
  101. package/settings/backend-settings.json +0 -19
  102. package/settings/master-settings.json +0 -20
  103. package/settings/page-settings.json +0 -21
  104. package/settings/public-settings.json +0 -22
  105. package/src/args.ts +0 -121
  106. package/src/commands/checks.ts +0 -51
  107. package/src/commands/cleanup.ts +0 -11
  108. package/src/commands/copy.ts +0 -29
  109. package/src/commands/edit.ts +0 -81
  110. package/src/commands/exec.ts +0 -73
  111. package/src/commands/git.ts +0 -152
  112. package/src/commands/home.ts +0 -20
  113. package/src/commands/install.ts +0 -269
  114. package/src/commands/read.ts +0 -45
  115. package/src/commands/write.ts +0 -45
  116. package/src/commands.ts +0 -21
  117. package/src/config.ts +0 -142
  118. package/src/error.ts +0 -3
  119. package/src/helpers.ts +0 -93
  120. package/src/index.ts +0 -113
  121. package/src/init/blocks.ts +0 -85
  122. package/src/init/cargo.ts +0 -25
  123. package/src/init/expo.ts +0 -69
  124. package/src/init/gitModules.ts +0 -15
  125. package/src/init/index.ts +0 -86
  126. package/src/init/monorepo.ts +0 -72
  127. package/src/init/prepareVelo.ts +0 -19
  128. package/src/init/tauri.ts +0 -42
  129. package/src/init/templates.ts +0 -98
  130. package/src/init/velo.ts +0 -66
  131. package/src/policy.ts +0 -6
  132. package/src/prepare.ts +0 -24
  133. package/src/runtime.ts +0 -21
  134. package/src/schemas/gulp.ts +0 -31
  135. package/src/schemas/index.ts +0 -17
  136. package/src/schemas/lucy.ts +0 -43
  137. package/src/schemas/tsconfig.ts +0 -35
  138. package/src/schemas/types.ts +0 -40
  139. package/src/settings.json +0 -67
  140. package/src/states.ts +0 -15
  141. package/src/tasks/Gulpfile.ts +0 -207
  142. package/src/tasks/gulp/backend.ts +0 -113
  143. package/src/tasks/gulp/checks.ts +0 -219
  144. package/src/tasks/gulp/clean.ts +0 -38
  145. package/src/tasks/gulp/copy.ts +0 -38
  146. package/src/tasks/gulp/helpers.ts +0 -18
  147. package/src/tasks/gulp/pages.ts +0 -43
  148. package/src/tasks/gulp/pipeline.ts +0 -31
  149. package/src/tasks/gulp/public.ts +0 -61
  150. package/src/tasks/gulp/styles.ts +0 -47
  151. package/src/tasks/gulp/templates.ts +0 -53
  152. package/src/tasks/gulp/types.ts +0 -310
  153. package/src/tasks/gulp/watchers.ts +0 -97
  154. package/src/tasks/index.ts +0 -24
  155. package/src/tasks/syncSettings.ts +0 -21
  156. package/src/types.d.ts +0 -8
  157. package/src/utils/index.ts +0 -0
  158. package/src/utils/logger.ts +0 -40
  159. package/src/wix-sdk/check.ts +0 -24
  160. package/src/wix-sdk/client.ts +0 -18
  161. package/src/wix-sdk/index.ts +0 -17
  162. package/src/wix-sdk/init.ts +0 -54
  163. package/src/wix-sdk/run.ts +0 -56
  164. package/src/wix-sync/client.ts +0 -6
  165. package/src/wix-sync/export.ts +0 -19
  166. package/src/wix-sync/import.ts +0 -27
  167. package/src/wix-sync/index.ts +0 -36
  168. package/src/wix-sync/init.ts +0 -77
  169. package/src/wix-sync/is-alive.ts +0 -25
  170. package/src/wix-sync/migrate.ts +0 -23
  171. package/src/wix-sync/sync.ts +0 -27
  172. package/tsconfig.json +0 -34
@@ -1,228 +0,0 @@
1
- import * as fs from 'fs';
2
- import glob from 'glob';
3
-
4
- import * as path from 'path';
5
- import typescript from 'typescript';
6
- import gulp from 'gulp';
7
- import ts from 'gulp-typescript';
8
- import { blue, green, magenta, orange, red, yellow } from '../index.js';
9
- import { TaskOptions } from '../Gulpfile.js';
10
-
11
- // /**
12
- // * Extracts a match from a file
13
- // * @param {string} filePath File path
14
- // * @param {string} pattern Pattern to match
15
- // */
16
- // function extractMatchFromFile(filePath: string, pattern: string) {
17
- // return new Promise((resolve, reject) => {
18
- // fs.readFile(filePath, 'utf8', (err, data) => {
19
- // if (err){
20
- // reject(err);
21
-
22
- // return;
23
- // }
24
- // const regex = new RegExp(pattern);
25
- // const match = regex.exec(data);
26
- // const capturedGroup = match ? match.groups?.page : null;
27
- // resolve(capturedGroup);
28
- // });
29
- // });
30
- // }
31
-
32
- // async function readFilesInFolder(folderPath: string, pattern: string | null, globPattern: string): Promise<Object[]> {
33
- // const files = await glob(path.join(folderPath, globPattern));
34
- // const filenameList: Object[] = [];
35
-
36
- // for (const file of files) {
37
- // if (pattern) {
38
- // const capturedGroup = await extractMatchFromFile(file, pattern);
39
- // if (capturedGroup) {
40
- // filenameList.push(capturedGroup);
41
- // }
42
- // } else {
43
- // filenameList.push(path.basename(file));
44
- // }
45
- // }
46
-
47
- // return filenameList;
48
- // }
49
-
50
- /**
51
- * Extracts a match from a file
52
- * @param {string} filePath File path
53
- * @param {string} pattern Pattern to match
54
- */
55
- function extractMatchFromFile(filePath: string, pattern: string) {
56
- return new Promise((resolve, reject) => {
57
- fs.readFile(filePath, 'utf8', (err, data) => {
58
- if (err){
59
- reject(err);
60
-
61
- return;
62
- }
63
- const regex = new RegExp(pattern);
64
- const match = regex.exec(data);
65
- const capturedGroup = match ? match.groups?.page : null;
66
- resolve(capturedGroup);
67
- });
68
- });
69
- }
70
-
71
- /**
72
- * Reads files in a folder
73
- * @param {string} folderPath Folder path
74
- * @param {string} pattern Pattern to match
75
- * @param {string} globPattern Glob pattern
76
- */
77
- function readFilesInFolder(folderPath: string, pattern: string | null, globPattern: string,) {
78
- return new Promise((resolve, reject) => {
79
- glob(path.join(folderPath, globPattern), (err: unknown, files: string[]) => {
80
- if (err){
81
- reject(err);
82
-
83
- return;
84
- }
85
- const filenameList: Object[] = [];
86
- /**
87
- * Traverse files
88
- * @param {number} index Index
89
- */
90
- function traverseFiles(index: number) {
91
- if (index === files.length){
92
- resolve(filenameList);
93
-
94
- return;
95
- }
96
- const file = files[index];
97
- if(pattern){
98
- if(!file) return
99
- extractMatchFromFile(file, pattern)
100
- .then((capturedGroup) => {
101
- if (capturedGroup){
102
- filenameList.push(capturedGroup);
103
- }
104
- traverseFiles(index + 1);
105
- })
106
- .catch(reject);
107
- }
108
- if(!pattern){
109
- if(!file) return
110
- filenameList.push(path.basename(file));
111
- traverseFiles(index + 1);
112
- }
113
- }
114
- traverseFiles(0);
115
- });
116
- });
117
- }
118
- export async function checkPages(fail: boolean, force: boolean) {
119
- console.log("🐕" + green.underline.bold(' => Checking pages...'));
120
- return new Promise<void>(async (resolve, reject) => {
121
- try {
122
- const sourcePages = await readFilesInFolder('./.wix/types/', '\\/pages\\/(?<page>.*\\.ts)', '**/*.json',) as string[];
123
- const tsPages = await readFilesInFolder('./typescript/pages', null, '**/*.ts',) as string[];
124
-
125
- const sourcePagesSet = new Set(sourcePages);
126
- const tsPagesSet = new Set(tsPages);
127
- const missingInTs = Array.from(sourcePagesSet).filter((item: string) => !tsPages.includes(item));
128
- const obsoleteInTs = Array.from(tsPagesSet).filter((item: string) => !sourcePages.includes(item));
129
- if (missingInTs.length > 0){
130
- if(!force){
131
- console.log("💩" + red.underline.bold(' => Missing pages in ts folder: '), '\n', missingInTs);
132
- }
133
- if(force) {
134
- for (const page of missingInTs) {
135
- console.log("🐶" + magenta.underline.bold(' => Creating missing page: '), page);
136
- fs.writeFileSync(`./typescript/pages/${page}`, '');
137
- }
138
- }
139
- }
140
- if (obsoleteInTs.length > 0){
141
- if(!force){
142
- console.log("🦴" + yellow.underline.bold(' => Obsolete in ts folder'), '\n', obsoleteInTs);
143
- }
144
- if(force) {
145
- for (const page of obsoleteInTs) {
146
- console.log("🐶" + magenta.underline.bold(' => Deleting obsolete page: '), page);
147
- fs.rmSync(`./typescript/pages/${page}`);
148
- }
149
- }
150
- }
151
- if (missingInTs.length === 0 && obsoleteInTs.length === 0) {
152
- console.log("🐶" + blue.underline.bold(' => Pages are in-sync!'))
153
- } else if(fail){
154
- process.exit(1);
155
- };
156
- } catch (error) {
157
- reject(error);
158
- }
159
- });
160
- }
161
-
162
- const customReporter: ts.reporter.Reporter = {
163
- error: (error, tsInstance) => {
164
- if (!error.diagnostic) {
165
- console.log(red(error.message));
166
- return;
167
- }
168
- const { fullFilename, startPosition } = error;
169
- const relativePath = path.relative(process.cwd(), fullFilename ?? '');
170
- const line = startPosition ? startPosition.line + 1 : 0;
171
- const col = startPosition ? startPosition.character + 1 : 0;
172
-
173
- const message = tsInstance.flattenDiagnosticMessageText(error.diagnostic.messageText, '\n');
174
-
175
- console.log(
176
- `${blue.underline(relativePath)}:${yellow(String(line))}:${yellow(String(col))}`
177
- );
178
- console.log(` ${red('error')} ${yellow(`TS${error.diagnostic.code}`)}: ${message}`);
179
- },
180
- finish: (results) => {
181
- const errorCount = results.transpileErrors + results.semanticErrors + results.declarationErrors;
182
- if (errorCount > 0) {
183
- console.log(`\n💥 ${red.bold(`Found ${errorCount} error${errorCount > 1 ? 's' : ''}.`)}`);
184
- }
185
- },
186
- };
187
-
188
- export function checkTs(options: TaskOptions) {
189
- const folders = ['typescript', ...options.modulesSourcePaths];
190
-
191
-
192
- // Create tasks for each folder
193
- const tasks = folders.map((folder) => {
194
- const tsProject = ts.createProject(`./local.tsconfig.json`, { noEmit: true, declaration: false, skipDefaultLibCheck: true });
195
-
196
- const taskName = `test-${folder}`; // Create a unique name for each task
197
-
198
- const task = () => {
199
- let hasError = false;
200
- const stream = gulp.src([`${folder}/**/*.ts`, `!${folder}/types/**/*.ts`])
201
- .pipe(tsProject(customReporter))
202
- .on('error', () => {
203
- hasError = true;
204
- });
205
-
206
- if (options.isWatching) {
207
- stream.on('error', function (this: NodeJS.ReadWriteStream) {
208
- this.emit('end');
209
- });
210
- }
211
-
212
- stream.on('end', () => {
213
- if (!hasError) {
214
- console.log("🐶" + blue.underline(` => Typescriptcheck for ${orange(folder)} succeeded!`));
215
- }
216
- });
217
-
218
- return stream;
219
- };
220
-
221
- // Register the task with Gulp
222
- Object.defineProperty(task, 'name', { value: taskName }); // Set a unique name for debugging
223
- return task;
224
- });
225
-
226
- // Run all tasks in parallel
227
- return gulp.parallel(...tasks);
228
- }
@@ -1,3 +0,0 @@
1
- import { TaskOptions } from '../Gulpfile';
2
- export declare function cleanWix(): () => any;
3
- export declare function cleanSrc(options: TaskOptions): () => any;
package/old/gulp/clean.js DELETED
@@ -1,29 +0,0 @@
1
- import gulp from 'gulp';
2
- import clean from 'gulp-clean';
3
- import { blue, orange, red } from '../index.js';
4
- export function cleanWix() {
5
- return () => {
6
- return gulp.src('./.wix', { read: false, allowEmpty: true })
7
- .pipe(clean({ force: true }))
8
- .on('error', function (e) {
9
- console.log("💩" + red.underline.bold(' => Cleaning of .wix failed!'));
10
- console.log("💩" + red.underline.bold(` => Error: ${orange(e.message)}`));
11
- this.emit('end');
12
- })
13
- .on('end', function () { console.log("🐶" + blue.underline(' => Cleaning of .wix succeeded!')); });
14
- };
15
- }
16
- export function cleanSrc(options) {
17
- const { outputDir } = options;
18
- return () => {
19
- return gulp.src([`${outputDir}/pages`, `${outputDir}/public`, `${outputDir}/backend`], { read: false, allowEmpty: true })
20
- .pipe(clean({ force: true }))
21
- .on('error', function (e) {
22
- console.log("💩" + red.underline.bold('Cleaning of output files failed!'));
23
- console.log("💩" + red.underline.bold(` => Error: ${orange(e.message)}`));
24
- this.emit('end');
25
- })
26
- .on('end', function () { console.log("🐶" + blue.underline(' => Cleaning of .src succeeded!')); });
27
- };
28
- }
29
- //# sourceMappingURL=clean.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"clean.js","sourceRoot":"","sources":["clean.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,UAAU,QAAQ;IACpB,OAAO,GAAG,EAAE;QACR,OAAO,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,KAAK,EAA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AC,cAAc,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC;YAC1E,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAClB,CAAC,CAAC;aACD,EAAE,CAAC,KAAK,EAAE,cAAa,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,iCAAiC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACnG,CAAC,CAAA;AACF,CAAC"}
package/old/gulp/clean.ts DELETED
@@ -1,33 +0,0 @@
1
- import chalk from 'chalk';
2
- import gulp from 'gulp';
3
- import { TaskOptions } from '../Gulpfile';
4
- import clean from 'gulp-clean';
5
- import { blue, orange, red } from '../index.js';
6
-
7
- export function cleanWix() {
8
- return () => {
9
- return gulp.src('./.wix', { read: false, allowEmpty: true })
10
- .pipe(clean({ force: true }))
11
- .on('error', function (e: Error) {
12
- console.log("💩" + red.underline.bold(' => Cleaning of .wix failed!'));
13
- console.log("💩" + red.underline.bold(` => Error: ${orange(e.message)}`));
14
- this.emit('end');
15
- })
16
- .on('end', function() { console.log("🐶" + blue.underline(' => Cleaning of .wix succeeded!')); });
17
- }
18
- }
19
-
20
- export function cleanSrc(options: TaskOptions) {
21
- const { outputDir } = options;
22
-
23
- return () => {
24
- return gulp.src([`${outputDir}/pages`, `${outputDir}/public`, `${outputDir}/backend`], { read: false, allowEmpty: true })
25
- .pipe(clean({ force: true }))
26
- .on('error', function (e: Error) {
27
- console.log("💩" + red.underline.bold('Cleaning of output files failed!'));
28
- console.log("💩" + red.underline.bold(` => Error: ${orange(e.message)}`));
29
- this.emit('end');
30
- })
31
- .on('end', function() { console.log("🐶" + blue.underline(' => Cleaning of .src succeeded!')); });
32
- }
33
- }
@@ -1,2 +0,0 @@
1
- import { TaskOptions } from '../Gulpfile';
2
- export declare function copyFiles(options: TaskOptions): import("undertaker").TaskFunction;
package/old/gulp/copy.js DELETED
@@ -1,34 +0,0 @@
1
- import gulp from 'gulp';
2
- import { blue, orange, red } from '../index.js';
3
- export function copyFiles(options) {
4
- const folders = ['typescript', ...options.modulesSourcePaths];
5
- // Create tasks for each folder
6
- const tasks = folders.map((folder) => {
7
- const { outputDir } = options;
8
- const taskName = `copy-${folder}`; // Create a unique name for each task
9
- const task = () => gulp.src([
10
- `${folder}/**/*`,
11
- `!${folder}/*tsconfig.json`,
12
- `!${folder}/**/*.ts`,
13
- `!${folder}/**/*.tsx`,
14
- `!${folder}/types/**/**`,
15
- `!${folder}/__mocks__/**/**`,
16
- `!${folder}/styles/**`,
17
- ])
18
- .pipe(gulp.dest(outputDir))
19
- .on('error', function (e) {
20
- console.log("💩" + red.underline.bold(` => Copy of files for ${orange(folder)} 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(` => Copy of files for ${orange(folder)} succeeded!`));
26
- });
27
- // Register the task with Gulp
28
- Object.defineProperty(task, 'name', { value: taskName }); // Set a unique name for debugging
29
- return task;
30
- });
31
- // Run all tasks in parallel
32
- return gulp.parallel(...tasks);
33
- }
34
- //# sourceMappingURL=copy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"copy.js","sourceRoot":"","sources":["copy.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,UAAU,SAAS,CAAC,OAAoB;IAC1C,MAAM,OAAO,GAAG,CAAC,YAAY,EAAE,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAE9D,+BAA+B;IAC/B,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;QACvC,MAAM,EAAE,SAAS,EAAC,GAAG,OAAO,CAAC;QAEvB,MAAM,QAAQ,GAAG,QAAQ,MAAM,EAAE,CA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from 'chalk';
3
- import { TaskOptions } from '../Gulpfile';
4
- import { blue, orange, red } from '../index.js';
5
-
6
- export function copyFiles(options: TaskOptions) {
7
- const folders = ['typescript', ...options.modulesSourcePaths];
8
-
9
- // Create tasks for each folder
10
- const tasks = folders.map((folder) => {
11
- const { outputDir} = options;
12
-
13
- const taskName = `copy-${folder}`; // Create a unique name for each task
14
-
15
- const task = () =>
16
- gulp.src([
17
- `${folder}/**/*`,
18
- `!${folder}/*tsconfig.json`,
19
- `!${folder}/**/*.ts`,
20
- `!${folder}/**/*.tsx`,
21
- `!${folder}/types/**/**`,
22
- `!${folder}/__mocks__/**/**`,
23
- `!${folder}/styles/**`,
24
- ])
25
- .pipe(gulp.dest(outputDir))
26
- .on('error', function (e: Error) {
27
- console.log("💩" + red.underline.bold(` => Copy of files for ${orange(folder)} failed!`));
28
- console.log("💩" + red.underline.bold(` => Error: ${orange(e.message)}`));
29
- this.emit('end');
30
- })
31
- .on('end', function () {
32
- console.log("🐶" + blue.underline(` => Copy of files for ${orange(folder)} succeeded!`));
33
- });
34
-
35
- // Register the task with Gulp
36
- Object.defineProperty(task, 'name', { value: taskName }); // Set a unique name for debugging
37
- return task;
38
- });
39
-
40
- // Run all tasks in parallel
41
- return gulp.parallel(...tasks);
42
- }
@@ -1,2 +0,0 @@
1
- export declare function getModulesSync(): Record<string, string> | undefined;
2
- export declare function getModulesSourcePaths(): string[];
@@ -1,25 +0,0 @@
1
- import * as path from 'path';
2
- import * as fs from 'fs';
3
- export function getModulesSync() {
4
- const absolutePath = path.resolve('./lucy.json');
5
- const fileContent = fs.readFileSync(absolutePath, 'utf8');
6
- return JSON.parse(fileContent).modules;
7
- }
8
- export function getModulesSourcePaths() {
9
- const absolutePath = path.resolve('./lucy.json');
10
- const fileContent = fs.readFileSync(absolutePath, 'utf8');
11
- const data = JSON.parse(fileContent).modules;
12
- const paths = [];
13
- for (const module of Object.keys(data)) {
14
- if (!data[module].noCompile) {
15
- if (data[module].path) {
16
- paths.push(data[module].path);
17
- }
18
- else {
19
- paths.push(module);
20
- }
21
- }
22
- }
23
- return paths;
24
- }
25
- //# sourceMappingURL=helpers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.js","sourceRoot":"","sources":["helpers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AAEzB,MAAM,UAAU,cAAc;IAC1B,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IACjD,MAAM,WAAW,GAAG,EAAE,CAAC,YAAY,CAAC,YAAY,EAAE,MAAM,CAAQ,CAAC;IACjE,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC;AAC3C,CAAC;AAED,MAAM,UAAU,qBAAqB;IACjC,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IACjD,MAAM,WAAW,GAAG,EAAE,CAAC,YAAY,CAAC,YAAY,EAAE,MAAM,CAAQ,CAAC;IACjE,MAAM,IAAI,GAAI,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC;IAC9C,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,KAAK,MAAM,MAAM,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QACrC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,CAAC;YAC1B,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;gBACpB,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC;YAClC,CAAC;iBAAM,CAAC;gBACJ,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACvB,CAAC;QACL,CAAC;IACL,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC"}
@@ -1,26 +0,0 @@
1
-
2
- import * as path from 'path';
3
- import * as fs from 'fs';
4
-
5
- export function getModulesSync(): Record<string, string> | undefined {
6
- const absolutePath = path.resolve('./lucy.json');
7
- const fileContent = fs.readFileSync(absolutePath, 'utf8') as any;
8
- return JSON.parse(fileContent).modules;
9
- }
10
-
11
- export function getModulesSourcePaths(): string[] {
12
- const absolutePath = path.resolve('./lucy.json');
13
- const fileContent = fs.readFileSync(absolutePath, 'utf8') as any;
14
- const data = JSON.parse(fileContent).modules;
15
- const paths: string[] = [];
16
- for (const module of Object.keys(data)) {
17
- if (!data[module].noCompile) {
18
- if (data[module].path) {
19
- paths.push(data[module].path);
20
- } else {
21
- paths.push(module);
22
- }
23
- }
24
- }
25
- return paths;
26
- }
@@ -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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,EAAE,CAAC,OAAO,EAAE,UAAU,CAAQ;YAC3B,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,qCAAqC,CAAC,CAAC,CAAC;YAC9E,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,cAAa,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,wCAAwC,CAAC,CAAC,CAAC,CAAC,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