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.
- package/dist/commands/git.d.ts +3 -3
- package/dist/commands/home.d.ts +1 -1
- package/dist/init/cargo.d.ts +1 -1
- package/dist/init/gitModules.d.ts +1 -1
- package/dist/init/index.d.ts +1 -1
- package/dist/init/index.js +0 -2
- package/dist/init/index.js.map +1 -1
- package/dist/init/monorepo.d.ts +1 -1
- package/dist/init/prepareVelo.d.ts +1 -1
- package/dist/init/tauri.d.ts +1 -1
- package/dist/init/templates.d.ts +1 -1
- package/dist/init/velo.d.ts +1 -1
- package/package.json +8 -2
- package/.cursorignore +0 -4
- package/.eslintrc.cjs +0 -96
- package/.github/funding.yml +0 -2
- package/.nvmrc +0 -1
- package/.stylelintrc.js +0 -8
- package/.wix/debug.log +0 -10
- package/.yarnrc.yml +0 -2
- package/files/sync-data/data/test.csv +0 -17
- package/files/sync-data/files/lucy.jpg +0 -0
- package/files/sync-data/schema/test.json +0 -11
- package/lucy.jpg +0 -0
- package/mitarbeiter-login.html +0 -188
- package/old/Gulpfile.d.ts +0 -34
- package/old/Gulpfile.js +0 -116
- package/old/Gulpfile.js.map +0 -1
- package/old/Gulpfile.ts +0 -231
- package/old/gulp/backend.d.ts +0 -3
- package/old/gulp/backend.js +0 -92
- package/old/gulp/backend.js.map +0 -1
- package/old/gulp/backend.ts +0 -109
- package/old/gulp/checks.d.ts +0 -3
- package/old/gulp/checks.js +0 -205
- package/old/gulp/checks.js.map +0 -1
- package/old/gulp/checks.ts +0 -228
- package/old/gulp/clean.d.ts +0 -3
- package/old/gulp/clean.js +0 -29
- package/old/gulp/clean.js.map +0 -1
- package/old/gulp/clean.ts +0 -33
- package/old/gulp/copy.d.ts +0 -2
- package/old/gulp/copy.js +0 -34
- package/old/gulp/copy.js.map +0 -1
- package/old/gulp/copy.ts +0 -42
- package/old/gulp/helpers.d.ts +0 -2
- package/old/gulp/helpers.js +0 -25
- package/old/gulp/helpers.js.map +0 -1
- package/old/gulp/helpers.ts +0 -26
- package/old/gulp/pages.d.ts +0 -2
- package/old/gulp/pages.js +0 -37
- package/old/gulp/pages.js.map +0 -1
- package/old/gulp/pages.ts +0 -40
- package/old/gulp/pipeline.d.ts +0 -1
- package/old/gulp/pipeline.js +0 -29
- package/old/gulp/pipeline.js.map +0 -1
- package/old/gulp/pipeline.ts +0 -31
- package/old/gulp/public.d.ts +0 -2
- package/old/gulp/public.js +0 -50
- package/old/gulp/public.js.map +0 -1
- package/old/gulp/public.ts +0 -59
- package/old/gulp/styles.d.ts +0 -2
- package/old/gulp/styles.js +0 -40
- package/old/gulp/styles.js.map +0 -1
- package/old/gulp/styles.ts +0 -46
- package/old/gulp/templates.d.ts +0 -2
- package/old/gulp/templates.js +0 -33
- package/old/gulp/templates.js.map +0 -1
- package/old/gulp/templates.ts +0 -39
- package/old/gulp/types.d.ts +0 -4
- package/old/gulp/types.js +0 -289
- package/old/gulp/types.js.map +0 -1
- package/old/gulp/types.ts +0 -311
- package/old/gulp/watchers.d.ts +0 -9
- package/old/gulp/watchers.js +0 -59
- package/old/gulp/watchers.js.map +0 -1
- package/old/gulp/watchers.ts +0 -105
- package/old/helpers.d.ts +0 -32
- package/old/helpers.js +0 -267
- package/old/helpers.js.map +0 -1
- package/old/helpers.ts +0 -307
- package/old/index.d.ts +0 -59
- package/old/index.js +0 -288
- package/old/index.js.map +0 -1
- package/old/index.ts +0 -379
- package/old/init.d.ts +0 -8
- package/old/init.js +0 -165
- package/old/init.js.map +0 -1
- package/old/init.ts +0 -183
- package/old/models.d.ts +0 -37
- package/old/models.js +0 -2
- package/old/models.js.map +0 -1
- package/old/models.ts +0 -35
- package/old/prepare.d.ts +0 -8
- package/old/prepare.js +0 -20
- package/old/prepare.js.map +0 -1
- package/old/prepare.ts +0 -24
- package/old/schemas/index.d.ts +0 -0
- package/old/schemas/index.js +0 -2
- package/old/schemas/index.js.map +0 -1
- package/old/schemas/index.ts +0 -0
- package/old/schemas/types.d.ts +0 -0
- package/old/schemas/types.js +0 -2
- package/old/schemas/types.js.map +0 -1
- package/old/schemas/types.ts +0 -0
- package/old/settings.json +0 -67
- package/old/sync.d.ts +0 -2
- package/old/sync.js +0 -88
- package/old/sync.js.map +0 -1
- package/old/sync.ts +0 -97
- package/old/types.d.ts +0 -8
- package/pnpm-workspace.yaml +0 -6
- package/settings/backend-settings.json +0 -19
- package/settings/master-settings.json +0 -20
- package/settings/page-settings.json +0 -21
- package/settings/public-settings.json +0 -22
- package/src/args.ts +0 -121
- package/src/commands/checks.ts +0 -51
- package/src/commands/cleanup.ts +0 -11
- package/src/commands/copy.ts +0 -29
- package/src/commands/edit.ts +0 -81
- package/src/commands/exec.ts +0 -73
- package/src/commands/git.ts +0 -152
- package/src/commands/home.ts +0 -20
- package/src/commands/install.ts +0 -269
- package/src/commands/read.ts +0 -45
- package/src/commands/write.ts +0 -45
- package/src/commands.ts +0 -21
- package/src/config.ts +0 -142
- package/src/error.ts +0 -3
- package/src/helpers.ts +0 -93
- package/src/index.ts +0 -113
- package/src/init/blocks.ts +0 -85
- package/src/init/cargo.ts +0 -25
- package/src/init/expo.ts +0 -69
- package/src/init/gitModules.ts +0 -15
- package/src/init/index.ts +0 -88
- package/src/init/monorepo.ts +0 -72
- package/src/init/prepareVelo.ts +0 -19
- package/src/init/tauri.ts +0 -42
- package/src/init/templates.ts +0 -98
- package/src/init/velo.ts +0 -66
- package/src/policy.ts +0 -6
- package/src/prepare.ts +0 -24
- package/src/runtime.ts +0 -21
- package/src/schemas/gulp.ts +0 -31
- package/src/schemas/index.ts +0 -17
- package/src/schemas/lucy.ts +0 -43
- package/src/schemas/tsconfig.ts +0 -35
- package/src/schemas/types.ts +0 -40
- package/src/settings.json +0 -67
- package/src/states.ts +0 -15
- package/src/tasks/Gulpfile.ts +0 -207
- package/src/tasks/gulp/backend.ts +0 -113
- package/src/tasks/gulp/checks.ts +0 -219
- package/src/tasks/gulp/clean.ts +0 -38
- package/src/tasks/gulp/copy.ts +0 -38
- package/src/tasks/gulp/helpers.ts +0 -18
- package/src/tasks/gulp/pages.ts +0 -43
- package/src/tasks/gulp/pipeline.ts +0 -31
- package/src/tasks/gulp/public.ts +0 -61
- package/src/tasks/gulp/styles.ts +0 -47
- package/src/tasks/gulp/templates.ts +0 -53
- package/src/tasks/gulp/types.ts +0 -310
- package/src/tasks/gulp/watchers.ts +0 -97
- package/src/tasks/index.ts +0 -24
- package/src/tasks/syncSettings.ts +0 -21
- package/src/types.d.ts +0 -8
- package/src/utils/index.ts +0 -0
- package/src/utils/logger.ts +0 -40
- package/src/wix-sdk/check.ts +0 -24
- package/src/wix-sdk/client.ts +0 -18
- package/src/wix-sdk/index.ts +0 -17
- package/src/wix-sdk/init.ts +0 -54
- package/src/wix-sdk/run.ts +0 -56
- package/src/wix-sync/client.ts +0 -6
- package/src/wix-sync/export.ts +0 -19
- package/src/wix-sync/import.ts +0 -27
- package/src/wix-sync/index.ts +0 -36
- package/src/wix-sync/init.ts +0 -77
- package/src/wix-sync/is-alive.ts +0 -25
- package/src/wix-sync/migrate.ts +0 -23
- package/src/wix-sync/sync.ts +0 -27
- package/tsconfig.json +0 -34
package/old/gulp/pages.d.ts
DELETED
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
|
package/old/gulp/pages.js.map
DELETED
|
@@ -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,MAAM,EAAE;YACJ,QAAQ,EAAE,IAAI,CAAC,mBAAmB;SACrC;KACJ;CACJ,CAAC;AAEF,MAAM,UAAU,UAAU,CAAC,OAAoB;IAC3C,MAAM,EAAE,SAAS,EAAC,GAAG,OAAO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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
|
-
}
|
package/old/gulp/pipeline.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function setProdConfig(): () => any;
|
package/old/gulp/pipeline.js
DELETED
|
@@ -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
|
package/old/gulp/pipeline.js.map
DELETED
|
@@ -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,C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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
|
-
}
|
package/old/gulp/public.d.ts
DELETED
package/old/gulp/public.js
DELETED
|
@@ -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
|
package/old/gulp/public.js.map
DELETED
|
@@ -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,C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AAC;QACrB,CAAC,CAAC;aACD,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"}
|
package/old/gulp/public.ts
DELETED
|
@@ -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
|
-
|
package/old/gulp/styles.d.ts
DELETED
package/old/gulp/styles.js
DELETED
|
@@ -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
|
package/old/gulp/styles.js.map
DELETED
|
@@ -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,EAAE,CAAC,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;SACvC,EAAE,CAAC,OAAO,EAAE,UAAU,CAAQ;QAC3B,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,+BAA+B,MAAM,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC;QACtG,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,cAAc,MAAM,CAAC,CAAC,C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AAM,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC;QAC1E,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC,CAAC;SACD,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,SAAS,aAAa,CAAC,CAAC;SAC1C,EAAE,CAAC,OAAO,EAAE,UAAU,CAAQ;QAC3B,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,mCAAmC,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC;QACxG,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,cAAc,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC;QAC1E,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC,CAAC;SACD,EAAE,CAAC,KAAK,EAAE;QACP,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,mCAAmC,MAAM,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,CAAC;IAC3G,CAAC,CAAC,CAAC;IAEP,OAAO,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;AAClD,CAAC"}
|
package/old/gulp/styles.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import gulp from 'gulp';
|
|
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
|
-
}
|
package/old/gulp/templates.d.ts
DELETED
package/old/gulp/templates.js
DELETED
|
@@ -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,WAA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C;QAClG,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;AACvC,CAAC"}
|
package/old/gulp/templates.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
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
|
-
}
|
package/old/gulp/types.d.ts
DELETED