lucy-cli 2.0.0-alpha.10 → 2.0.0-alpha.12
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/Gulpfile.d.ts +35 -0
- package/dist/Gulpfile.js +132 -0
- package/dist/Gulpfile.js.map +1 -0
- package/dist/args.d.ts +1 -6
- package/dist/args.js +18 -5
- package/dist/args.js.map +1 -0
- package/dist/commands/checks.d.ts +7 -0
- package/dist/commands/checks.js +47 -0
- package/dist/commands/checks.js.map +1 -0
- package/dist/commands/cleanup copy.d.ts +4 -0
- package/dist/commands/cleanup copy.js +10 -0
- package/dist/commands/cleanup copy.js.map +1 -0
- package/dist/commands/cleanup.d.ts +4 -0
- package/dist/commands/cleanup.js +10 -0
- package/dist/commands/cleanup.js.map +1 -0
- package/dist/commands/copy.d.ts +5 -0
- package/dist/commands/copy.js +12 -0
- package/dist/commands/copy.js.map +1 -0
- package/dist/commands/edit.d.ts +10 -0
- package/dist/commands/edit.js +69 -0
- package/dist/commands/edit.js.map +1 -0
- package/dist/commands/exec copy.d.ts +3 -0
- package/dist/commands/exec copy.js +20 -0
- package/dist/commands/exec copy.js.map +1 -0
- package/dist/commands/exec.d.ts +5 -0
- package/dist/commands/exec.js +40 -0
- package/dist/commands/exec.js.map +1 -0
- package/dist/commands/git.d.ts +8 -0
- package/dist/commands/git.js +104 -0
- package/dist/commands/git.js.map +1 -0
- package/dist/commands/home.d.ts +4 -0
- package/dist/commands/home.js +18 -0
- package/dist/commands/home.js.map +1 -0
- package/dist/commands/install.d.ts +8 -0
- package/dist/commands/install.js +110 -0
- package/dist/commands/install.js.map +1 -0
- package/dist/commands/read.d.ts +5 -0
- package/dist/commands/read.js +34 -0
- package/dist/commands/read.js.map +1 -0
- package/dist/commands/write.d.ts +5 -0
- package/dist/commands/write.js +16 -0
- package/dist/commands/write.js.map +1 -0
- package/dist/commands.js +1 -0
- package/dist/commands.js.map +1 -0
- package/dist/config.d.ts +11 -6
- package/dist/config.js +40 -4
- package/dist/config.js.map +1 -0
- package/dist/error.d.ts +1 -9
- package/dist/error.js +1 -2
- package/dist/error.js.map +1 -0
- package/dist/gulp/backend.d.ts +3 -0
- package/dist/gulp/backend.js +92 -0
- package/dist/gulp/backend.js.map +1 -0
- package/dist/gulp/checks.d.ts +3 -0
- package/dist/gulp/checks.js +194 -0
- package/dist/gulp/checks.js.map +1 -0
- package/dist/gulp/clean.d.ts +3 -0
- package/dist/gulp/clean.js +33 -0
- package/dist/gulp/clean.js.map +1 -0
- package/dist/gulp/copy.d.ts +2 -0
- package/dist/gulp/copy.js +34 -0
- package/dist/gulp/copy.js.map +1 -0
- package/dist/gulp/helpers.d.ts +2 -0
- package/dist/gulp/helpers.js +21 -0
- package/dist/gulp/helpers.js.map +1 -0
- package/dist/gulp/pages.d.ts +2 -0
- package/dist/gulp/pages.js +39 -0
- package/dist/gulp/pages.js.map +1 -0
- package/dist/gulp/pipeline.d.ts +1 -0
- package/dist/gulp/pipeline.js +29 -0
- package/dist/gulp/pipeline.js.map +1 -0
- package/dist/gulp/public.d.ts +2 -0
- package/dist/gulp/public.js +50 -0
- package/dist/gulp/public.js.map +1 -0
- package/dist/gulp/styles.d.ts +2 -0
- package/dist/gulp/styles.js +40 -0
- package/dist/gulp/styles.js.map +1 -0
- package/dist/gulp/templates.d.ts +2 -0
- package/dist/gulp/templates.js +33 -0
- package/dist/gulp/templates.js.map +1 -0
- package/dist/gulp/types.d.ts +4 -0
- package/dist/gulp/types.js +289 -0
- package/dist/gulp/types.js.map +1 -0
- package/dist/gulp/watchers.d.ts +9 -0
- package/dist/gulp/watchers.js +57 -0
- package/dist/gulp/watchers.js.map +1 -0
- package/dist/helpers.js +1 -0
- package/dist/helpers.js.map +1 -0
- package/dist/index.js +38 -7
- package/dist/index.js.map +1 -0
- package/dist/init/blocks.d.ts +5 -0
- package/dist/init/blocks.js +60 -0
- package/dist/init/blocks.js.map +1 -0
- package/dist/init/cargo copy.d.ts +2 -0
- package/dist/init/cargo copy.js +16 -0
- package/dist/init/cargo copy.js.map +1 -0
- package/dist/init/cargo.d.ts +2 -0
- package/dist/init/cargo.js +19 -0
- package/dist/init/cargo.js.map +1 -0
- package/dist/init/expo copy.d.ts +5 -0
- package/dist/init/expo copy.js +48 -0
- package/dist/init/expo copy.js.map +1 -0
- package/dist/init/expo.d.ts +5 -0
- package/dist/init/expo.js +50 -0
- package/dist/init/expo.js.map +1 -0
- package/dist/init/gitModules.d.ts +2 -0
- package/dist/init/gitModules.js +13 -0
- package/dist/init/gitModules.js.map +1 -0
- package/dist/init/index.d.ts +4 -0
- package/dist/init/index.js +64 -0
- package/dist/init/index.js.map +1 -0
- package/dist/init/lucy.d.ts +1 -0
- package/dist/init/lucy.js +2 -0
- package/dist/init/monorepo copy.d.ts +4 -0
- package/dist/init/monorepo copy.js +28 -0
- package/dist/init/monorepo copy.js.map +1 -0
- package/dist/init/monorepo.d.ts +4 -0
- package/dist/init/monorepo.js +35 -0
- package/dist/init/monorepo.js.map +1 -0
- package/dist/init/prepare.d.ts +8 -0
- package/dist/init/prepare.js +20 -0
- package/dist/init/prepare.js.map +1 -0
- package/dist/init/prepareVelo.d.ts +2 -0
- package/dist/init/prepareVelo.js +16 -0
- package/dist/init/prepareVelo.js.map +1 -0
- package/dist/init/sync.d.ts +2 -0
- package/dist/init/sync.js +88 -0
- package/dist/init/sync.js.map +1 -0
- package/dist/init/tauri.d.ts +5 -0
- package/dist/init/tauri.js +29 -0
- package/dist/init/tauri.js.map +1 -0
- package/dist/init/templates.d.ts +5 -0
- package/dist/init/templates.js +94 -0
- package/dist/init/templates.js.map +1 -0
- package/dist/init/velo.d.ts +5 -0
- package/dist/init/velo.js +58 -0
- package/dist/init/velo.js.map +1 -0
- package/dist/init/write.d.ts +5 -0
- package/dist/init/write.js +15 -0
- package/dist/models.js +1 -0
- package/dist/models.js.map +1 -0
- package/dist/policy.js +1 -0
- package/dist/policy.js.map +1 -0
- package/dist/prepare.js +1 -0
- package/dist/prepare.js.map +1 -0
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -0
- package/dist/runtime.js.map +1 -0
- package/dist/schemas/gulp.d.ts +16 -0
- package/dist/schemas/gulp.js +4 -0
- package/dist/schemas/gulp.js.map +1 -0
- package/dist/schemas/index.js +1 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/lucy.d.ts +26 -0
- package/dist/schemas/lucy.js +39 -0
- package/dist/schemas/lucy.js.map +1 -0
- package/dist/schemas/models.d.ts +37 -0
- package/dist/schemas/models.js +2 -0
- package/dist/schemas/models.js.map +1 -0
- package/dist/schemas/tsconfig.d.ts +37 -0
- package/dist/schemas/tsconfig.js +2 -0
- package/dist/schemas/tsconfig.js.map +1 -0
- package/dist/schemas/types.d.ts +15 -0
- package/dist/schemas/types.js +3 -1
- package/dist/schemas/types.js.map +1 -0
- package/dist/states.js +1 -0
- package/dist/states.js.map +1 -0
- package/dist/sync/index.js +2 -0
- package/dist/sync/index.js.map +1 -0
- package/dist/sync/sync.js +88 -0
- package/dist/sync/sync.js.map +1 -0
- package/dist/tasks/Gulpfile.d.ts +35 -0
- package/dist/tasks/Gulpfile.js +135 -0
- package/dist/tasks/Gulpfile.js.map +1 -0
- package/dist/tasks/gulp/backend.d.ts +3 -0
- package/dist/tasks/gulp/backend.js +92 -0
- package/dist/tasks/gulp/backend.js.map +1 -0
- package/dist/tasks/gulp/checks.d.ts +3 -0
- package/dist/tasks/gulp/checks.js +195 -0
- package/dist/tasks/gulp/checks.js.map +1 -0
- package/dist/tasks/gulp/clean.d.ts +3 -0
- package/dist/tasks/gulp/clean.js +33 -0
- package/dist/tasks/gulp/clean.js.map +1 -0
- package/dist/tasks/gulp/copy.d.ts +2 -0
- package/dist/tasks/gulp/copy.js +34 -0
- package/dist/tasks/gulp/copy.js.map +1 -0
- package/dist/tasks/gulp/helpers.d.ts +2 -0
- package/dist/tasks/gulp/helpers.js +21 -0
- package/dist/tasks/gulp/helpers.js.map +1 -0
- package/dist/tasks/gulp/pages.d.ts +2 -0
- package/dist/tasks/gulp/pages.js +39 -0
- package/dist/tasks/gulp/pages.js.map +1 -0
- package/dist/tasks/gulp/pipeline.d.ts +1 -0
- package/dist/tasks/gulp/pipeline.js +29 -0
- package/dist/tasks/gulp/pipeline.js.map +1 -0
- package/dist/tasks/gulp/public.d.ts +2 -0
- package/dist/tasks/gulp/public.js +50 -0
- package/dist/tasks/gulp/public.js.map +1 -0
- package/dist/tasks/gulp/styles.d.ts +2 -0
- package/dist/tasks/gulp/styles.js +40 -0
- package/dist/tasks/gulp/styles.js.map +1 -0
- package/dist/tasks/gulp/templates.d.ts +2 -0
- package/dist/tasks/gulp/templates.js +45 -0
- package/dist/tasks/gulp/templates.js.map +1 -0
- package/dist/tasks/gulp/types.d.ts +4 -0
- package/dist/tasks/gulp/types.js +300 -0
- package/dist/tasks/gulp/types.js.map +1 -0
- package/dist/tasks/gulp/watchers.d.ts +9 -0
- package/dist/tasks/gulp/watchers.js +57 -0
- package/dist/tasks/gulp/watchers.js.map +1 -0
- package/dist/tasks/index.d.ts +4 -0
- package/dist/tasks/index.js +25 -0
- package/dist/tasks/index.js.map +1 -0
- package/dist/tasks/sync.d.ts +2 -0
- package/dist/tasks/sync.js +88 -0
- package/dist/tasks/sync.js.map +1 -0
- package/dist/utils/index.js +2 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/install.js +1 -0
- package/dist/utils/logger.d.ts +17 -0
- package/dist/utils/logger.js +37 -0
- package/dist/utils/logger.js.map +1 -0
- package/files/templates/block[D]/files/.stylelintrc.js +8 -0
- package/files/templates/block[D]/lucy.json +8 -0
- package/files/templates/cargo[D]/files/.env +1 -0
- package/files/templates/cargo[D]/files/Cargo.toml +238 -0
- package/files/templates/cargo[D]/files/Makefile.toml +4 -0
- package/files/templates/cargo[D]/files/build/main.rs +35 -0
- package/files/templates/cargo[D]/files/config/beta.json +19 -0
- package/files/templates/cargo[D]/files/config/ci.json +15 -0
- package/files/templates/cargo[D]/files/config/default.json +71 -0
- package/files/templates/cargo[D]/files/config/development.json +10 -0
- package/files/templates/cargo[D]/files/config/produktion.json +5 -0
- package/files/templates/cargo[D]/files/config/stage.json +4 -0
- package/files/templates/cargo[D]/files/locales/todo.yml +3 -0
- package/files/templates/cargo[D]/files/public/index.html +1 -0
- package/files/templates/cargo[D]/lucy.json +14 -0
- package/files/templates/expo[D]/files/.stylelintrc.js +8 -0
- package/files/templates/expo[D]/lucy.json +81 -0
- package/files/templates/monorepo[D]/files/.nvmrc +1 -0
- package/files/templates/monorepo[D]/files/.prettierignore +23 -0
- package/files/templates/monorepo[D]/files/.prettierrc.json +15 -0
- package/files/templates/monorepo[D]/files/.stylelintrc.js +8 -0
- package/files/templates/monorepo[D]/files/.yarnrc +1 -0
- package/files/templates/monorepo[D]/files/.yarnrc.yml +3 -0
- package/files/templates/monorepo[D]/files/README.md +137 -0
- package/files/templates/monorepo[D]/files/currents.config.ts +5 -0
- package/files/templates/monorepo[D]/files/package.json +39 -0
- package/files/templates/monorepo[D]/files/turbo.json +34 -0
- package/files/templates/monorepo[D]/files/typedoc.json +25 -0
- package/files/templates/monorepo[D]/files/vitest.config.ts +27 -0
- package/files/templates/monorepo[D]/lucy.json +45 -0
- package/files/templates/tauri[D]/lucy.json +8 -0
- package/files/templates/velo[D]/files/.prettierignore +23 -0
- package/files/templates/velo[D]/files/.prettierrc.js +16 -0
- package/files/templates/velo[D]/files/typescript/__mocks__/.gitkeep +0 -0
- package/files/templates/velo[D]/files/typescript/backend/data.ts +0 -0
- package/files/templates/velo[D]/files/typescript/backend/events.ts +0 -0
- package/files/templates/velo[D]/files/typescript/pages/.gitkeep +0 -0
- package/files/templates/velo[D]/files/typescript/public/.gitkeep +0 -0
- package/files/templates/velo[D]/files/typescript/public/scss/app.scss +0 -0
- package/files/templates/velo[D]/files/typescript/styles/.gitkeep +0 -0
- package/files/templates/velo[D]/files/typescript/styles/global.scss +0 -0
- package/files/templates/velo[D]/lucy.json +136 -0
- package/old/Gulpfile.d.ts +34 -0
- package/old/Gulpfile.js +116 -0
- package/old/Gulpfile.js.map +1 -0
- package/old/gulp/backend.d.ts +3 -0
- package/old/gulp/backend.js +92 -0
- package/old/gulp/backend.js.map +1 -0
- package/old/gulp/checks.d.ts +3 -0
- package/old/gulp/checks.js +205 -0
- package/old/gulp/checks.js.map +1 -0
- package/old/gulp/clean.d.ts +3 -0
- package/old/gulp/clean.js +29 -0
- package/old/gulp/clean.js.map +1 -0
- package/old/gulp/copy.d.ts +2 -0
- package/old/gulp/copy.js +34 -0
- package/old/gulp/copy.js.map +1 -0
- package/old/gulp/helpers.d.ts +2 -0
- package/old/gulp/helpers.js +25 -0
- package/old/gulp/helpers.js.map +1 -0
- package/old/gulp/pages.d.ts +2 -0
- package/old/gulp/pages.js +37 -0
- package/old/gulp/pages.js.map +1 -0
- package/old/gulp/pipeline.d.ts +1 -0
- package/old/gulp/pipeline.js +29 -0
- package/old/gulp/pipeline.js.map +1 -0
- package/old/gulp/public.d.ts +2 -0
- package/old/gulp/public.js +50 -0
- package/old/gulp/public.js.map +1 -0
- package/old/gulp/styles.d.ts +2 -0
- package/old/gulp/styles.js +40 -0
- package/old/gulp/styles.js.map +1 -0
- package/old/gulp/templates.d.ts +2 -0
- package/old/gulp/templates.js +33 -0
- package/old/gulp/templates.js.map +1 -0
- package/old/gulp/types.d.ts +4 -0
- package/old/gulp/types.js +289 -0
- package/old/gulp/types.js.map +1 -0
- package/old/gulp/watchers.d.ts +9 -0
- package/old/gulp/watchers.js +59 -0
- package/old/gulp/watchers.js.map +1 -0
- package/old/helpers.d.ts +32 -0
- package/old/helpers.js +267 -0
- package/old/helpers.js.map +1 -0
- package/{src copy/helpers.ts → old/helpers.ts} +1 -1
- package/old/index.d.ts +59 -0
- package/old/index.js +288 -0
- package/old/index.js.map +1 -0
- package/old/init.d.ts +8 -0
- package/old/init.js +165 -0
- package/old/init.js.map +1 -0
- package/old/models.d.ts +37 -0
- package/old/models.js +2 -0
- package/old/models.js.map +1 -0
- package/old/prepare.d.ts +8 -0
- package/old/prepare.js +20 -0
- package/old/prepare.js.map +1 -0
- package/old/schemas/index.d.ts +0 -0
- package/old/schemas/index.js +2 -0
- package/old/schemas/index.js.map +1 -0
- package/old/schemas/index.ts +0 -0
- package/old/schemas/types.d.ts +0 -0
- package/old/schemas/types.js +2 -0
- package/old/schemas/types.js.map +1 -0
- package/old/schemas/types.ts +0 -0
- package/old/sync.d.ts +2 -0
- package/old/sync.js +88 -0
- package/old/sync.js.map +1 -0
- package/package.json +3 -6
- package/src/args.ts +18 -17
- package/src/commands/checks.ts +51 -0
- package/src/commands/cleanup.ts +11 -0
- package/src/commands/copy.ts +16 -0
- package/src/commands/edit.ts +83 -0
- package/src/commands/exec.ts +37 -0
- package/src/commands/git.ts +113 -0
- package/src/commands/home.ts +22 -0
- package/src/commands/install.ts +186 -0
- package/src/commands/read.ts +37 -0
- package/src/commands/write.ts +24 -0
- package/src/config.ts +50 -10
- package/src/error.ts +1 -2
- package/src/index.ts +45 -9
- package/src/init/blocks.ts +82 -0
- package/src/init/cargo.ts +22 -0
- package/src/init/expo.ts +66 -0
- package/src/init/gitModules.ts +15 -0
- package/src/init/index.ts +69 -0
- package/src/init/monorepo.ts +39 -0
- package/src/init/prepareVelo.ts +19 -0
- package/src/init/tauri.ts +40 -0
- package/src/init/templates.ts +99 -0
- package/src/init/velo.ts +62 -0
- package/src/runtime.ts +1 -0
- package/src/schemas/gulp.ts +23 -0
- package/src/schemas/lucy.ts +39 -0
- package/src/schemas/types.ts +20 -0
- package/src/sync/index.ts +0 -0
- package/src/sync/sync.ts +96 -0
- package/src/tasks/Gulpfile.ts +252 -0
- package/src/tasks/gulp/backend.ts +112 -0
- package/src/tasks/gulp/checks.ts +214 -0
- package/src/tasks/gulp/clean.ts +38 -0
- package/src/tasks/gulp/copy.ts +43 -0
- package/src/tasks/gulp/helpers.ts +25 -0
- package/src/tasks/gulp/pages.ts +43 -0
- package/src/tasks/gulp/pipeline.ts +32 -0
- package/src/tasks/gulp/public.ts +60 -0
- package/src/tasks/gulp/styles.ts +46 -0
- package/src/tasks/gulp/templates.ts +53 -0
- package/src/tasks/gulp/types.ts +317 -0
- package/src/tasks/gulp/watchers.ts +100 -0
- package/src/tasks/index.ts +32 -0
- package/src/types.d.ts +1 -1
- package/src/utils/index.ts +0 -0
- package/src/utils/logger.ts +40 -0
- package/tsconfig.json +6 -5
- package/files/expo/lucy.json +0 -8
- package/src/init.ts +0 -392
- /package/{files/expo/components/.gitkeep → .turbo/cookies/1.cookie} +0 -0
- /package/{files/expo/components/ui/.gitkeep → .turbo/cookies/2.cookie} +0 -0
- /package/{files/velo/.gitmodules → .turbo/cookies/3.cookie} +0 -0
- /package/{files/velo/typescript/__mocks__/.gitkeep → .turbo/cookies/4.cookie} +0 -0
- /package/{files/velo/typescript/backend/data.ts → .turbo/cookies/5.cookie} +0 -0
- /package/{files/velo/typescript/backend/events.ts → .turbo/daemon/ee24a4f4ab6aa3c0-turbo.log.2025-07-31} +0 -0
- /package/{files/velo/typescript/pages/.gitkeep → dist/sync/index.d.ts} +0 -0
- /package/{files/velo/typescript/public/.gitkeep → dist/sync/sync.d.ts} +0 -0
- /package/{files/velo/typescript/public/scss/app.scss → dist/utils/index.d.ts} +0 -0
- /package/{files/velo/typescript/styles/.gitkeep → dist/utils/install.d.ts} +0 -0
- /package/files/{expo → templates/expo[D]/files}/.nvmrc +0 -0
- /package/files/{expo → templates/expo[D]/files}/.prettierignore +0 -0
- /package/files/{expo → templates/expo[D]/files}/.prettierrc.js +0 -0
- /package/files/{expo → templates/expo[D]/files}/.yarnrc +0 -0
- /package/files/{expo → templates/expo[D]/files}/.yarnrc.yml +0 -0
- /package/files/{expo → templates/expo[D]/files}/README.md +0 -0
- /package/files/{expo → templates/expo[D]/files}/assets/fonts/SpaceMono-Regular.ttf +0 -0
- /package/files/{expo → templates/expo[D]/files}/assets/images/adaptive-icon.png +0 -0
- /package/files/{expo → templates/expo[D]/files}/assets/images/favicon.png +0 -0
- /package/files/{expo → templates/expo[D]/files}/assets/images/icon.png +0 -0
- /package/files/{expo → templates/expo[D]/files}/assets/images/splash-icon.png +0 -0
- /package/files/{expo → templates/expo[D]/files}/babel.config.js +0 -0
- /package/files/{velo/typescript/styles/global.scss → templates/expo[D]/files/components/.gitkeep} +0 -0
- /package/{src copy/schemas/index.ts → files/templates/expo[D]/files/components/ui/.gitkeep} +0 -0
- /package/files/{expo → templates/expo[D]/files}/constants/theme.ts +0 -0
- /package/files/{expo → templates/expo[D]/files}/eas.json +0 -0
- /package/files/{expo → templates/expo[D]/files}/eslint.config.mjs +0 -0
- /package/files/{expo → templates/expo[D]/files}/global.css +0 -0
- /package/files/{expo → templates/expo[D]/files}/hooks/useColorScheme.ts +0 -0
- /package/files/{expo → templates/expo[D]/files}/index.ts +0 -0
- /package/files/{expo → templates/expo[D]/files}/lib/data.ts +0 -0
- /package/files/{expo → templates/expo[D]/files}/lib/utils/index.ts +0 -0
- /package/files/{expo → templates/expo[D]/files}/lib/utils/polyfills.ts +0 -0
- /package/files/{expo → templates/expo[D]/files}/lib/wix/client.ts +0 -0
- /package/files/{expo → templates/expo[D]/files}/lib/wix/error.ts +0 -0
- /package/files/{expo → templates/expo[D]/files}/lib/wix/index.ts +0 -0
- /package/files/{expo → templates/expo[D]/files}/metro.config.js +0 -0
- /package/files/{expo → templates/expo[D]/files}/nativewind-env.d.ts +0 -0
- /package/files/{expo → templates/expo[D]/files}/scripts/reset-project.ts +0 -0
- /package/files/{expo → templates/expo[D]/files}/tailwind.config.js +0 -0
- /package/files/{expo → templates/expo[D]/files}/tsconfig.json +0 -0
- /package/files/{expo → templates/expo[D]/files}/types/reset.d.ts +0 -0
- /package/{src copy/schemas/types.ts → files/templates/velo[D]/files/.gitmodules} +0 -0
- /package/files/{velo → templates/velo[D]/files}/.madgerc +0 -0
- /package/files/{velo → templates/velo[D]/files}/.nvmrc +0 -0
- /package/files/{velo → templates/velo[D]/files}/.stylelintrc.js +0 -0
- /package/files/{velo → templates/velo[D]/files}/.yarnrc.yml +0 -0
- /package/files/{velo → templates/velo[D]/files}/currents.config.js +0 -0
- /package/files/{velo → templates/velo[D]/files}/cypress/e2e/base/base.cy.ts +0 -0
- /package/files/{velo → templates/velo[D]/files}/cypress/fixtures/example.json +0 -0
- /package/files/{velo → templates/velo[D]/files}/cypress/support/commands.ts +0 -0
- /package/files/{velo → templates/velo[D]/files}/cypress/support/e2e.ts +0 -0
- /package/files/{velo → templates/velo[D]/files}/cypress/tsconfig.json +0 -0
- /package/files/{velo → templates/velo[D]/files}/cypress.config.mjs +0 -0
- /package/files/{velo → templates/velo[D]/files}/eslint.config.mjs +0 -0
- /package/files/{velo → templates/velo[D]/files}/local.tsconfig.json +0 -0
- /package/files/{velo → templates/velo[D]/files}/typedoc.json +0 -0
- /package/files/{velo → templates/velo[D]/files}/typescript/backend/http-functions.ts +0 -0
- /package/files/{velo → templates/velo[D]/files}/typescript/backend/lib/http-functions/sync.ts +0 -0
- /package/files/{velo → templates/velo[D]/files}/typescript/backend/permissions.json +0 -0
- /package/files/{velo → templates/velo[D]/files}/typescript/tsconfig.json +0 -0
- /package/files/{velo → templates/velo[D]/files}/vitest.config.ts +0 -0
- /package/{src copy → old}/Gulpfile.ts +0 -0
- /package/{src copy → old}/gulp/backend.ts +0 -0
- /package/{src copy → old}/gulp/checks.ts +0 -0
- /package/{src copy → old}/gulp/clean.ts +0 -0
- /package/{src copy → old}/gulp/copy.ts +0 -0
- /package/{src copy → old}/gulp/helpers.ts +0 -0
- /package/{src copy → old}/gulp/pages.ts +0 -0
- /package/{src copy → old}/gulp/pipeline.ts +0 -0
- /package/{src copy → old}/gulp/public.ts +0 -0
- /package/{src copy → old}/gulp/styles.ts +0 -0
- /package/{src copy → old}/gulp/templates.ts +0 -0
- /package/{src copy → old}/gulp/types.ts +0 -0
- /package/{src copy → old}/gulp/watchers.ts +0 -0
- /package/{src copy → old}/index.ts +0 -0
- /package/{src copy → old}/init.ts +0 -0
- /package/{src copy → old}/models.ts +0 -0
- /package/{src copy → old}/prepare.ts +0 -0
- /package/{src copy → old}/settings.json +0 -0
- /package/{src copy → old}/sync.ts +0 -0
- /package/{src copy → old}/types.d.ts +0 -0
- /package/src/{models.ts → schemas/tsconfig.ts} +0 -0
@@ -0,0 +1,29 @@
|
|
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
|
@@ -0,0 +1 @@
|
|
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,M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AAC,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,kCAAkC,CAAC,CAAC,CAAC;YAC3E,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;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/copy.js
ADDED
@@ -0,0 +1,34 @@
|
|
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
|
@@ -0,0 +1 @@
|
|
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,CAAC,CAAC,qCAAqC;QAExE,MAAM,IAAI,GAAG,GAAG,EAAE,CACvB,IAAI,CAAC,GAAG,CAAC;YACR,GAAG,MAAM,OAAO;YAChB,IAAI,MAAM,iBAAiB;YAC3B,IAAI,MAAM,UAAU;YACpB,IAAI,MAAM,WAAW;YACrB,IAAI,MAAM,cAAc;YACxB,IAAI,MAAM,kBAAkB;YAC5B,IAAI,MAAM,YAAY;SACtB,CAAC;aACD,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;aACb,EAAE,CAAC,OAAO,EAAE,UAAU,CAAQ;YAC3B,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,yBAAyB,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC;YAC1F,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,yBAAyB,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC;QAC7F,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"}
|
@@ -0,0 +1,25 @@
|
|
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
|
+
}
|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
+
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
|
@@ -0,0 +1 @@
|
|
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,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AC;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"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function setProdConfig(): () => any;
|
@@ -0,0 +1,29 @@
|
|
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
|
@@ -0,0 +1 @@
|
|
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;AAE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,SAAS,CAAC,oCAAoC,CAAC,CAAC,CAAC;QACrG,CAAC,CAAC,CAAC;IACP,CAAC,CAAA;AACL,CAAC"}
|
@@ -0,0 +1,50 @@
|
|
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
|
@@ -0,0 +1 @@
|
|
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,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,WAAW,CAAC,OAAoB;IAC5C,MAAM,OAAO,GAAG,CAAC,YAAY,EAAE,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAE9D,MAAM,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC;IAE9B,+BAA+B;IAC/B,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;QACjC,MAAM,QAAQ,GAAG,gBAAgB,MAAM,EAAE,CAAC,CAAC,qCAAqC;QAEhF,MAAM,IAAI,GAAG,GAAG,EAAE,CACd,IAAI,CAAC,GAAG,CAAC;YACL,GAAG,MAAM,iBAAiB;YAC1B,GAAG,MAAM,kBAAkB;SAC9B,CAAC;aACG,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;aACrB,EAAE,CAAC,OAAO,EAAE,UAAU,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I,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC;AACnC,CAAC"}
|
@@ -0,0 +1,40 @@
|
|
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
|
@@ -0,0 +1 @@
|
|
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,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,SAAS,CAAC,CAAC;SACtC,EAAE,CAAC,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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"}
|
@@ -0,0 +1,33 @@
|
|
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
|
@@ -0,0 +1 @@
|
|
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,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;QACjC,MAAM,QAAQ,GAAG,oBAAoB,MAAM,EAAE,CAAC,CAAC,qCAAqC;QACpF,MAAM,IAAI,GAAG,GAAG,EAAE,CACd,IAAI,CAAC,GAAG,CAAC;YACL,GAAG,MAAM,6BAA6B;YACtC,GAAG,MAAM,gCAAgC;YACzC,IAAI,MAAM,8BAA8B;SAC3C,CAAC;aACD,IAAI,CAAC,IAAI,CAAC,CAAC,IAAU,EAAE,EAAE,CAAC,4CAA4C,IAAI,CAAC,IAAI,EAAE,EAAE,OAAO,CAAC,CAA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