lucy-cli 2.0.0-alpha.9 → 2.0.0-beta.10
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/.cursorignore +4 -0
- package/.wix/debug.log +10 -0
- package/.yarnrc.yml +0 -1
- package/README.md +117 -102
- package/dist/args.d.ts +1 -6
- package/dist/args.js +102 -7
- 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.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 +6 -0
- package/dist/commands/copy.js +20 -0
- package/dist/commands/copy.js.map +1 -0
- package/dist/commands/edit.d.ts +10 -0
- package/dist/commands/edit.js +67 -0
- package/dist/commands/edit.js.map +1 -0
- package/dist/commands/exec.d.ts +7 -0
- package/dist/commands/exec.js +69 -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 +41 -0
- package/dist/commands/home.js.map +1 -0
- package/dist/commands/install.d.ts +9 -0
- package/dist/commands/install.js +178 -0
- package/dist/commands/install.js.map +1 -0
- package/dist/commands/read.d.ts +6 -0
- package/dist/commands/read.js +40 -0
- package/dist/commands/read.js.map +1 -0
- package/dist/commands/write.d.ts +7 -0
- package/dist/commands/write.js +28 -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 +29 -7
- package/dist/config.js +90 -26
- 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/helpers.d.ts +9 -0
- package/dist/helpers.js +76 -0
- package/dist/helpers.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +80 -10
- package/dist/index.js.map +1 -0
- package/dist/init/blocks.d.ts +5 -0
- package/dist/init/blocks.js +62 -0
- package/dist/init/blocks.js.map +1 -0
- package/dist/init/cargo.d.ts +2 -0
- package/dist/init/cargo.js +21 -0
- package/dist/init/cargo.js.map +1 -0
- package/dist/init/expo.d.ts +5 -0
- package/dist/init/expo.js +52 -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 +3 -0
- package/dist/init/index.js +86 -0
- package/dist/init/index.js.map +1 -0
- package/dist/init/monorepo.d.ts +4 -0
- package/dist/init/monorepo.js +48 -0
- package/dist/init/monorepo.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/tauri.d.ts +5 -0
- package/dist/init/tauri.js +32 -0
- package/dist/init/tauri.js.map +1 -0
- package/dist/init/templates.d.ts +5 -0
- package/dist/init/templates.js +93 -0
- package/dist/init/templates.js.map +1 -0
- package/dist/init/velo.d.ts +5 -0
- package/dist/init/velo.js +61 -0
- package/dist/init/velo.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 +25 -0
- package/dist/schemas/gulp.js +8 -0
- package/dist/schemas/gulp.js.map +1 -0
- package/dist/schemas/index.d.ts +11 -0
- package/dist/schemas/index.js +10 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/lucy.d.ts +29 -0
- package/dist/schemas/lucy.js +42 -0
- package/dist/schemas/lucy.js.map +1 -0
- package/dist/schemas/tsconfig.js +2 -0
- package/dist/schemas/tsconfig.js.map +1 -0
- package/dist/schemas/types.d.ts +33 -0
- package/dist/schemas/types.js +5 -1
- package/dist/schemas/types.js.map +1 -0
- package/dist/states.js +1 -0
- package/dist/states.js.map +1 -0
- package/dist/tasks/Gulpfile.d.ts +4 -0
- package/dist/tasks/Gulpfile.js +111 -0
- package/dist/tasks/Gulpfile.js.map +1 -0
- package/dist/tasks/gulp/backend.d.ts +4 -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 +4 -0
- package/dist/tasks/gulp/checks.js +203 -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 +3 -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 +3 -0
- package/dist/tasks/gulp/helpers.js +19 -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 +3 -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 +3 -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 +293 -0
- package/dist/tasks/gulp/types.js.map +1 -0
- package/dist/tasks/gulp/watchers.d.ts +3 -0
- package/dist/tasks/gulp/watchers.js +59 -0
- package/dist/tasks/gulp/watchers.js.map +1 -0
- package/dist/tasks/index.d.ts +4 -0
- package/dist/tasks/index.js +23 -0
- package/dist/tasks/index.js.map +1 -0
- package/dist/tasks/syncSettings.d.ts +3 -0
- package/dist/tasks/syncSettings.js +18 -0
- package/dist/tasks/syncSettings.js.map +1 -0
- package/dist/utils/index.js +2 -0
- package/dist/utils/index.js.map +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/dist/wix-sdk/check.d.ts +4 -0
- package/dist/wix-sdk/check.js +23 -0
- package/dist/wix-sdk/check.js.map +1 -0
- package/dist/wix-sdk/client.d.ts +10 -0
- package/dist/wix-sdk/client.js +18 -0
- package/dist/wix-sdk/client.js.map +1 -0
- package/dist/wix-sdk/index.d.ts +4 -0
- package/dist/wix-sdk/index.js +15 -0
- package/dist/wix-sdk/index.js.map +1 -0
- package/dist/wix-sdk/init.d.ts +4 -0
- package/dist/wix-sdk/init.js +51 -0
- package/dist/wix-sdk/init.js.map +1 -0
- package/dist/wix-sdk/run.d.ts +4 -0
- package/dist/wix-sdk/run.js +53 -0
- package/dist/wix-sdk/run.js.map +1 -0
- package/dist/wix-sync/client.d.ts +3 -0
- package/dist/wix-sync/client.js +5 -0
- package/dist/wix-sync/client.js.map +1 -0
- package/dist/wix-sync/export.d.ts +4 -0
- package/dist/wix-sync/export.js +15 -0
- package/dist/wix-sync/export.js.map +1 -0
- package/dist/wix-sync/import.d.ts +4 -0
- package/dist/wix-sync/import.js +26 -0
- package/dist/wix-sync/import.js.map +1 -0
- package/dist/wix-sync/index.d.ts +4 -0
- package/dist/wix-sync/index.js +35 -0
- package/dist/wix-sync/index.js.map +1 -0
- package/dist/wix-sync/init.d.ts +4 -0
- package/dist/wix-sync/init.js +74 -0
- package/dist/wix-sync/init.js.map +1 -0
- package/dist/wix-sync/is-alive.d.ts +4 -0
- package/dist/wix-sync/is-alive.js +23 -0
- package/dist/wix-sync/is-alive.js.map +1 -0
- package/dist/wix-sync/migrate.d.ts +4 -0
- package/dist/wix-sync/migrate.js +21 -0
- package/dist/wix-sync/migrate.js.map +1 -0
- package/dist/wix-sync/sync.d.ts +4 -0
- package/dist/wix-sync/sync.js +26 -0
- package/dist/wix-sync/sync.js.map +1 -0
- package/files/sync-data/data/test.csv +17 -0
- package/files/sync-data/files/lucy.jpg +0 -0
- package/files/sync-data/schema/test.json +11 -0
- package/files/templates/block[D]/files/.cursorignore +4 -0
- package/files/templates/block[D]/files/.stylelintrc.js +8 -0
- package/files/templates/block[D]/lucy.json +9 -0
- package/files/templates/cargo[D]/files/.cursorignore +4 -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 +15 -0
- package/files/templates/expo verse[D]/files/.stylelintrc.json +8 -0
- package/files/templates/expo verse[D]/files/.vscode/extensions.json +10 -0
- package/files/templates/expo verse[D]/files/.vscode/launch.json +54 -0
- package/files/templates/expo verse[D]/files/.vscode/settings.json +30 -0
- package/files/templates/expo verse[D]/files/.yarnrc.yml +8 -0
- package/files/templates/expo verse[D]/files/App.tsx +63 -0
- package/files/templates/expo verse[D]/files/DEBUGGING.md +126 -0
- package/files/templates/expo verse[D]/files/android/app/build.gradle +177 -0
- package/files/templates/expo verse[D]/files/android/app/debug.keystore +0 -0
- package/files/templates/expo verse[D]/files/android/app/proguard-rules.pro +14 -0
- package/files/templates/expo verse[D]/files/android/app/src/debug/AndroidManifest.xml +7 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/AndroidManifest.xml +33 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/java/so/sunnysideup/daily_verse/MainActivity.kt +65 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/java/so/sunnysideup/daily_verse/MainApplication.kt +57 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable/ic_launcher_background.xml +6 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable/rn_edit_text_material.xml +37 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-hdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-mdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-night-hdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-night-mdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-night-xhdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-night-xxhdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-night-xxxhdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-xhdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-xxhdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-xxxhdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +6 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +6 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/values/colors.xml +6 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/values/strings.xml +7 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/values/styles.xml +12 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/values-night/colors.xml +3 -0
- package/files/templates/expo verse[D]/files/android/build.gradle +37 -0
- package/files/templates/expo verse[D]/files/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/files/templates/expo verse[D]/files/android/gradle/wrapper/gradle-wrapper.properties +7 -0
- package/files/templates/expo verse[D]/files/android/gradle.properties +59 -0
- package/files/templates/expo verse[D]/files/android/gradlew +251 -0
- package/files/templates/expo verse[D]/files/android/gradlew.bat +94 -0
- package/files/templates/expo verse[D]/files/android/settings.gradle +39 -0
- package/files/templates/expo verse[D]/files/app.config.ts +77 -0
- package/files/templates/expo verse[D]/files/assets/data/de.csv +949 -0
- package/files/templates/expo verse[D]/files/assets/data/en.csv +949 -0
- package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-Black.ttf +0 -0
- package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-BlackItalic.ttf +0 -0
- package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-Bold.ttf +0 -0
- package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-BoldItalic.ttf +0 -0
- package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-ExtraBold.ttf +0 -0
- package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-ExtraBoldItalic.ttf +0 -0
- package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-Italic.ttf +0 -0
- package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-Medium.ttf +0 -0
- package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-MediumItalic.ttf +0 -0
- package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-Regular.ttf +0 -0
- package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-SemiBold.ttf +0 -0
- package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-SemiBoldItalic.ttf +0 -0
- package/files/{expo → templates/expo verse[D]/files}/assets/fonts/SpaceMono-Regular.ttf +0 -0
- package/files/templates/expo verse[D]/files/assets/images/andorid/background.png +0 -0
- package/files/templates/expo verse[D]/files/assets/images/android-dark.png +0 -0
- package/files/templates/expo verse[D]/files/assets/images/android-light.png +0 -0
- package/files/templates/expo verse[D]/files/assets/images/background.png +0 -0
- package/files/templates/expo verse[D]/files/assets/images/ios-dark.png +0 -0
- package/files/templates/expo verse[D]/files/assets/images/ios-light.png +0 -0
- package/files/templates/expo verse[D]/files/assets/images/ios-tinted.png +0 -0
- package/files/templates/expo verse[D]/files/assets/images/splash-icon-dark.png +0 -0
- package/files/templates/expo verse[D]/files/assets/images/splash-icon-light.png +0 -0
- package/files/templates/expo verse[D]/files/components/MainScreen.tsx +299 -0
- package/files/templates/expo verse[D]/files/components/Share.tsx +132 -0
- package/files/templates/expo verse[D]/files/components/ui/dev.tsx +48 -0
- package/files/templates/expo verse[D]/files/constants/config.ts +30 -0
- package/files/templates/expo verse[D]/files/data/de.csv +219 -0
- package/files/templates/expo verse[D]/files/data/en.csv +219 -0
- package/files/templates/expo verse[D]/files/data/version.json +4 -0
- package/files/templates/expo verse[D]/files/eas.json +47 -0
- package/files/templates/expo verse[D]/files/eslint.config.mjs +185 -0
- package/files/templates/expo verse[D]/files/index.ts +28 -0
- package/files/templates/expo verse[D]/files/lib/content.ts +31 -0
- package/files/templates/expo verse[D]/files/lib/data.ts +180 -0
- package/files/templates/expo verse[D]/files/lib/helper.ts +54 -0
- package/files/templates/expo verse[D]/files/lib/index.ts +21 -0
- package/files/templates/expo verse[D]/files/lib/state.ts +128 -0
- package/files/templates/expo verse[D]/files/lib/storage.ts +17 -0
- package/files/templates/expo verse[D]/files/lib/taskManager/index.ts +38 -0
- package/files/templates/expo verse[D]/files/lib/taskManager/loadData.ts +14 -0
- package/files/templates/expo verse[D]/files/lib/utils/screenshot.ts +77 -0
- package/files/templates/expo verse[D]/files/metro.config.js +81 -0
- package/files/templates/expo verse[D]/files/models/index.ts +28 -0
- package/files/templates/expo verse[D]/files/package.json +102 -0
- package/files/templates/expo verse[D]/files/pnpm-workspace.yaml +3 -0
- package/files/templates/expo verse[D]/files/scripts/convert-verses.ts +309 -0
- package/files/templates/expo verse[D]/files/scripts/move-artifacts.ts +83 -0
- package/files/{expo → templates/expo verse[D]/files}/scripts/reset-project.ts +0 -0
- package/files/templates/expo verse[D]/files/tsconfig.json +45 -0
- package/files/templates/expo verse[D]/files/types/index.ts +4 -0
- package/files/templates/expo verse[D]/files/types/reset.d.ts +1 -0
- package/files/templates/expo verse[D]/lucy.json +86 -0
- package/files/templates/expo[D]/files/.cursorignore +4 -0
- package/files/templates/expo[D]/files/.nvmrc +1 -0
- package/files/templates/expo[D]/files/.prettierignore +23 -0
- package/files/templates/expo[D]/files/.prettierrc.js +16 -0
- package/files/templates/expo[D]/files/.stylelintrc.js +8 -0
- package/files/templates/expo[D]/files/.yarnrc +1 -0
- package/files/templates/expo[D]/files/README.md +45 -0
- package/files/templates/expo[D]/files/app.config.ts +69 -0
- package/files/templates/expo[D]/files/assets/fonts/SpaceMono-Regular.ttf +0 -0
- package/files/templates/expo[D]/files/babel.config.js +10 -0
- package/files/templates/expo[D]/files/constants/theme.ts +18 -0
- package/files/{expo → templates/expo[D]/files}/eas.json +9 -3
- package/files/templates/expo[D]/files/global.css +47 -0
- package/files/templates/expo[D]/files/hooks/useColorScheme.ts +17 -0
- package/files/templates/expo[D]/files/lib/data.ts +197 -0
- package/files/templates/expo[D]/files/lib/utils/index.ts +11 -0
- package/files/templates/expo[D]/files/lib/utils/polyfills.ts +29 -0
- package/files/{expo → templates/expo[D]/files}/metro.config.js +6 -0
- package/files/templates/expo[D]/files/nativewind-env.d.ts +1 -0
- package/files/templates/expo[D]/files/pnpm-workspace.yaml +3 -0
- package/files/templates/expo[D]/files/scripts/reset-project.ts +116 -0
- package/files/templates/expo[D]/files/tailwind.config.js +63 -0
- package/files/templates/expo[D]/lucy.json +86 -0
- package/files/templates/monorepo[D]/files/.cursorignore +4 -0
- package/files/templates/monorepo[D]/files/.editorconfig +10 -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/{velo → templates/monorepo[D]/files}/.yarnrc.yml +1 -1
- package/files/templates/monorepo[D]/files/README.md +109 -0
- package/files/templates/monorepo[D]/files/currents.config.ts +5 -0
- package/files/templates/monorepo[D]/files/nx.json +25 -0
- package/files/templates/monorepo[D]/files/pnpm-workspace.yaml +11 -0
- package/files/templates/monorepo[D]/files/tsconfig.json +6 -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 +69 -0
- package/files/templates/tauri[D]/files/.cursorignore +4 -0
- package/files/templates/tauri[D]/lucy.json +9 -0
- package/files/templates/velo[D]/files/.cursorignore +4 -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/.yarnrc.yml +2 -0
- package/files/{velo → templates/velo[D]/files}/local.tsconfig.json +6 -5
- package/files/templates/velo[D]/files/typescript/backend/config/authz.ts +47 -0
- package/files/templates/velo[D]/files/typescript/backend/config/env.ts +8 -0
- package/files/templates/velo[D]/files/typescript/backend/config/index.ts +26 -0
- package/files/templates/velo[D]/files/typescript/backend/config/mail.ts +10 -0
- package/files/templates/velo[D]/files/typescript/backend/config/nats.ts +6 -0
- package/files/templates/velo[D]/files/typescript/public/config/env.ts +9 -0
- package/files/templates/velo[D]/files/typescript/public/config/index.ts +76 -0
- package/files/templates/velo[D]/files/typescript/public/config/locales.ts +30 -0
- package/files/templates/velo[D]/files/typescript/public/config/theme.ts +110 -0
- package/files/templates/velo[D]/files/typescript/public/i18n/default.ts +123 -0
- package/files/templates/velo[D]/files/typescript/public/i18n/en.ts +117 -0
- package/files/templates/velo[D]/files/typescript/public/models/collections/member_roles.mode.ts +21 -0
- package/files/templates/velo[D]/files/typescript/public/models/collections/organization.model.ts +38 -0
- package/files/templates/velo[D]/files/typescript/public/models/collections/plan.model.ts +94 -0
- package/files/templates/velo[D]/files/typescript/public/models/collections/stage.model.ts +14 -0
- package/files/templates/velo[D]/files/typescript/public/models/collections/subscriptions.model.ts +80 -0
- package/files/templates/velo[D]/files/typescript/public/models/collections/tag.model.ts +15 -0
- package/files/templates/velo[D]/files/typescript/public/models/collections/translations.model.ts +16 -0
- package/files/templates/velo[D]/files/typescript/public/models/modules/authz.model.ts +31 -0
- package/files/templates/velo[D]/files/typescript/public/models/modules/organization.ts +20 -0
- package/files/templates/velo[D]/files/typescript/public/models/splitwise.model.ts +18 -0
- package/files/templates/velo[D]/files/typescript/public/models/store/local.model.ts +10 -0
- package/files/templates/velo[D]/files/typescript/public/models/store/memory.model.ts +10 -0
- package/files/templates/velo[D]/files/typescript/public/models/store/session.model.ts +10 -0
- package/files/templates/velo[D]/files/typescript/public/models/wix/ecom/payment.ts +236 -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 +137 -0
- package/lucy +4 -0
- package/lucy.jpg +0 -0
- package/mitarbeiter-login.html +188 -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/{src copy → old}/index.ts +0 -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 +28 -28
- package/patches/velo-sync+0.0.9.patch +13 -0
- package/pnpm-workspace.yaml +6 -0
- package/src/args.ts +102 -17
- package/src/commands/checks.ts +51 -0
- package/src/commands/cleanup.ts +11 -0
- package/src/commands/copy.ts +28 -0
- package/src/commands/edit.ts +81 -0
- package/src/commands/exec.ts +73 -0
- package/src/commands/git.ts +113 -0
- package/src/commands/home.ts +56 -0
- package/src/commands/install.ts +269 -0
- package/src/commands/read.ts +45 -0
- package/src/commands/write.ts +45 -0
- package/src/config.ts +116 -35
- package/src/error.ts +1 -2
- package/src/helpers.ts +84 -0
- package/src/index.ts +91 -14
- package/src/init/blocks.ts +85 -0
- package/src/init/cargo.ts +25 -0
- package/src/init/expo.ts +69 -0
- package/src/init/gitModules.ts +15 -0
- package/src/init/index.ts +89 -0
- package/src/init/monorepo.ts +72 -0
- package/src/init/prepareVelo.ts +19 -0
- package/src/init/tauri.ts +42 -0
- package/src/init/templates.ts +98 -0
- package/src/init/velo.ts +66 -0
- package/src/runtime.ts +1 -0
- package/src/schemas/gulp.ts +31 -0
- package/src/schemas/index.ts +15 -1
- package/src/schemas/lucy.ts +43 -0
- package/src/schemas/types.ts +40 -0
- package/src/tasks/Gulpfile.ts +207 -0
- package/src/tasks/gulp/backend.ts +113 -0
- package/src/tasks/gulp/checks.ts +219 -0
- package/src/tasks/gulp/clean.ts +38 -0
- package/src/tasks/gulp/copy.ts +38 -0
- package/src/tasks/gulp/helpers.ts +18 -0
- package/src/tasks/gulp/pages.ts +43 -0
- package/src/tasks/gulp/pipeline.ts +31 -0
- package/src/tasks/gulp/public.ts +61 -0
- package/src/tasks/gulp/styles.ts +47 -0
- package/src/tasks/gulp/templates.ts +53 -0
- package/src/tasks/gulp/types.ts +310 -0
- package/src/tasks/gulp/watchers.ts +97 -0
- package/src/tasks/index.ts +24 -0
- package/src/tasks/syncSettings.ts +21 -0
- package/src/types.d.ts +1 -1
- package/src/utils/index.ts +0 -0
- package/src/utils/logger.ts +40 -0
- package/src/wix-sdk/check.ts +24 -0
- package/src/wix-sdk/client.ts +18 -0
- package/src/wix-sdk/index.ts +17 -0
- package/src/wix-sdk/init.ts +54 -0
- package/src/wix-sdk/run.ts +56 -0
- package/src/wix-sync/client.ts +6 -0
- package/src/wix-sync/export.ts +19 -0
- package/src/wix-sync/import.ts +27 -0
- package/src/wix-sync/index.ts +36 -0
- package/src/wix-sync/init.ts +77 -0
- package/src/wix-sync/is-alive.ts +25 -0
- package/src/wix-sync/migrate.ts +23 -0
- package/src/wix-sync/sync.ts +27 -0
- package/tsconfig.json +6 -5
- package/dist/init.d.ts +0 -4
- package/dist/init.js +0 -275
- package/dist/models.js +0 -1
- package/dist/params.d.ts +0 -7
- package/dist/params.js +0 -23
- package/files/expo/lib/data.ts +0 -48
- package/src/init.ts +0 -392
- /package/dist/{models.d.ts → schemas/tsconfig.d.ts} +0 -0
- /package/{files/expo/components/.gitkeep → dist/utils/index.d.ts} +0 -0
- /package/files/{expo → templates/expo verse[D]/files}/.nvmrc +0 -0
- /package/files/{expo → templates/expo verse[D]/files}/.prettierignore +0 -0
- /package/files/{expo → templates/expo verse[D]/files}/.prettierrc.js +0 -0
- /package/files/{expo/components/ui/.gitkeep → templates/expo verse[D]/files/.vscode/tasks.json} +0 -0
- /package/files/{expo → templates/expo verse[D]/files}/.yarnrc +0 -0
- /package/files/{expo → templates/expo verse[D]/files}/README.md +0 -0
- /package/files/{expo → templates/expo verse[D]/files}/babel.config.js +0 -0
- /package/files/{velo/typescript/__mocks__ → templates/expo verse[D]/files/components}/.gitkeep +0 -0
- /package/files/{velo/typescript/pages → templates/expo verse[D]/files/components/ui}/.gitkeep +0 -0
- /package/files/{expo → templates/expo verse[D]/files}/constants/theme.ts +0 -0
- /package/files/{expo → templates/expo verse[D]/files}/global.css +0 -0
- /package/files/{expo → templates/expo verse[D]/files}/hooks/useColorScheme.ts +0 -0
- /package/files/{expo → templates/expo verse[D]/files}/lib/utils/index.ts +0 -0
- /package/files/{expo → templates/expo verse[D]/files}/lib/utils/polyfills.ts +0 -0
- /package/files/{expo → templates/expo verse[D]/files}/lucy.json +0 -0
- /package/files/{expo → templates/expo verse[D]/files}/nativewind-env.d.ts +0 -0
- /package/files/{expo → templates/expo verse[D]/files}/tailwind.config.js +0 -0
- /package/files/{expo → templates/expo[D]/files}/.yarnrc.yml +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/{velo/typescript/public → templates/expo[D]/files/components}/.gitkeep +0 -0
- /package/files/{velo/typescript/styles → templates/expo[D]/files/components/ui}/.gitkeep +0 -0
- /package/files/{expo → templates/expo[D]/files}/eslint.config.mjs +0 -0
- /package/files/{expo → templates/expo[D]/files}/index.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}/tsconfig.json +0 -0
- /package/files/{expo → templates/expo[D]/files}/types/reset.d.ts +0 -0
- /package/files/{velo → 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}/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}/typedoc.json +0 -0
- /package/files/{velo/typescript/backend/data.ts → templates/velo[D]/files/typescript/__mocks__/.gitkeep} +0 -0
- /package/files/{velo/typescript/backend/events.ts → templates/velo[D]/files/typescript/backend/data.ts} +0 -0
- /package/files/{velo/typescript/public/scss/app.scss → templates/velo[D]/files/typescript/backend/events.ts} +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/typescript/styles/global.scss → templates/velo[D]/files/typescript/pages/.gitkeep} +0 -0
- /package/{src copy/schemas/index.ts → files/templates/velo[D]/files/typescript/public/.gitkeep} +0 -0
- /package/{src copy/schemas/types.ts → files/templates/velo[D]/files/typescript/public/scss/app.scss} +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}/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,109 @@
|
|
|
1
|
+
# Test
|
|
2
|
+
|
|
3
|
+
<a alt="Nx logo" href="https://nx.dev" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-logo.png" width="45"></a>
|
|
4
|
+
|
|
5
|
+
✨ Your new, shiny [Nx workspace](https://nx.dev) is ready ✨.
|
|
6
|
+
|
|
7
|
+
[Learn more about this workspace setup and its capabilities](https://nx.dev/nx-api/js?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects) or run `npx nx graph` to visually explore what was created. Now, let's get you up to speed!
|
|
8
|
+
|
|
9
|
+
## Run tasks
|
|
10
|
+
|
|
11
|
+
To run the dev server for your app, use:
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
npx nx serve test
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
To create a production bundle:
|
|
18
|
+
|
|
19
|
+
```sh
|
|
20
|
+
npx nx build test
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
To see all available targets to run for a project, run:
|
|
24
|
+
|
|
25
|
+
```sh
|
|
26
|
+
npx nx show project test
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
These targets are either [inferred automatically](https://nx.dev/concepts/inferred-tasks?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects) or defined in the `project.json` or `package.json` files.
|
|
30
|
+
|
|
31
|
+
[More about running tasks in the docs »](https://nx.dev/features/run-tasks?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects)
|
|
32
|
+
|
|
33
|
+
## Versioning and releasing
|
|
34
|
+
|
|
35
|
+
To version and release the library use
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
npx nx release
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Pass `--dry-run` to see what would happen without actually releasing the library.
|
|
42
|
+
|
|
43
|
+
[Learn more about Nx release »](https://nx.dev/features/manage-releases?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects)
|
|
44
|
+
|
|
45
|
+
## Keep TypeScript project references up to date
|
|
46
|
+
|
|
47
|
+
Nx automatically updates TypeScript [project references](https://www.typescriptlang.org/docs/handbook/project-references.html) in `tsconfig.json` files to ensure they remain accurate based on your project dependencies (`import` or `require` statements). This sync is automatically done when running tasks such as `build` or `typecheck`, which require updated references to function correctly.
|
|
48
|
+
|
|
49
|
+
To manually trigger the process to sync the project graph dependencies information to the TypeScript project references, run the following command:
|
|
50
|
+
|
|
51
|
+
```sh
|
|
52
|
+
npx nx sync
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
You can enforce that the TypeScript project references are always in the correct state when running in CI by adding a step to your CI job configuration that runs the following command:
|
|
56
|
+
|
|
57
|
+
```sh
|
|
58
|
+
npx nx sync:check
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
[Learn more about nx sync](https://nx.dev/reference/nx-commands#sync)
|
|
62
|
+
|
|
63
|
+
## Set up CI!
|
|
64
|
+
|
|
65
|
+
### Step 1
|
|
66
|
+
|
|
67
|
+
To connect to Nx Cloud, run the following command:
|
|
68
|
+
|
|
69
|
+
```sh
|
|
70
|
+
npx nx connect
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Connecting to Nx Cloud ensures a [fast and scalable CI](https://nx.dev/ci/intro/why-nx-cloud?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects) pipeline. It includes features such as:
|
|
74
|
+
|
|
75
|
+
- [Remote caching](https://nx.dev/ci/features/remote-cache?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects)
|
|
76
|
+
- [Task distribution across multiple machines](https://nx.dev/ci/features/distribute-task-execution?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects)
|
|
77
|
+
- [Automated e2e test splitting](https://nx.dev/ci/features/split-e2e-tasks?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects)
|
|
78
|
+
- [Task flakiness detection and rerunning](https://nx.dev/ci/features/flaky-tasks?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects)
|
|
79
|
+
|
|
80
|
+
### Step 2
|
|
81
|
+
|
|
82
|
+
Use the following command to configure a CI workflow for your workspace:
|
|
83
|
+
|
|
84
|
+
```sh
|
|
85
|
+
npx nx g ci-workflow
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
[Learn more about Nx on CI](https://nx.dev/ci/intro/ci-with-nx#ready-get-started-with-your-provider?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects)
|
|
89
|
+
|
|
90
|
+
## Install Nx Console
|
|
91
|
+
|
|
92
|
+
Nx Console is an editor extension that enriches your developer experience. It lets you run tasks, generate code, and improves code autocompletion in your IDE. It is available for VSCode and IntelliJ.
|
|
93
|
+
|
|
94
|
+
[Install Nx Console »](https://nx.dev/getting-started/editor-setup?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects)
|
|
95
|
+
|
|
96
|
+
## Useful links
|
|
97
|
+
|
|
98
|
+
Learn more:
|
|
99
|
+
|
|
100
|
+
- [Learn more about this workspace setup](https://nx.dev/nx-api/js?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects)
|
|
101
|
+
- [Learn about Nx on CI](https://nx.dev/ci/intro/ci-with-nx?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects)
|
|
102
|
+
- [Releasing Packages with Nx release](https://nx.dev/features/manage-releases?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects)
|
|
103
|
+
- [What are Nx plugins?](https://nx.dev/concepts/nx-plugins?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects)
|
|
104
|
+
|
|
105
|
+
And join the Nx community:
|
|
106
|
+
- [Discord](https://go.nx.dev/community)
|
|
107
|
+
- [Follow us on X](https://twitter.com/nxdevtools) or [LinkedIn](https://www.linkedin.com/company/nrwl)
|
|
108
|
+
- [Our Youtube channel](https://www.youtube.com/@nxdevtools)
|
|
109
|
+
- [Our blog](https://nx.dev/blog?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects)
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export const currentsConfig: { projectId: string; recordKey: string; cloudServiceUrl: string } = {
|
|
2
|
+
projectId: '__ProjectName__', // the projectId, can be any values for sorry-cypress users
|
|
3
|
+
recordKey: '__ProjectName__', // the record key, can be any value for sorry-cypress users
|
|
4
|
+
cloudServiceUrl: 'https://e2e.int.integral-systems.ch:1234', // Sorry Cypress users - set the director service URL
|
|
5
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/nx/schemas/nx-schema.json",
|
|
3
|
+
"defaultBase": "master",
|
|
4
|
+
"namedInputs": {
|
|
5
|
+
"default": ["{projectRoot}/**/*", "sharedGlobals"],
|
|
6
|
+
"production": ["default"],
|
|
7
|
+
"sharedGlobals": []
|
|
8
|
+
},
|
|
9
|
+
"plugins": [
|
|
10
|
+
{
|
|
11
|
+
"plugin": "@nx/js/typescript",
|
|
12
|
+
"options": {
|
|
13
|
+
"typecheck": {
|
|
14
|
+
"targetName": "typecheck"
|
|
15
|
+
},
|
|
16
|
+
"build": {
|
|
17
|
+
"targetName": "build",
|
|
18
|
+
"configName": "tsconfig.lib.json",
|
|
19
|
+
"buildDepsName": "build-deps",
|
|
20
|
+
"watchDepsName": "watch-deps"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"entryPoints": [
|
|
3
|
+
"*/**/*.ts",
|
|
4
|
+
"*/**/*.tsx"
|
|
5
|
+
],
|
|
6
|
+
"entryPointStrategy": "expand",
|
|
7
|
+
"out": "docs",
|
|
8
|
+
"plugin": [
|
|
9
|
+
"typedoc-github-theme"
|
|
10
|
+
],
|
|
11
|
+
"tsconfig": "local.tsconfig.json",
|
|
12
|
+
"excludeExternals": true,
|
|
13
|
+
"externalPattern": [
|
|
14
|
+
"**/node_modules/**",
|
|
15
|
+
"**/.wix/**",
|
|
16
|
+
".wix/**"
|
|
17
|
+
],
|
|
18
|
+
"exclude": [
|
|
19
|
+
"./.wix/**/*",
|
|
20
|
+
".wix/**/*",
|
|
21
|
+
"cypress/**",
|
|
22
|
+
"**/__mocks__/**"
|
|
23
|
+
],
|
|
24
|
+
"name": "wix-yeva"
|
|
25
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { defineConfig } from "vitest/config";
|
|
2
|
+
import { sharedConfig, uiConfig } from "@lucy/vitest-config";
|
|
3
|
+
|
|
4
|
+
export default defineConfig({
|
|
5
|
+
...sharedConfig,
|
|
6
|
+
...uiConfig,
|
|
7
|
+
test: {
|
|
8
|
+
projects: [
|
|
9
|
+
{
|
|
10
|
+
root: "./packages",
|
|
11
|
+
test: {
|
|
12
|
+
...sharedConfig.test,
|
|
13
|
+
// Project-specific configuration for packages
|
|
14
|
+
// ...
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
root: "./apps",
|
|
19
|
+
test: {
|
|
20
|
+
...sharedConfig.test,
|
|
21
|
+
// Project-specific configuration for apps
|
|
22
|
+
environment: "jsdom",
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
},
|
|
27
|
+
});
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"modules": {
|
|
3
|
+
"lucy-typescript-config": {
|
|
4
|
+
"source": "git@github.com:Sunnyside-UP-GmbH/lucy-typescript-config.git",
|
|
5
|
+
"branch": "1.0.0"
|
|
6
|
+
},
|
|
7
|
+
"lucy-eslint-config": {
|
|
8
|
+
"source": "git@github.com:Sunnyside-UP-GmbH/lucy-eslint-config.git",
|
|
9
|
+
"branch": "1.0.0"
|
|
10
|
+
},
|
|
11
|
+
"lucy-i18n": {
|
|
12
|
+
"source": "git@github.com:Sunnyside-UP-GmbH/lucy-i18n.git",
|
|
13
|
+
"branch": "1.0.0"
|
|
14
|
+
},
|
|
15
|
+
"lucy-error": {
|
|
16
|
+
"source": "git@github.com:Sunnyside-UP-GmbH/lucy-error.git",
|
|
17
|
+
"branch": "1.0.0"
|
|
18
|
+
},
|
|
19
|
+
"lucy-cypress": {
|
|
20
|
+
"source": "git@github.com:Sunnyside-UP-GmbH/lucy-cypress.git",
|
|
21
|
+
"branch": "1.0.0"
|
|
22
|
+
},
|
|
23
|
+
"lucy-vitest-config": {
|
|
24
|
+
"source": "git@github.com:Sunnyside-UP-GmbH/lucy-vitest-config.git",
|
|
25
|
+
"branch": "1.0.0"
|
|
26
|
+
},
|
|
27
|
+
"lucy-schema-lib": {
|
|
28
|
+
"source": "git@github.com:Sunnyside-UP-GmbH/lucy-schema-lib.git",
|
|
29
|
+
"branch": "1.0.0"
|
|
30
|
+
},
|
|
31
|
+
"lucy-frontend-lib": {
|
|
32
|
+
"source": "git@github.com:Sunnyside-UP-GmbH/lucy-frontend-lib.git",
|
|
33
|
+
"branch": "1.0.0"
|
|
34
|
+
},
|
|
35
|
+
"lucy-backend-lib": {
|
|
36
|
+
"source": "git@github.com:Sunnyside-UP-GmbH/lucy-backend-lib.git",
|
|
37
|
+
"branch": "1.0.0"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"vitest": "",
|
|
42
|
+
"@vitest/ui": "",
|
|
43
|
+
"syncpack": "",
|
|
44
|
+
"typescript-eslint": "",
|
|
45
|
+
"typescript-eslint-language-service": "",
|
|
46
|
+
"@typescript-eslint/parser": "",
|
|
47
|
+
"@lucy/vitest-config": "workspace:*"
|
|
48
|
+
},
|
|
49
|
+
"dependencies": {},
|
|
50
|
+
"scripts": {
|
|
51
|
+
"build": "turbo run build",
|
|
52
|
+
"dev": "turbo run dev",
|
|
53
|
+
"lint": "turbo run lint",
|
|
54
|
+
"format": "prettier --write \"./*.json\" \"**/*.{ts,tsx,md,json,jsonc,json5}\"",
|
|
55
|
+
"check-types": "turbo run check-types",
|
|
56
|
+
"update": "syncpack -- update",
|
|
57
|
+
"update:list": "syncpack -- list",
|
|
58
|
+
"test": "turbo run test",
|
|
59
|
+
"test:projects": "vitest run",
|
|
60
|
+
"test:projects:watch": "vitest --watch",
|
|
61
|
+
"view-report": "turbo run view-report",
|
|
62
|
+
"test:ui": "vitest --ui",
|
|
63
|
+
"test:e2e": "turbo run test:e2e"
|
|
64
|
+
},
|
|
65
|
+
"initialized": false,
|
|
66
|
+
"type": "monorepo",
|
|
67
|
+
"packageManager": "pnpm",
|
|
68
|
+
"defaultModulePath": "shared"
|
|
69
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Dependencies
|
|
2
|
+
node_modules/
|
|
3
|
+
|
|
4
|
+
# Build output
|
|
5
|
+
dist
|
|
6
|
+
.next/
|
|
7
|
+
.wix/
|
|
8
|
+
build
|
|
9
|
+
out
|
|
10
|
+
|
|
11
|
+
# Turbo cache
|
|
12
|
+
.turbo
|
|
13
|
+
|
|
14
|
+
# Logs
|
|
15
|
+
*.log
|
|
16
|
+
npm-debug.log*
|
|
17
|
+
yarn-debug.log*
|
|
18
|
+
yarn-error.log*
|
|
19
|
+
pnpm-debug.log*
|
|
20
|
+
|
|
21
|
+
# As per your ESLint config, JS files are not formatted.
|
|
22
|
+
**/*.js
|
|
23
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
printWidth: 80,
|
|
3
|
+
tabWidth: 4,
|
|
4
|
+
useTabs: true,
|
|
5
|
+
singleQuote: true,
|
|
6
|
+
trailingComma: 'all',
|
|
7
|
+
plugins: ['prettier-plugin-tailwindcss'],
|
|
8
|
+
overrides: [
|
|
9
|
+
{
|
|
10
|
+
files: ['**/*.{json,jsonc,json5}', '*.{json,jsonc,json5}'],
|
|
11
|
+
options: {
|
|
12
|
+
useTabs: true
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
};
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
}
|
|
36
36
|
],
|
|
37
37
|
"paths": {
|
|
38
|
-
"public/*": ["./typescript/public/*"],
|
|
39
|
-
"backend/*": ["./typescript/backend/*"],
|
|
38
|
+
"public/*": ["./typescript/public/*", "./lib/public/*"],
|
|
39
|
+
"backend/*": ["./typescript/backend/*", "./lib/backend/*"],
|
|
40
40
|
"pages/*": ["./typescript/pages/*"],
|
|
41
|
-
"types/*": ["./typescript/types/*"]
|
|
41
|
+
"types/*": ["./typescript/types/*", "./lib/types/*"]
|
|
42
42
|
},
|
|
43
43
|
"typeRoots": [
|
|
44
44
|
"./types",
|
|
@@ -54,7 +54,8 @@
|
|
|
54
54
|
"../node_modules",
|
|
55
55
|
"node_modules",
|
|
56
56
|
"./**/*.test.ts",
|
|
57
|
-
"../src/**/*"
|
|
57
|
+
"../src/**/*",
|
|
58
|
+
"./cypress.config.mjs"
|
|
58
59
|
],
|
|
59
|
-
"include": ["!*.d.ts", "public/**/*.tsx", "**/*.ts"]
|
|
60
|
+
"include": ["!*.d.ts", "**/public/**/*.tsx", "**/*.ts"]
|
|
60
61
|
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { AuthzConfig } from 'backend/lib/config/model';
|
|
2
|
+
import { Roles } from 'public/config';
|
|
3
|
+
import { Subscription } from 'public/models/modules/authz.model';
|
|
4
|
+
|
|
5
|
+
export enum Actions {
|
|
6
|
+
VIEW = 'view',
|
|
7
|
+
CREATE = 'create',
|
|
8
|
+
EDIT = 'edit',
|
|
9
|
+
DELETE = 'delete',
|
|
10
|
+
LIST = 'list',
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export enum Resources {
|
|
14
|
+
ORGANIZATION = 'organization',
|
|
15
|
+
EVENT = 'event',
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export const rolesPermissions: { name: string, resource: Resources, permissions: Actions[] }[] = [
|
|
19
|
+
{ name: Roles.MEMBER, resource: Resources.ORGANIZATION, permissions: [Actions.CREATE] },
|
|
20
|
+
{ name: Roles.OWNER, resource: Resources.ORGANIZATION, permissions: [Actions.EDIT, Actions.DELETE] },
|
|
21
|
+
{ name: Roles.OWNER, resource: Resources.EVENT, permissions: [Actions.VIEW, Actions.CREATE, Actions.EDIT, Actions.DELETE] },
|
|
22
|
+
{ name: Roles.VISITOR, resource: Resources.ORGANIZATION, permissions: [Actions.VIEW] },
|
|
23
|
+
{ name: Roles.VISITOR, resource: Resources.EVENT, permissions: [Actions.VIEW] },
|
|
24
|
+
] as const;
|
|
25
|
+
|
|
26
|
+
export const authzConfig: AuthzConfig<typeof Actions, typeof Resources> = {
|
|
27
|
+
modelPath: '/user-code/backend/authz/model.conf',
|
|
28
|
+
policyPath: '/user-code/backend/authz/policy.csv',
|
|
29
|
+
policies: rolesPermissions.map(role => {
|
|
30
|
+
const roles: string[][]=[];
|
|
31
|
+
for (const permission of role.permissions) {
|
|
32
|
+
roles.push([ role.name, role.resource, permission ]);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return roles;
|
|
36
|
+
}).flat(),
|
|
37
|
+
matchFunctions: {
|
|
38
|
+
getSubscriptionLevelValue: (subscription: Subscription, orgCount: number, action: Actions, resource: Resources) => {
|
|
39
|
+
if(subscription.limits.organizations <= orgCount && action === Actions.CREATE && resource === Resources.ORGANIZATION) return false;
|
|
40
|
+
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
actions: Actions,
|
|
45
|
+
resources: Resources,
|
|
46
|
+
} as const;
|
|
47
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BackendEnvironment } from 'backend/lib/config/model';
|
|
2
|
+
import { satisfies } from 'effect/Function';
|
|
3
|
+
|
|
4
|
+
export const environment = satisfies<BackendEnvironment>()({
|
|
5
|
+
development: process.env.SEGMENT === 'dev' ? true : false,
|
|
6
|
+
} as const);
|
|
7
|
+
|
|
8
|
+
export type Environment = typeof environment;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BackendConfig } from 'backend/lib/config/model';
|
|
2
|
+
import { satisfies } from 'effect/Function';
|
|
3
|
+
import { config as publicConfig } from 'public/config';
|
|
4
|
+
import { LooseAutocomplete } from 'public/lib/models/helpers';
|
|
5
|
+
|
|
6
|
+
import { authzConfig } from './authz';
|
|
7
|
+
import { environment } from './env';
|
|
8
|
+
import { mailConfig } from './mail';
|
|
9
|
+
import { natsConfig } from './nats';
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
export const config = satisfies<BackendConfig>()({
|
|
13
|
+
...publicConfig,
|
|
14
|
+
...environment,
|
|
15
|
+
authz: authzConfig,
|
|
16
|
+
mail: mailConfig,
|
|
17
|
+
nats: natsConfig,
|
|
18
|
+
development: process.env.SEGMENT === 'dev',
|
|
19
|
+
collections: ['organizations'],
|
|
20
|
+
secrets: [ 'jwtSecret', 'velo-sync', 'nats-creds', 'license-service-key', 'smtp-user', 'smtp-password' ],
|
|
21
|
+
|
|
22
|
+
} as const);
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
export type ConfigSchema = typeof config;
|
|
26
|
+
export type SecretNames = LooseAutocomplete<typeof config.secrets[number]>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MailConfig } from 'backend/lib/config/model';
|
|
2
|
+
import { satisfies } from 'effect/Function';
|
|
3
|
+
|
|
4
|
+
export const mailConfig = satisfies<MailConfig>()({
|
|
5
|
+
dispatchMail: process.env.SEGMENT === 'dev'? 'gradlon@integral-systems.ch' : 'info@integrale-akademie.ch',
|
|
6
|
+
smtpServer: 'smtp.gmail.com',
|
|
7
|
+
smtpPort: 587,
|
|
8
|
+
smtpSecure: false,
|
|
9
|
+
smtpReplyTo: 'info@integrale-akademie.ch',
|
|
10
|
+
} as const);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { satisfies } from 'effect/Function';
|
|
2
|
+
import { PublicEnvironment } from 'public/lib/config/model';
|
|
3
|
+
|
|
4
|
+
export const environment = satisfies<PublicEnvironment>()({
|
|
5
|
+
gitTag: 'development',
|
|
6
|
+
debug: true,
|
|
7
|
+
} as const);
|
|
8
|
+
|
|
9
|
+
export type Environment = typeof environment;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { satisfies } from 'effect/Function';
|
|
2
|
+
import { Effect, Schedule } from 'effect/index';
|
|
3
|
+
import { PublicConfig } from 'public/lib/config/model';
|
|
4
|
+
import { parseError } from 'public/lib/error';
|
|
5
|
+
import { isDataError } from 'public/lib/error/data';
|
|
6
|
+
|
|
7
|
+
import { environment } from './env';
|
|
8
|
+
import { defaultLocale } from './locales';
|
|
9
|
+
|
|
10
|
+
const simpleSchedule = Schedule.fromDelays(50, 100, 200, 400, 800);
|
|
11
|
+
|
|
12
|
+
const advancedSchedule = Schedule.intersect(
|
|
13
|
+
Schedule.addDelay(
|
|
14
|
+
Schedule.recurWhileEffect((e) =>
|
|
15
|
+
Effect.gen(function* () {
|
|
16
|
+
if (typeof e === 'object' && e !== null && 'cause' in e) {
|
|
17
|
+
if (isDataError(e.cause)) {
|
|
18
|
+
const errorCodes = [
|
|
19
|
+
'WDE0028',
|
|
20
|
+
'WDE0053',
|
|
21
|
+
'WDE0054',
|
|
22
|
+
'WDE0055',
|
|
23
|
+
'WDE0110',
|
|
24
|
+
'WDE0115',
|
|
25
|
+
'WDE0116',
|
|
26
|
+
'WDE0128',
|
|
27
|
+
'WDE0149',
|
|
28
|
+
'WDE0178',
|
|
29
|
+
'WDE0180',
|
|
30
|
+
];
|
|
31
|
+
if (errorCodes.includes(e.cause.code)) {
|
|
32
|
+
yield* Effect.logWarning('Retrying due to known error:', e);
|
|
33
|
+
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
yield* Effect.logDebug('Not retrying due to error:', parseError(e));
|
|
40
|
+
|
|
41
|
+
return false;
|
|
42
|
+
}),
|
|
43
|
+
),
|
|
44
|
+
() => 50,
|
|
45
|
+
),
|
|
46
|
+
Schedule.fromDelays(100, 200, 400, 800, 1600, 2000),
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
export enum Roles {
|
|
50
|
+
SUPER_ADMIN = 'super_admin',
|
|
51
|
+
OWNER = 'owner',
|
|
52
|
+
ADMIN = 'admin',
|
|
53
|
+
MEMBER = 'member',
|
|
54
|
+
VISITOR = 'visitor',
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export const config = satisfies<PublicConfig<typeof Roles>>()({
|
|
58
|
+
...environment,
|
|
59
|
+
defaultTimeZone: 'Europe/Zurich',
|
|
60
|
+
defaultLanguage: defaultLocale,
|
|
61
|
+
languageField: 'language_id',
|
|
62
|
+
name: 'yeva',
|
|
63
|
+
stateVersion: '0.0.1',
|
|
64
|
+
persistErrors: false,
|
|
65
|
+
frontendDevMode: true,
|
|
66
|
+
simpleRetryPolicy: simpleSchedule,
|
|
67
|
+
advancedRetryPolicy: advancedSchedule,
|
|
68
|
+
roles: Roles,
|
|
69
|
+
urlSchema: {
|
|
70
|
+
targetPos: 1,
|
|
71
|
+
actionPos: 2,
|
|
72
|
+
resource: 0,
|
|
73
|
+
},
|
|
74
|
+
} as const);
|
|
75
|
+
|
|
76
|
+
export type ConfigSchema = typeof config;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { LanguageTag } from 'public/lib/models/common/locales.model';
|
|
2
|
+
|
|
3
|
+
export const languageTags: LanguageTag[] = [
|
|
4
|
+
{ isoCode: 'de-CH', short: 'de', name: 'Deutsch', id: '8fdb66f6-4bfd-47c9-a856-fbc2f19ece85' },
|
|
5
|
+
{ isoCode: 'en-US', short: 'en', name: 'English', id: '2a4ce40c-a478-4ff3-945b-09966f18a909' },
|
|
6
|
+
{ isoCode: 'fr-FR', short: 'fr', name: 'Français', id: 'e1b0bbeb-d38b-49c1-9b7a-83139ecc9435' },
|
|
7
|
+
{ isoCode: 'es-ES', short: 'es', name: 'Espanol', id: '8ec50660-fd3e-42e2-b5eb-8dd7aa861775' },
|
|
8
|
+
{ isoCode: 'it-IT', short: 'it', name: 'Italiano', id: '6fd616fa-8a78-414c-9d52-df082f11368f' },
|
|
9
|
+
];
|
|
10
|
+
|
|
11
|
+
export const localeToLanguageTag = new Map<string, LanguageTag>(
|
|
12
|
+
languageTags.map(lang => [lang.short, lang])
|
|
13
|
+
);
|
|
14
|
+
|
|
15
|
+
export const langISOMap = new Map<string, LanguageTag>(
|
|
16
|
+
languageTags.map(lang => [lang.isoCode, lang])
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
export const formLocalsToLocales = new Map<string, Locales[number]>([
|
|
20
|
+
['Deutsch', 'de'],
|
|
21
|
+
['Englisch', 'en'],
|
|
22
|
+
]);
|
|
23
|
+
|
|
24
|
+
export const locales = ['de', 'en', 'fr', 'es', 'it'] as const;
|
|
25
|
+
export const enabledLocales = ['de', 'en'] as const satisfies readonly Locales[number][];
|
|
26
|
+
export const defaultLocale: EnabledLocales[number] = 'en';
|
|
27
|
+
export const defaultLocalTag: LanguageTag = localeToLanguageTag.get(defaultLocale) as LanguageTag;
|
|
28
|
+
|
|
29
|
+
export type Locales = (typeof locales);
|
|
30
|
+
export type EnabledLocales = (typeof enabledLocales);
|