@mouryaamit/nx-polystack 0.0.0-stage → 1.0.1
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/LICENSE +21 -0
- package/README.md +77 -2
- package/USER-MANUAL.md +1968 -0
- package/dist/bin/cli.d.ts +1 -0
- package/dist/bin/cli.js +92 -0
- package/dist/bin/cli.js.map +1 -0
- package/dist/executors.json +32 -0
- package/dist/generators.json +47 -0
- package/dist/migrations.json +87 -0
- package/dist/runtime/env-secret.cjs +736 -0
- package/dist/src/cli/args.d.ts +18 -0
- package/dist/src/cli/args.js +67 -0
- package/dist/src/cli/args.js.map +1 -0
- package/dist/src/cli/commands/app.d.ts +3 -0
- package/dist/src/cli/commands/app.js +108 -0
- package/dist/src/cli/commands/app.js.map +1 -0
- package/dist/src/cli/commands/build.d.ts +8 -0
- package/dist/src/cli/commands/build.js +132 -0
- package/dist/src/cli/commands/build.js.map +1 -0
- package/dist/src/cli/commands/csp.d.ts +19 -0
- package/dist/src/cli/commands/csp.js +238 -0
- package/dist/src/cli/commands/csp.js.map +1 -0
- package/dist/src/cli/commands/encryption.d.ts +4 -0
- package/dist/src/cli/commands/encryption.js +261 -0
- package/dist/src/cli/commands/encryption.js.map +1 -0
- package/dist/src/cli/commands/env.d.ts +2 -0
- package/dist/src/cli/commands/env.js +74 -0
- package/dist/src/cli/commands/env.js.map +1 -0
- package/dist/src/cli/commands/hardening.d.ts +2 -0
- package/dist/src/cli/commands/hardening.js +176 -0
- package/dist/src/cli/commands/hardening.js.map +1 -0
- package/dist/src/cli/commands/index.d.ts +3 -0
- package/dist/src/cli/commands/index.js +45 -0
- package/dist/src/cli/commands/index.js.map +1 -0
- package/dist/src/cli/commands/infra.d.ts +25 -0
- package/dist/src/cli/commands/infra.js +85 -0
- package/dist/src/cli/commands/infra.js.map +1 -0
- package/dist/src/cli/commands/internal-migrate.d.ts +3 -0
- package/dist/src/cli/commands/internal-migrate.js +65 -0
- package/dist/src/cli/commands/internal-migrate.js.map +1 -0
- package/dist/src/cli/commands/lib.d.ts +2 -0
- package/dist/src/cli/commands/lib.js +70 -0
- package/dist/src/cli/commands/lib.js.map +1 -0
- package/dist/src/cli/commands/llm.d.ts +2 -0
- package/dist/src/cli/commands/llm.js +46 -0
- package/dist/src/cli/commands/llm.js.map +1 -0
- package/dist/src/cli/commands/migrate.d.ts +2 -0
- package/dist/src/cli/commands/migrate.js +230 -0
- package/dist/src/cli/commands/migrate.js.map +1 -0
- package/dist/src/cli/commands/new.d.ts +6 -0
- package/dist/src/cli/commands/new.js +97 -0
- package/dist/src/cli/commands/new.js.map +1 -0
- package/dist/src/cli/commands/preset.d.ts +2 -0
- package/dist/src/cli/commands/preset.js +47 -0
- package/dist/src/cli/commands/preset.js.map +1 -0
- package/dist/src/cli/commands/release.d.ts +3 -0
- package/dist/src/cli/commands/release.js +83 -0
- package/dist/src/cli/commands/release.js.map +1 -0
- package/dist/src/cli/commands/shared.d.ts +3 -0
- package/dist/src/cli/commands/shared.js +55 -0
- package/dist/src/cli/commands/shared.js.map +1 -0
- package/dist/src/cli/commands/update.d.ts +11 -0
- package/dist/src/cli/commands/update.js +120 -0
- package/dist/src/cli/commands/update.js.map +1 -0
- package/dist/src/cli/context.d.ts +18 -0
- package/dist/src/cli/context.js +66 -0
- package/dist/src/cli/context.js.map +1 -0
- package/dist/src/cli/exec.d.ts +9 -0
- package/dist/src/cli/exec.js +34 -0
- package/dist/src/cli/exec.js.map +1 -0
- package/dist/src/cli/help.d.ts +1 -0
- package/dist/src/cli/help.js +291 -0
- package/dist/src/cli/help.js.map +1 -0
- package/dist/src/cli/install-source.d.ts +16 -0
- package/dist/src/cli/install-source.js +49 -0
- package/dist/src/cli/install-source.js.map +1 -0
- package/dist/src/cli/launcher.d.ts +32 -0
- package/dist/src/cli/launcher.js +168 -0
- package/dist/src/cli/launcher.js.map +1 -0
- package/dist/src/cli/migrations.d.ts +25 -0
- package/dist/src/cli/migrations.js +35 -0
- package/dist/src/cli/migrations.js.map +1 -0
- package/dist/src/cli/run-tree.d.ts +9 -0
- package/dist/src/cli/run-tree.js +32 -0
- package/dist/src/cli/run-tree.js.map +1 -0
- package/dist/src/cli/types.d.ts +18 -0
- package/dist/src/cli/types.js +12 -0
- package/dist/src/cli/types.js.map +1 -0
- package/dist/src/cli/update-plan.d.ts +15 -0
- package/dist/src/cli/update-plan.js +40 -0
- package/dist/src/cli/update-plan.js.map +1 -0
- package/dist/src/cli/versions.d.ts +26 -0
- package/dist/src/cli/versions.js +83 -0
- package/dist/src/cli/versions.js.map +1 -0
- package/dist/src/executors/build/executor.d.ts +19 -0
- package/dist/src/executors/build/executor.js +251 -0
- package/dist/src/executors/build/executor.js.map +1 -0
- package/dist/src/executors/build/schema.d.ts +42 -0
- package/dist/src/executors/build/schema.json +104 -0
- package/dist/src/executors/capacitor/executor.d.ts +8 -0
- package/dist/src/executors/capacitor/executor.js +45 -0
- package/dist/src/executors/capacitor/executor.js.map +1 -0
- package/dist/src/executors/capacitor/schema.d.ts +10 -0
- package/dist/src/executors/capacitor/schema.json +24 -0
- package/dist/src/executors/clean/executor.d.ts +19 -0
- package/dist/src/executors/clean/executor.js +134 -0
- package/dist/src/executors/clean/executor.js.map +1 -0
- package/dist/src/executors/clean/schema.d.ts +6 -0
- package/dist/src/executors/clean/schema.json +21 -0
- package/dist/src/executors/flutter-build/executor.d.ts +8 -0
- package/dist/src/executors/flutter-build/executor.js +70 -0
- package/dist/src/executors/flutter-build/executor.js.map +1 -0
- package/dist/src/executors/flutter-build/schema.d.ts +10 -0
- package/dist/src/executors/flutter-build/schema.json +44 -0
- package/dist/src/executors/flutter-export/executor.d.ts +8 -0
- package/dist/src/executors/flutter-export/executor.js +36 -0
- package/dist/src/executors/flutter-export/executor.js.map +1 -0
- package/dist/src/executors/flutter-export/schema.d.ts +6 -0
- package/dist/src/executors/flutter-export/schema.json +28 -0
- package/dist/src/generators/app/files/angular/.eslintrc.json__template__ +28 -0
- package/dist/src/generators/app/files/angular/csp-allowlist.json__template__ +1 -0
- package/dist/src/generators/app/files/angular/server/README.md__template__ +31 -0
- package/dist/src/generators/app/files/angular/src/app/app-routing.module.ts__template__ +10 -0
- package/dist/src/generators/app/files/angular/src/app/app.component.html__template__ +4 -0
- package/dist/src/generators/app/files/angular/src/app/app.component.scss__template__ +1 -0
- package/dist/src/generators/app/files/angular/src/app/app.component.ts__template__ +9 -0
- package/dist/src/generators/app/files/angular/src/app/app.module.ts__template__ +13 -0
- package/dist/src/generators/app/files/angular/src/index.html__template__ +12 -0
- package/dist/src/generators/app/files/angular/src/main.ts__template__ +16 -0
- package/dist/src/generators/app/files/angular/src/styles.scss__template__ +1 -0
- package/dist/src/generators/app/files/angular/tsconfig.app.json__template__ +10 -0
- package/dist/src/generators/app/files/angular/tsconfig.json__template__ +25 -0
- package/dist/src/generators/app/files/angular/tsconfig.spec.json__template__ +8 -0
- package/dist/src/generators/app/files/flutter/.gitignore__template__ +10 -0
- package/dist/src/generators/app/files/flutter/analysis_options.yaml__template__ +8 -0
- package/dist/src/generators/app/files/flutter/lib/main.dart__template__ +23 -0
- package/dist/src/generators/app/files/flutter/pubspec.yaml__template__ +26 -0
- package/dist/src/generators/app/files/flutter/server/nginx.conf__template__ +35 -0
- package/dist/src/generators/app/files/ionic/.gitignore__template__ +7 -0
- package/dist/src/generators/app/files/ionic/capacitor.config.ts__template__ +19 -0
- package/dist/src/generators/app/files/ionic/package.json__template__ +14 -0
- package/dist/src/generators/app/files/ionic/src/app/app.component.html__template__ +3 -0
- package/dist/src/generators/app/files/ionic/src/app/app.component.scss__template__ +0 -0
- package/dist/src/generators/app/files/ionic/src/app/app.module.ts__template__ +16 -0
- package/dist/src/generators/app/files/ionic/src/index.html__template__ +17 -0
- package/dist/src/generators/app/files/ionic/src/styles.scss__template__ +12 -0
- package/dist/src/generators/app/generator.d.ts +15 -0
- package/dist/src/generators/app/generator.js +363 -0
- package/dist/src/generators/app/generator.js.map +1 -0
- package/dist/src/generators/app/schema.d.ts +19 -0
- package/dist/src/generators/app/schema.json +77 -0
- package/dist/src/generators/env/generator.d.ts +3 -0
- package/dist/src/generators/env/generator.js +454 -0
- package/dist/src/generators/env/generator.js.map +1 -0
- package/dist/src/generators/env/schema.d.ts +18 -0
- package/dist/src/generators/env/schema.json +47 -0
- package/dist/src/generators/infra/files/ci/commitlint/commitlint.config.js__template__ +6 -0
- package/dist/src/generators/infra/files/ci/common/tools/config/allowed-cycles.json__template__ +1 -0
- package/dist/src/generators/infra/files/ci/common/tools/scripts/check-cycles.js__template__ +201 -0
- package/dist/src/generators/infra/files/ci/github-actions/.github/workflows/ci.yml__template__ +68 -0
- package/dist/src/generators/infra/files/ci/github-actions/.github/workflows/pr-title.yml__template__ +36 -0
- package/dist/src/generators/infra/files/ci/jenkins/Jenkinsfile__template__ +45 -0
- package/dist/src/generators/infra/files/docs/.github/ISSUE_TEMPLATE/bug.yml__template__ +39 -0
- package/dist/src/generators/infra/files/docs/.github/ISSUE_TEMPLATE/config.yml__template__ +1 -0
- package/dist/src/generators/infra/files/docs/.github/ISSUE_TEMPLATE/feature.yml__template__ +23 -0
- package/dist/src/generators/infra/files/docs/.github/PULL_REQUEST_TEMPLATE.md__template__ +23 -0
- package/dist/src/generators/infra/files/docs/CODE_OF_CONDUCT.md__template__ +18 -0
- package/dist/src/generators/infra/files/docs/CONTRIBUTING.md__template__ +61 -0
- package/dist/src/generators/infra/files/docs/SECURITY.md__template__ +25 -0
- package/dist/src/generators/infra/files/quality/.husky/pre-push__template__ +2 -0
- package/dist/src/generators/infra/files/quality/.secretlintignore__template__ +7 -0
- package/dist/src/generators/infra/files/quality/.secretlintrc.json__template__ +7 -0
- package/dist/src/generators/infra/files/quality/knip.json__template__ +9 -0
- package/dist/src/generators/infra/files/upgrades/.github/workflows/dependency-upgrade.yml__template__ +80 -0
- package/dist/src/generators/infra/generator.d.ts +60 -0
- package/dist/src/generators/infra/generator.js +356 -0
- package/dist/src/generators/infra/generator.js.map +1 -0
- package/dist/src/generators/infra/options.d.ts +28 -0
- package/dist/src/generators/infra/options.js +80 -0
- package/dist/src/generators/infra/options.js.map +1 -0
- package/dist/src/generators/infra/schema.d.ts +19 -0
- package/dist/src/generators/infra/schema.json +59 -0
- package/dist/src/generators/lib/angular-lib.d.ts +27 -0
- package/dist/src/generators/lib/angular-lib.js +85 -0
- package/dist/src/generators/lib/angular-lib.js.map +1 -0
- package/dist/src/generators/lib/files/angular/component/src/index.ts__template__ +2 -0
- package/dist/src/generators/lib/files/angular/component/src/lib/__fileName__/__fileName__.component.html__template__ +1 -0
- package/dist/src/generators/lib/files/angular/component/src/lib/__fileName__/__fileName__.component.scss__template__ +3 -0
- package/dist/src/generators/lib/files/angular/component/src/lib/__fileName__/__fileName__.component.ts__template__ +9 -0
- package/dist/src/generators/lib/files/angular/component/src/lib/__fileName__.module.ts__template__ +11 -0
- package/dist/src/generators/lib/files/angular/config/.eslintrc.json__template__ +32 -0
- package/dist/src/generators/lib/files/angular/config/tsconfig.json__template__ +22 -0
- package/dist/src/generators/lib/files/angular/config/tsconfig.lib.json__template__ +12 -0
- package/dist/src/generators/lib/files/assets/README.md__template__ +13 -0
- package/dist/src/generators/lib/files/design-tokens/README.md__template__ +90 -0
- package/dist/src/generators/lib/files/design-tokens/generated/dart/pubspec.yaml__template__ +11 -0
- package/dist/src/generators/lib/files/design-tokens/src/index.ts__template__ +1 -0
- package/dist/src/generators/lib/files/design-tokens/style-dictionary.config.js__template__ +41 -0
- package/dist/src/generators/lib/files/flutter/.gitignore__template__ +7 -0
- package/dist/src/generators/lib/files/flutter/analysis_options.yaml__template__ +6 -0
- package/dist/src/generators/lib/files/flutter/lib/__snakeName__.dart__template__ +1 -0
- package/dist/src/generators/lib/files/flutter/lib/src/__snakeName__.dart__template__ +6 -0
- package/dist/src/generators/lib/files/flutter/pubspec.yaml__template__ +18 -0
- package/dist/src/generators/lib/files/flutter/test/__snakeName___test.dart__template__ +8 -0
- package/dist/src/generators/lib/files/ionic/src/index.ts__template__ +2 -0
- package/dist/src/generators/lib/files/ionic/src/lib/__fileName__/__fileName__.page.html__template__ +9 -0
- package/dist/src/generators/lib/files/ionic/src/lib/__fileName__/__fileName__.page.scss__template__ +3 -0
- package/dist/src/generators/lib/files/ionic/src/lib/__fileName__/__fileName__.page.ts__template__ +9 -0
- package/dist/src/generators/lib/files/ionic/src/lib/__fileName__.module.ts__template__ +12 -0
- package/dist/src/generators/lib/files/pii/README.md__template__ +35 -0
- package/dist/src/generators/lib/files/pii/src/index.ts__template__ +5 -0
- package/dist/src/generators/lib/files/pii/src/lib/pii-mask.directive.ts__template__ +30 -0
- package/dist/src/generators/lib/files/pii/src/lib/pii-mask.module.ts__template__ +17 -0
- package/dist/src/generators/lib/files/pii/src/lib/pii-mask.options.ts__template__ +6 -0
- package/dist/src/generators/lib/files/pii/src/lib/pii-mask.pipe.ts__template__ +14 -0
- package/dist/src/generators/lib/files/pii/src/lib/pii-mask.ts__template__ +117 -0
- package/dist/src/generators/lib/files/session/README.md__template__ +39 -0
- package/dist/src/generators/lib/files/session/src/index.ts__template__ +5 -0
- package/dist/src/generators/lib/files/session/src/lib/session-clock.ts__template__ +113 -0
- package/dist/src/generators/lib/files/session/src/lib/session-timeout.config.ts__template__ +8 -0
- package/dist/src/generators/lib/files/session/src/lib/session-timeout.module.ts__template__ +23 -0
- package/dist/src/generators/lib/files/session/src/lib/session-timeout.service.ts__template__ +289 -0
- package/dist/src/generators/lib/files/session/src/lib/session-warning/session-warning.component.html__template__ +21 -0
- package/dist/src/generators/lib/files/session/src/lib/session-warning/session-warning.component.scss__template__ +40 -0
- package/dist/src/generators/lib/files/session/src/lib/session-warning/session-warning.component.ts__template__ +105 -0
- package/dist/src/generators/lib/files/state/ngrx/README.md__template__ +33 -0
- package/dist/src/generators/lib/files/state/ngrx/src/index.ts__template__ +6 -0
- package/dist/src/generators/lib/files/state/ngrx/src/lib/__fileName__-state.module.ts__template__ +18 -0
- package/dist/src/generators/lib/files/state/ngrx/src/lib/__fileName__.actions.ts__template__ +12 -0
- package/dist/src/generators/lib/files/state/ngrx/src/lib/__fileName__.effects.ts__template__ +26 -0
- package/dist/src/generators/lib/files/state/ngrx/src/lib/__fileName__.models.ts__template__ +4 -0
- package/dist/src/generators/lib/files/state/ngrx/src/lib/__fileName__.reducer.ts__template__ +33 -0
- package/dist/src/generators/lib/files/state/ngrx/src/lib/__fileName__.selectors.ts__template__ +14 -0
- package/dist/src/generators/lib/files/state/simple-service/README.md__template__ +20 -0
- package/dist/src/generators/lib/files/state/simple-service/src/index.ts__template__ +2 -0
- package/dist/src/generators/lib/files/state/simple-service/src/lib/__fileName__.store.ts__template__ +58 -0
- package/dist/src/generators/lib/files/state/simple-service/src/lib/store.ts__template__ +34 -0
- package/dist/src/generators/lib/files/styles/README.md__template__ +39 -0
- package/dist/src/generators/lib/files/styles/src/_index.scss__template__ +3 -0
- package/dist/src/generators/lib/files/styles/src/mixins/_index.scss__template__ +13 -0
- package/dist/src/generators/lib/files/styles/src/themes/_index.scss__template__ +20 -0
- package/dist/src/generators/lib/files/styles/src/tokens/_index.scss__template__ +27 -0
- package/dist/src/generators/lib/files/ts/config/.eslintrc.json__template__ +10 -0
- package/dist/src/generators/lib/files/ts/config/tsconfig.json__template__ +14 -0
- package/dist/src/generators/lib/files/ts/config/tsconfig.lib.json__template__ +10 -0
- package/dist/src/generators/lib/files/ts/sample/src/index.ts__template__ +1 -0
- package/dist/src/generators/lib/files/ts/sample/src/lib/__fileName__.ts__template__ +4 -0
- package/dist/src/generators/lib/generator.d.ts +3 -0
- package/dist/src/generators/lib/generator.js +53 -0
- package/dist/src/generators/lib/generator.js.map +1 -0
- package/dist/src/generators/lib/lib-utils.d.ts +72 -0
- package/dist/src/generators/lib/lib-utils.js +170 -0
- package/dist/src/generators/lib/lib-utils.js.map +1 -0
- package/dist/src/generators/lib/schema.d.ts +31 -0
- package/dist/src/generators/lib/schema.json +63 -0
- package/dist/src/generators/lib/style-dictionary.d.ts +36 -0
- package/dist/src/generators/lib/style-dictionary.js +183 -0
- package/dist/src/generators/lib/style-dictionary.js.map +1 -0
- package/dist/src/generators/lib/types/angular.d.ts +2 -0
- package/dist/src/generators/lib/types/angular.js +20 -0
- package/dist/src/generators/lib/types/angular.js.map +1 -0
- package/dist/src/generators/lib/types/assets.d.ts +2 -0
- package/dist/src/generators/lib/types/assets.js +20 -0
- package/dist/src/generators/lib/types/assets.js.map +1 -0
- package/dist/src/generators/lib/types/design-tokens.d.ts +10 -0
- package/dist/src/generators/lib/types/design-tokens.js +78 -0
- package/dist/src/generators/lib/types/design-tokens.js.map +1 -0
- package/dist/src/generators/lib/types/flutter.d.ts +2 -0
- package/dist/src/generators/lib/types/flutter.js +28 -0
- package/dist/src/generators/lib/types/flutter.js.map +1 -0
- package/dist/src/generators/lib/types/index.d.ts +8 -0
- package/dist/src/generators/lib/types/index.js +31 -0
- package/dist/src/generators/lib/types/index.js.map +1 -0
- package/dist/src/generators/lib/types/ionic.d.ts +4 -0
- package/dist/src/generators/lib/types/ionic.js +35 -0
- package/dist/src/generators/lib/types/ionic.js.map +1 -0
- package/dist/src/generators/lib/types/pii.d.ts +3 -0
- package/dist/src/generators/lib/types/pii.js +19 -0
- package/dist/src/generators/lib/types/pii.js.map +1 -0
- package/dist/src/generators/lib/types/session.d.ts +3 -0
- package/dist/src/generators/lib/types/session.js +21 -0
- package/dist/src/generators/lib/types/session.js.map +1 -0
- package/dist/src/generators/lib/types/state.d.ts +5 -0
- package/dist/src/generators/lib/types/state.js +48 -0
- package/dist/src/generators/lib/types/state.js.map +1 -0
- package/dist/src/generators/lib/types/styles.d.ts +2 -0
- package/dist/src/generators/lib/types/styles.js +19 -0
- package/dist/src/generators/lib/types/styles.js.map +1 -0
- package/dist/src/generators/lib/types/ts.d.ts +5 -0
- package/dist/src/generators/lib/types/ts.js +30 -0
- package/dist/src/generators/lib/types/ts.js.map +1 -0
- package/dist/src/generators/llm/generator.d.ts +8 -0
- package/dist/src/generators/llm/generator.js +13 -0
- package/dist/src/generators/llm/generator.js.map +1 -0
- package/dist/src/generators/llm/schema.d.ts +4 -0
- package/dist/src/generators/llm/schema.json +16 -0
- package/dist/src/generators/migrate/adapters/angular-cli.d.ts +82 -0
- package/dist/src/generators/migrate/adapters/angular-cli.js +439 -0
- package/dist/src/generators/migrate/adapters/angular-cli.js.map +1 -0
- package/dist/src/generators/migrate/adapters/angular-workspace.d.ts +28 -0
- package/dist/src/generators/migrate/adapters/angular-workspace.js +397 -0
- package/dist/src/generators/migrate/adapters/angular-workspace.js.map +1 -0
- package/dist/src/generators/migrate/adapters/external.d.ts +23 -0
- package/dist/src/generators/migrate/adapters/external.js +230 -0
- package/dist/src/generators/migrate/adapters/external.js.map +1 -0
- package/dist/src/generators/migrate/adapters/flutter.d.ts +26 -0
- package/dist/src/generators/migrate/adapters/flutter.js +176 -0
- package/dist/src/generators/migrate/adapters/flutter.js.map +1 -0
- package/dist/src/generators/migrate/adapters/index.d.ts +34 -0
- package/dist/src/generators/migrate/adapters/index.js +136 -0
- package/dist/src/generators/migrate/adapters/index.js.map +1 -0
- package/dist/src/generators/migrate/adapters/ionic.d.ts +17 -0
- package/dist/src/generators/migrate/adapters/ionic.js +137 -0
- package/dist/src/generators/migrate/adapters/ionic.js.map +1 -0
- package/dist/src/generators/migrate/adapters/npm-workspaces.d.ts +23 -0
- package/dist/src/generators/migrate/adapters/npm-workspaces.js +734 -0
- package/dist/src/generators/migrate/adapters/npm-workspaces.js.map +1 -0
- package/dist/src/generators/migrate/adapters/nx-workspace.d.ts +47 -0
- package/dist/src/generators/migrate/adapters/nx-workspace.js +1037 -0
- package/dist/src/generators/migrate/adapters/nx-workspace.js.map +1 -0
- package/dist/src/generators/migrate/adapters/scaffold.d.ts +2 -0
- package/dist/src/generators/migrate/adapters/scaffold.js +200 -0
- package/dist/src/generators/migrate/adapters/scaffold.js.map +1 -0
- package/dist/src/generators/migrate/adapters/types.d.ts +184 -0
- package/dist/src/generators/migrate/adapters/types.js +63 -0
- package/dist/src/generators/migrate/adapters/types.js.map +1 -0
- package/dist/src/generators/migrate/angular-code-scan.d.ts +6 -0
- package/dist/src/generators/migrate/angular-code-scan.js +150 -0
- package/dist/src/generators/migrate/angular-code-scan.js.map +1 -0
- package/dist/src/generators/migrate/angular-config-files.d.ts +49 -0
- package/dist/src/generators/migrate/angular-config-files.js +158 -0
- package/dist/src/generators/migrate/angular-config-files.js.map +1 -0
- package/dist/src/generators/migrate/angular-project-json.d.ts +73 -0
- package/dist/src/generators/migrate/angular-project-json.js +352 -0
- package/dist/src/generators/migrate/angular-project-json.js.map +1 -0
- package/dist/src/generators/migrate/angular-workspace/aliases.d.ts +30 -0
- package/dist/src/generators/migrate/angular-workspace/aliases.js +73 -0
- package/dist/src/generators/migrate/angular-workspace/aliases.js.map +1 -0
- package/dist/src/generators/migrate/angular-workspace/eslint.d.ts +8 -0
- package/dist/src/generators/migrate/angular-workspace/eslint.js +38 -0
- package/dist/src/generators/migrate/angular-workspace/eslint.js.map +1 -0
- package/dist/src/generators/migrate/angular-workspace/ng-package.d.ts +4 -0
- package/dist/src/generators/migrate/angular-workspace/ng-package.js +16 -0
- package/dist/src/generators/migrate/angular-workspace/ng-package.js.map +1 -0
- package/dist/src/generators/migrate/angular-workspace/source.d.ts +15 -0
- package/dist/src/generators/migrate/angular-workspace/source.js +108 -0
- package/dist/src/generators/migrate/angular-workspace/source.js.map +1 -0
- package/dist/src/generators/migrate/angular17.d.ts +45 -0
- package/dist/src/generators/migrate/angular17.js +495 -0
- package/dist/src/generators/migrate/angular17.js.map +1 -0
- package/dist/src/generators/migrate/batch.d.ts +29 -0
- package/dist/src/generators/migrate/batch.js +211 -0
- package/dist/src/generators/migrate/batch.js.map +1 -0
- package/dist/src/generators/migrate/copy.d.ts +60 -0
- package/dist/src/generators/migrate/copy.js +224 -0
- package/dist/src/generators/migrate/copy.js.map +1 -0
- package/dist/src/generators/migrate/dependencies.d.ts +38 -0
- package/dist/src/generators/migrate/dependencies.js +196 -0
- package/dist/src/generators/migrate/dependencies.js.map +1 -0
- package/dist/src/generators/migrate/generator.d.ts +9 -0
- package/dist/src/generators/migrate/generator.js +347 -0
- package/dist/src/generators/migrate/generator.js.map +1 -0
- package/dist/src/generators/migrate/imports/rewrite.d.ts +46 -0
- package/dist/src/generators/migrate/imports/rewrite.js +382 -0
- package/dist/src/generators/migrate/imports/rewrite.js.map +1 -0
- package/dist/src/generators/migrate/ionic/capacitor-config.d.ts +24 -0
- package/dist/src/generators/migrate/ionic/capacitor-config.js +113 -0
- package/dist/src/generators/migrate/ionic/capacitor-config.js.map +1 -0
- package/dist/src/generators/migrate/ionic/packages.d.ts +34 -0
- package/dist/src/generators/migrate/ionic/packages.js +92 -0
- package/dist/src/generators/migrate/ionic/packages.js.map +1 -0
- package/dist/src/generators/migrate/ionic/shape.d.ts +32 -0
- package/dist/src/generators/migrate/ionic/shape.js +221 -0
- package/dist/src/generators/migrate/ionic/shape.js.map +1 -0
- package/dist/src/generators/migrate/ionic/skip.d.ts +3 -0
- package/dist/src/generators/migrate/ionic/skip.js +25 -0
- package/dist/src/generators/migrate/ionic/skip.js.map +1 -0
- package/dist/src/generators/migrate/names.d.ts +3 -0
- package/dist/src/generators/migrate/names.js +21 -0
- package/dist/src/generators/migrate/names.js.map +1 -0
- package/dist/src/generators/migrate/npm-deps.d.ts +28 -0
- package/dist/src/generators/migrate/npm-deps.js +63 -0
- package/dist/src/generators/migrate/npm-deps.js.map +1 -0
- package/dist/src/generators/migrate/npm-workspaces/pnpm-yaml.d.ts +10 -0
- package/dist/src/generators/migrate/npm-workspaces/pnpm-yaml.js +246 -0
- package/dist/src/generators/migrate/npm-workspaces/pnpm-yaml.js.map +1 -0
- package/dist/src/generators/migrate/npm-workspaces/source.d.ts +46 -0
- package/dist/src/generators/migrate/npm-workspaces/source.js +253 -0
- package/dist/src/generators/migrate/npm-workspaces/source.js.map +1 -0
- package/dist/src/generators/migrate/nx/build-scripts.d.ts +22 -0
- package/dist/src/generators/migrate/nx/build-scripts.js +147 -0
- package/dist/src/generators/migrate/nx/build-scripts.js.map +1 -0
- package/dist/src/generators/migrate/nx/detect.d.ts +3 -0
- package/dist/src/generators/migrate/nx/detect.js +43 -0
- package/dist/src/generators/migrate/nx/detect.js.map +1 -0
- package/dist/src/generators/migrate/nx/env-encryption.d.ts +35 -0
- package/dist/src/generators/migrate/nx/env-encryption.js +423 -0
- package/dist/src/generators/migrate/nx/env-encryption.js.map +1 -0
- package/dist/src/generators/migrate/nx/rewrite.d.ts +27 -0
- package/dist/src/generators/migrate/nx/rewrite.js +223 -0
- package/dist/src/generators/migrate/nx/rewrite.js.map +1 -0
- package/dist/src/generators/migrate/nx/selection.d.ts +25 -0
- package/dist/src/generators/migrate/nx/selection.js +173 -0
- package/dist/src/generators/migrate/nx/selection.js.map +1 -0
- package/dist/src/generators/migrate/nx/shared-folders.d.ts +58 -0
- package/dist/src/generators/migrate/nx/shared-folders.js +239 -0
- package/dist/src/generators/migrate/nx/shared-folders.js.map +1 -0
- package/dist/src/generators/migrate/nx/workspace-source.d.ts +58 -0
- package/dist/src/generators/migrate/nx/workspace-source.js +275 -0
- package/dist/src/generators/migrate/nx/workspace-source.js.map +1 -0
- package/dist/src/generators/migrate/pnpm.d.ts +42 -0
- package/dist/src/generators/migrate/pnpm.js +132 -0
- package/dist/src/generators/migrate/pnpm.js.map +1 -0
- package/dist/src/generators/migrate/report.d.ts +21 -0
- package/dist/src/generators/migrate/report.js +243 -0
- package/dist/src/generators/migrate/report.js.map +1 -0
- package/dist/src/generators/migrate/rollback/manifest.d.ts +84 -0
- package/dist/src/generators/migrate/rollback/manifest.js +162 -0
- package/dist/src/generators/migrate/rollback/manifest.js.map +1 -0
- package/dist/src/generators/migrate/rollback/recording-tree.d.ts +19 -0
- package/dist/src/generators/migrate/rollback/recording-tree.js +87 -0
- package/dist/src/generators/migrate/rollback/recording-tree.js.map +1 -0
- package/dist/src/generators/migrate/rollback/rollback.d.ts +29 -0
- package/dist/src/generators/migrate/rollback/rollback.js +271 -0
- package/dist/src/generators/migrate/rollback/rollback.js.map +1 -0
- package/dist/src/generators/migrate/schema.d.ts +41 -0
- package/dist/src/generators/migrate/schema.json +85 -0
- package/dist/src/generators/migrate/source.d.ts +26 -0
- package/dist/src/generators/migrate/source.js +70 -0
- package/dist/src/generators/migrate/source.js.map +1 -0
- package/dist/src/generators/preset/files/root/.editorconfig__template__ +15 -0
- package/dist/src/generators/preset/files/root/.eslintignore__template__ +2 -0
- package/dist/src/generators/preset/files/root/.eslintrc.json__template__ +38 -0
- package/dist/src/generators/preset/files/root/.gitattributes__template__ +12 -0
- package/dist/src/generators/preset/files/root/.gitignore__template__ +9 -0
- package/dist/src/generators/preset/files/root/.husky/commit-msg__template__ +1 -0
- package/dist/src/generators/preset/files/root/.husky/pre-commit__template__ +1 -0
- package/dist/src/generators/preset/files/root/.npmrc__template__ +4 -0
- package/dist/src/generators/preset/files/root/.nvmrc__template__ +1 -0
- package/dist/src/generators/preset/files/root/.prettierignore__template__ +6 -0
- package/dist/src/generators/preset/files/root/.prettierrc__template__ +7 -0
- package/dist/src/generators/preset/files/root/commitlint.config.js__template__ +6 -0
- package/dist/src/generators/preset/files/root/nx.json__template__ +30 -0
- package/dist/src/generators/preset/files/root/package.json__template__ +34 -0
- package/dist/src/generators/preset/files/root/tools/config/sri-cdn-allowlist.json__template__ +1 -0
- package/dist/src/generators/preset/files/root/tsconfig.base.json__template__ +18 -0
- package/dist/src/generators/preset/generator.d.ts +11 -0
- package/dist/src/generators/preset/generator.js +91 -0
- package/dist/src/generators/preset/generator.js.map +1 -0
- package/dist/src/generators/preset/schema.d.ts +20 -0
- package/dist/src/generators/preset/schema.json +86 -0
- package/dist/src/generators/shared-libs/generator.d.ts +4 -0
- package/dist/src/generators/shared-libs/generator.js +60 -0
- package/dist/src/generators/shared-libs/generator.js.map +1 -0
- package/dist/src/generators/shared-libs/schema.d.ts +6 -0
- package/dist/src/generators/shared-libs/schema.json +21 -0
- package/dist/src/index.d.ts +16 -0
- package/dist/src/index.js +20 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/lib/csp/allowlist.d.ts +64 -0
- package/dist/src/lib/csp/allowlist.js +126 -0
- package/dist/src/lib/csp/allowlist.js.map +1 -0
- package/dist/src/lib/csp/import.d.ts +52 -0
- package/dist/src/lib/csp/import.js +291 -0
- package/dist/src/lib/csp/import.js.map +1 -0
- package/dist/src/lib/csp/render.d.ts +19 -0
- package/dist/src/lib/csp/render.js +116 -0
- package/dist/src/lib/csp/render.js.map +1 -0
- package/dist/src/lib/env/derive.d.ts +38 -0
- package/dist/src/lib/env/derive.js +115 -0
- package/dist/src/lib/env/derive.js.map +1 -0
- package/dist/src/lib/env-encryption/backup.d.ts +40 -0
- package/dist/src/lib/env-encryption/backup.js +234 -0
- package/dist/src/lib/env-encryption/backup.js.map +1 -0
- package/dist/src/lib/env-encryption/config.d.ts +50 -0
- package/dist/src/lib/env-encryption/config.js +173 -0
- package/dist/src/lib/env-encryption/config.js.map +1 -0
- package/dist/src/lib/env-encryption/domains.d.ts +9 -0
- package/dist/src/lib/env-encryption/domains.js +52 -0
- package/dist/src/lib/env-encryption/domains.js.map +1 -0
- package/dist/src/lib/env-encryption/encrypt.d.ts +48 -0
- package/dist/src/lib/env-encryption/encrypt.js +407 -0
- package/dist/src/lib/env-encryption/encrypt.js.map +1 -0
- package/dist/src/lib/env-encryption/env-file.d.ts +72 -0
- package/dist/src/lib/env-encryption/env-file.js +395 -0
- package/dist/src/lib/env-encryption/env-file.js.map +1 -0
- package/dist/src/lib/env-encryption/gcm.d.ts +51 -0
- package/dist/src/lib/env-encryption/gcm.js +76 -0
- package/dist/src/lib/env-encryption/gcm.js.map +1 -0
- package/dist/src/lib/env-encryption/key-material.d.ts +53 -0
- package/dist/src/lib/env-encryption/key-material.js +148 -0
- package/dist/src/lib/env-encryption/key-material.js.map +1 -0
- package/dist/src/lib/env-encryption/placeholders.d.ts +15 -0
- package/dist/src/lib/env-encryption/placeholders.js +93 -0
- package/dist/src/lib/env-encryption/placeholders.js.map +1 -0
- package/dist/src/lib/env-encryption/prepare.d.ts +43 -0
- package/dist/src/lib/env-encryption/prepare.js +245 -0
- package/dist/src/lib/env-encryption/prepare.js.map +1 -0
- package/dist/src/lib/env-encryption/sensitive.d.ts +2 -0
- package/dist/src/lib/env-encryption/sensitive.js +180 -0
- package/dist/src/lib/env-encryption/sensitive.js.map +1 -0
- package/dist/src/lib/env-encryption/stamp.d.ts +2 -0
- package/dist/src/lib/env-encryption/stamp.js +52 -0
- package/dist/src/lib/env-encryption/stamp.js.map +1 -0
- package/dist/src/lib/env-encryption/switch-gcm.d.ts +43 -0
- package/dist/src/lib/env-encryption/switch-gcm.js +371 -0
- package/dist/src/lib/env-encryption/switch-gcm.js.map +1 -0
- package/dist/src/lib/env-encryption/workspace.d.ts +10 -0
- package/dist/src/lib/env-encryption/workspace.js +48 -0
- package/dist/src/lib/env-encryption/workspace.js.map +1 -0
- package/dist/src/lib/hardening/files.d.ts +17 -0
- package/dist/src/lib/hardening/files.js +43 -0
- package/dist/src/lib/hardening/files.js.map +1 -0
- package/dist/src/lib/hardening/integrity.d.ts +24 -0
- package/dist/src/lib/hardening/integrity.js +112 -0
- package/dist/src/lib/hardening/integrity.js.map +1 -0
- package/dist/src/lib/hardening/leak-check.d.ts +15 -0
- package/dist/src/lib/hardening/leak-check.js +100 -0
- package/dist/src/lib/hardening/leak-check.js.map +1 -0
- package/dist/src/lib/hardening/ngsw.d.ts +7 -0
- package/dist/src/lib/hardening/ngsw.js +55 -0
- package/dist/src/lib/hardening/ngsw.js.map +1 -0
- package/dist/src/lib/hardening/obfuscate.d.ts +36 -0
- package/dist/src/lib/hardening/obfuscate.js +153 -0
- package/dist/src/lib/hardening/obfuscate.js.map +1 -0
- package/dist/src/lib/hardening/options.d.ts +36 -0
- package/dist/src/lib/hardening/options.js +143 -0
- package/dist/src/lib/hardening/options.js.map +1 -0
- package/dist/src/lib/hardening/source-maps.d.ts +7 -0
- package/dist/src/lib/hardening/source-maps.js +37 -0
- package/dist/src/lib/hardening/source-maps.js.map +1 -0
- package/dist/src/lib/hardening/strip.d.ts +55 -0
- package/dist/src/lib/hardening/strip.js +178 -0
- package/dist/src/lib/hardening/strip.js.map +1 -0
- package/dist/src/lib/helpers/encrypt-env.d.ts +13 -0
- package/dist/src/lib/helpers/encrypt-env.js +33 -0
- package/dist/src/lib/helpers/encrypt-env.js.map +1 -0
- package/dist/src/lib/helpers/inject-meta.d.ts +14 -0
- package/dist/src/lib/helpers/inject-meta.js +49 -0
- package/dist/src/lib/helpers/inject-meta.js.map +1 -0
- package/dist/src/lib/helpers/inject-nonce.d.ts +7 -0
- package/dist/src/lib/helpers/inject-nonce.js +59 -0
- package/dist/src/lib/helpers/inject-nonce.js.map +1 -0
- package/dist/src/lib/helpers/inject-sri.d.ts +11 -0
- package/dist/src/lib/helpers/inject-sri.js +92 -0
- package/dist/src/lib/helpers/inject-sri.js.map +1 -0
- package/dist/src/lib/helpers/strip-exif.d.ts +9 -0
- package/dist/src/lib/helpers/strip-exif.js +52 -0
- package/dist/src/lib/helpers/strip-exif.js.map +1 -0
- package/dist/src/lib/release/plan.d.ts +45 -0
- package/dist/src/lib/release/plan.js +76 -0
- package/dist/src/lib/release/plan.js.map +1 -0
- package/dist/src/lib/release/run.d.ts +46 -0
- package/dist/src/lib/release/run.js +160 -0
- package/dist/src/lib/release/run.js.map +1 -0
- package/dist/src/lib/utils/angular-deps.d.ts +22 -0
- package/dist/src/lib/utils/angular-deps.js +108 -0
- package/dist/src/lib/utils/angular-deps.js.map +1 -0
- package/dist/src/lib/utils/angular-project.d.ts +52 -0
- package/dist/src/lib/utils/angular-project.js +168 -0
- package/dist/src/lib/utils/angular-project.js.map +1 -0
- package/dist/src/lib/utils/app-dir.d.ts +17 -0
- package/dist/src/lib/utils/app-dir.js +52 -0
- package/dist/src/lib/utils/app-dir.js.map +1 -0
- package/dist/src/lib/utils/base-href.d.ts +26 -0
- package/dist/src/lib/utils/base-href.js +60 -0
- package/dist/src/lib/utils/base-href.js.map +1 -0
- package/dist/src/lib/utils/ci-resolve.d.ts +10 -0
- package/dist/src/lib/utils/ci-resolve.js +50 -0
- package/dist/src/lib/utils/ci-resolve.js.map +1 -0
- package/dist/src/lib/utils/csp-nonce.d.ts +34 -0
- package/dist/src/lib/utils/csp-nonce.js +142 -0
- package/dist/src/lib/utils/csp-nonce.js.map +1 -0
- package/dist/src/lib/utils/dependencies.d.ts +25 -0
- package/dist/src/lib/utils/dependencies.js +71 -0
- package/dist/src/lib/utils/dependencies.js.map +1 -0
- package/dist/src/lib/utils/devkit-deps.d.ts +19 -0
- package/dist/src/lib/utils/devkit-deps.js +34 -0
- package/dist/src/lib/utils/devkit-deps.js.map +1 -0
- package/dist/src/lib/utils/env-files.d.ts +18 -0
- package/dist/src/lib/utils/env-files.js +41 -0
- package/dist/src/lib/utils/env-files.js.map +1 -0
- package/dist/src/lib/utils/filesystem.d.ts +7 -0
- package/dist/src/lib/utils/filesystem.js +20 -0
- package/dist/src/lib/utils/filesystem.js.map +1 -0
- package/dist/src/lib/utils/flutter-web.d.ts +7 -0
- package/dist/src/lib/utils/flutter-web.js +56 -0
- package/dist/src/lib/utils/flutter-web.js.map +1 -0
- package/dist/src/lib/utils/knip.d.ts +16 -0
- package/dist/src/lib/utils/knip.js +71 -0
- package/dist/src/lib/utils/knip.js.map +1 -0
- package/dist/src/lib/utils/lint-staged.d.ts +5 -0
- package/dist/src/lib/utils/lint-staged.js +34 -0
- package/dist/src/lib/utils/lint-staged.js.map +1 -0
- package/dist/src/lib/utils/llm-block.d.ts +88 -0
- package/dist/src/lib/utils/llm-block.js +457 -0
- package/dist/src/lib/utils/llm-block.js.map +1 -0
- package/dist/src/lib/utils/node-engine.d.ts +9 -0
- package/dist/src/lib/utils/node-engine.js +63 -0
- package/dist/src/lib/utils/node-engine.js.map +1 -0
- package/dist/src/lib/utils/npm-scripts.d.ts +7 -0
- package/dist/src/lib/utils/npm-scripts.js +28 -0
- package/dist/src/lib/utils/npm-scripts.js.map +1 -0
- package/dist/src/lib/utils/nx-targets.d.ts +3 -0
- package/dist/src/lib/utils/nx-targets.js +25 -0
- package/dist/src/lib/utils/nx-targets.js.map +1 -0
- package/dist/src/lib/utils/project-json-files.d.ts +23 -0
- package/dist/src/lib/utils/project-json-files.js +73 -0
- package/dist/src/lib/utils/project-json-files.js.map +1 -0
- package/dist/src/lib/utils/quality.d.ts +71 -0
- package/dist/src/lib/utils/quality.js +295 -0
- package/dist/src/lib/utils/quality.js.map +1 -0
- package/dist/src/lib/utils/serve-port.d.ts +28 -0
- package/dist/src/lib/utils/serve-port.js +73 -0
- package/dist/src/lib/utils/serve-port.js.map +1 -0
- package/dist/src/lib/utils/shared-libs.d.ts +37 -0
- package/dist/src/lib/utils/shared-libs.js +152 -0
- package/dist/src/lib/utils/shared-libs.js.map +1 -0
- package/dist/src/lib/utils/ts-paths.d.ts +3 -0
- package/dist/src/lib/utils/ts-paths.js +31 -0
- package/dist/src/lib/utils/ts-paths.js.map +1 -0
- package/dist/src/lib/utils/workspace.d.ts +3 -0
- package/dist/src/lib/utils/workspace.js +15 -0
- package/dist/src/lib/utils/workspace.js.map +1 -0
- package/dist/src/migrate-sdk.d.ts +31 -0
- package/dist/src/migrate-sdk.js +35 -0
- package/dist/src/migrate-sdk.js.map +1 -0
- package/dist/src/migrations/add-csp-nonce-import/add-csp-nonce-import.d.ts +2 -0
- package/dist/src/migrations/add-csp-nonce-import/add-csp-nonce-import.js +40 -0
- package/dist/src/migrations/add-csp-nonce-import/add-csp-nonce-import.js.map +1 -0
- package/dist/src/migrations/add-executor-peers/add-executor-peers.d.ts +6 -0
- package/dist/src/migrations/add-executor-peers/add-executor-peers.js +21 -0
- package/dist/src/migrations/add-executor-peers/add-executor-peers.js.map +1 -0
- package/dist/src/migrations/add-lib-build-dependencies/add-lib-build-dependencies.d.ts +7 -0
- package/dist/src/migrations/add-lib-build-dependencies/add-lib-build-dependencies.js +47 -0
- package/dist/src/migrations/add-lib-build-dependencies/add-lib-build-dependencies.js.map +1 -0
- package/dist/src/migrations/add-lint-dependencies/add-lint-dependencies.d.ts +6 -0
- package/dist/src/migrations/add-lint-dependencies/add-lint-dependencies.js +27 -0
- package/dist/src/migrations/add-lint-dependencies/add-lint-dependencies.js.map +1 -0
- package/dist/src/migrations/add-lint-staged-config/add-lint-staged-config.d.ts +7 -0
- package/dist/src/migrations/add-lint-staged-config/add-lint-staged-config.js +22 -0
- package/dist/src/migrations/add-lint-staged-config/add-lint-staged-config.js.map +1 -0
- package/dist/src/migrations/angular-release-target/angular-release-target.d.ts +3 -0
- package/dist/src/migrations/angular-release-target/angular-release-target.js +80 -0
- package/dist/src/migrations/angular-release-target/angular-release-target.js.map +1 -0
- package/dist/src/migrations/app-clean-and-port/app-clean-and-port.d.ts +7 -0
- package/dist/src/migrations/app-clean-and-port/app-clean-and-port.js +89 -0
- package/dist/src/migrations/app-clean-and-port/app-clean-and-port.js.map +1 -0
- package/dist/src/migrations/env-encryption-config/env-encryption-config.d.ts +7 -0
- package/dist/src/migrations/env-encryption-config/env-encryption-config.js +42 -0
- package/dist/src/migrations/env-encryption-config/env-encryption-config.js.map +1 -0
- package/dist/src/migrations/env-encryption-key-sources/env-encryption-key-sources.d.ts +3 -0
- package/dist/src/migrations/env-encryption-key-sources/env-encryption-key-sources.js +15 -0
- package/dist/src/migrations/env-encryption-key-sources/env-encryption-key-sources.js.map +1 -0
- package/dist/src/migrations/fix-lint-script/fix-lint-script.d.ts +7 -0
- package/dist/src/migrations/fix-lint-script/fix-lint-script.js +27 -0
- package/dist/src/migrations/fix-lint-script/fix-lint-script.js.map +1 -0
- package/dist/src/migrations/flutter-web-platform/flutter-web-platform.d.ts +8 -0
- package/dist/src/migrations/flutter-web-platform/flutter-web-platform.js +35 -0
- package/dist/src/migrations/flutter-web-platform/flutter-web-platform.js.map +1 -0
- package/dist/src/migrations/plugin-repo-dev/plugin-repo-dev.d.ts +9 -0
- package/dist/src/migrations/plugin-repo-dev/plugin-repo-dev.js +42 -0
- package/dist/src/migrations/plugin-repo-dev/plugin-repo-dev.js.map +1 -0
- package/dist/src/migrations/prepush-audit-warn-only/prepush-audit-warn-only.d.ts +8 -0
- package/dist/src/migrations/prepush-audit-warn-only/prepush-audit-warn-only.js +30 -0
- package/dist/src/migrations/prepush-audit-warn-only/prepush-audit-warn-only.js.map +1 -0
- package/dist/src/migrations/quality-checks/quality-checks.d.ts +7 -0
- package/dist/src/migrations/quality-checks/quality-checks.js +46 -0
- package/dist/src/migrations/quality-checks/quality-checks.js.map +1 -0
- package/dist/src/migrations/release-hardening/release-hardening.d.ts +8 -0
- package/dist/src/migrations/release-hardening/release-hardening.js +98 -0
- package/dist/src/migrations/release-hardening/release-hardening.js.map +1 -0
- package/dist/src/migrations/sharp-security-update/sharp-security-update.d.ts +10 -0
- package/dist/src/migrations/sharp-security-update/sharp-security-update.js +40 -0
- package/dist/src/migrations/sharp-security-update/sharp-security-update.js.map +1 -0
- package/migrate/package.json +5 -0
- package/package.json +120 -4
- package/runtime/csp-nonce.js +109 -0
- package/runtime/env-secret.d.ts +63 -0
- package/runtime/env-secret.mjs +698 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { GeneratorCallback, Tree } from '@nx/devkit';
|
|
2
|
+
import { EslintResult, LintStagedMode } from '../../lib/utils/quality';
|
|
3
|
+
import { CiProvider, FlutterMode, InfraPart, UpgradeSchedule, UpgradeScope } from './options';
|
|
4
|
+
import { InfraGeneratorSchema } from './schema.d';
|
|
5
|
+
/** check:prepush as v0.9.0 wrote it (audit first and blocking); see the 0.9.1 migration. */
|
|
6
|
+
export declare const PREPUSH_V0_9_0 = "npm audit --omit=dev --audit-level=high && secretlint \"**/*\"";
|
|
7
|
+
export declare const INFRA_SCRIPTS: {
|
|
8
|
+
readonly 'check:cycles': "node tools/scripts/check-cycles.js";
|
|
9
|
+
readonly 'stale-code': "knip --no-exit-code";
|
|
10
|
+
readonly 'check:prepush': string;
|
|
11
|
+
readonly 'check:audit': "npm audit --omit=dev --audit-level=high";
|
|
12
|
+
};
|
|
13
|
+
export interface InfraOptions {
|
|
14
|
+
parts: InfraPart[];
|
|
15
|
+
ci: CiProvider[];
|
|
16
|
+
ciCache: boolean;
|
|
17
|
+
flutter: FlutterMode;
|
|
18
|
+
upgradeSchedule: UpgradeSchedule;
|
|
19
|
+
upgradeScope: UpgradeScope;
|
|
20
|
+
/** Switch the lint-staged ESLint step (unset: leave it). */
|
|
21
|
+
lintStaged?: LintStagedMode;
|
|
22
|
+
force: boolean;
|
|
23
|
+
}
|
|
24
|
+
export interface InfraReport {
|
|
25
|
+
/** New files. */
|
|
26
|
+
written: string[];
|
|
27
|
+
/** Existing files replaced because of --force. */
|
|
28
|
+
overwritten: string[];
|
|
29
|
+
/** Existing files that differ and were kept. */
|
|
30
|
+
skipped: string[];
|
|
31
|
+
/** Existing files whose content already matches. */
|
|
32
|
+
unchanged: string[];
|
|
33
|
+
/** Existing files that :infra appended to (.husky/pre-push). */
|
|
34
|
+
appended: string[];
|
|
35
|
+
/** npm scripts that exist with another command and were kept. */
|
|
36
|
+
keptScripts: string[];
|
|
37
|
+
/** Placeholders in files written by this run. */
|
|
38
|
+
placeholders: Array<{
|
|
39
|
+
file: string;
|
|
40
|
+
placeholder: string;
|
|
41
|
+
}>;
|
|
42
|
+
notes: string[];
|
|
43
|
+
installTask?: GeneratorCallback;
|
|
44
|
+
}
|
|
45
|
+
/** Validates the schema; throws (with a message fit for the CLI) on a bad value. */
|
|
46
|
+
export declare function normalizeInfraOptions(schema: InfraGeneratorSchema): InfraOptions;
|
|
47
|
+
/** nx.json `affected.defaultBase`, else master. */
|
|
48
|
+
export declare function workspaceBaseBranch(tree: Tree): string;
|
|
49
|
+
/**
|
|
50
|
+
* Writes the chosen parts into the tree and updates package.json (missing scripts and
|
|
51
|
+
* dependencies only). Does not format, refresh the llm block or log; returns what it did.
|
|
52
|
+
*/
|
|
53
|
+
export declare function applyInfra(tree: Tree, schema: InfraGeneratorSchema): InfraReport;
|
|
54
|
+
/** typecheck targets and nx.json defaults, the import/unused-imports ESLint rules (warn). */
|
|
55
|
+
export declare function applyQualityChecks(tree: Tree, report: {
|
|
56
|
+
notes: string[];
|
|
57
|
+
}): EslintResult;
|
|
58
|
+
/** Note for an ESLint config the quality rules could not be added to. */
|
|
59
|
+
export declare function eslintNote(result: EslintResult): string[];
|
|
60
|
+
export default function infraGenerator(tree: Tree, schema: InfraGeneratorSchema): Promise<GeneratorCallback | undefined>;
|
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.eslintNote = exports.applyQualityChecks = exports.applyInfra = exports.workspaceBaseBranch = exports.normalizeInfraOptions = exports.INFRA_SCRIPTS = exports.PREPUSH_V0_9_0 = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const os = tslib_1.__importStar(require("os"));
|
|
6
|
+
const path = tslib_1.__importStar(require("path"));
|
|
7
|
+
const devkit_1 = require("@nx/devkit");
|
|
8
|
+
const tree_1 = require("nx/src/generators/tree");
|
|
9
|
+
const install_source_1 = require("../../cli/install-source");
|
|
10
|
+
const versions_1 = require("../../cli/versions");
|
|
11
|
+
const dependencies_1 = require("../../lib/utils/dependencies");
|
|
12
|
+
const llm_block_1 = require("../../lib/utils/llm-block");
|
|
13
|
+
const npm_scripts_1 = require("../../lib/utils/npm-scripts");
|
|
14
|
+
const quality_1 = require("../../lib/utils/quality");
|
|
15
|
+
const options_1 = require("./options");
|
|
16
|
+
const FILES = path.join(__dirname, 'files');
|
|
17
|
+
const PREPUSH = '.husky/pre-push';
|
|
18
|
+
const PLACEHOLDERS = ['<conduct-contact>', '<security-contact>'];
|
|
19
|
+
/** Files that configure commitlint; when one exists, :infra adds no commitlint.config.js. */
|
|
20
|
+
const COMMITLINT_CONFIGS = [
|
|
21
|
+
'commitlint.config.js',
|
|
22
|
+
'commitlint.config.cjs',
|
|
23
|
+
'commitlint.config.mjs',
|
|
24
|
+
'commitlint.config.ts',
|
|
25
|
+
'.commitlintrc',
|
|
26
|
+
'.commitlintrc.json',
|
|
27
|
+
'.commitlintrc.yaml',
|
|
28
|
+
'.commitlintrc.yml',
|
|
29
|
+
'.commitlintrc.js',
|
|
30
|
+
'.commitlintrc.cjs',
|
|
31
|
+
];
|
|
32
|
+
/** check:prepush as v0.9.0 wrote it (audit first and blocking); see the 0.9.1 migration. */
|
|
33
|
+
exports.PREPUSH_V0_9_0 = 'npm audit --omit=dev --audit-level=high && secretlint "**/*"';
|
|
34
|
+
const AUDIT = 'npm audit --omit=dev --audit-level=high';
|
|
35
|
+
exports.INFRA_SCRIPTS = {
|
|
36
|
+
'check:cycles': 'node tools/scripts/check-cycles.js',
|
|
37
|
+
'stale-code': 'knip --no-exit-code',
|
|
38
|
+
// The secret scan blocks the push; the audit only warns (advisories without a fix for the
|
|
39
|
+
// workspace's framework major would otherwise block every push). check:audit is the strict one.
|
|
40
|
+
'check:prepush': `secretlint "**/*" && (${AUDIT} || echo "npm audit found advisories (warning only).")` +
|
|
41
|
+
' && echo "Strict dependency audit: npm run check:audit"',
|
|
42
|
+
'check:audit': AUDIT,
|
|
43
|
+
};
|
|
44
|
+
const COMMITLINT_DEPS = {
|
|
45
|
+
'@commitlint/cli': '^18.0.0',
|
|
46
|
+
'@commitlint/config-conventional': '^18.0.0',
|
|
47
|
+
};
|
|
48
|
+
const QUALITY_DEPS = {
|
|
49
|
+
knip: '^5.0.0',
|
|
50
|
+
secretlint: '^8.0.0',
|
|
51
|
+
'@secretlint/secretlint-rule-preset-recommend': '^8.0.0',
|
|
52
|
+
husky: '^9.0.0',
|
|
53
|
+
};
|
|
54
|
+
/** Validates the schema; throws (with a message fit for the CLI) on a bad value. */
|
|
55
|
+
function normalizeInfraOptions(schema) {
|
|
56
|
+
return {
|
|
57
|
+
parts: (0, options_1.parseParts)(schema.with),
|
|
58
|
+
ci: (0, options_1.parseCiProviders)(schema.ci),
|
|
59
|
+
ciCache: !!schema.ciCache,
|
|
60
|
+
flutter: (0, options_1.parseFlutterMode)(schema.flutter),
|
|
61
|
+
upgradeSchedule: (0, options_1.parseUpgradeSchedule)(schema.upgradeSchedule),
|
|
62
|
+
upgradeScope: (0, options_1.parseUpgradeScope)(schema.upgradeScope),
|
|
63
|
+
lintStaged: parseLintStaged(schema.lintStaged),
|
|
64
|
+
force: !!schema.force,
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
exports.normalizeInfraOptions = normalizeInfraOptions;
|
|
68
|
+
function parseLintStaged(input) {
|
|
69
|
+
if (input === undefined)
|
|
70
|
+
return undefined;
|
|
71
|
+
const v = input.trim();
|
|
72
|
+
if (!quality_1.LINT_STAGED_MODES.includes(v)) {
|
|
73
|
+
throw new Error(`--lint-staged must be ${quality_1.LINT_STAGED_MODES.join(' or ')} (got "${input}").`);
|
|
74
|
+
}
|
|
75
|
+
return v;
|
|
76
|
+
}
|
|
77
|
+
/** nx.json `affected.defaultBase`, else master. */
|
|
78
|
+
function workspaceBaseBranch(tree) {
|
|
79
|
+
try {
|
|
80
|
+
const base = (0, devkit_1.readJson)(tree, 'nx.json')?.affected?.defaultBase;
|
|
81
|
+
if (typeof base === 'string' && base.trim())
|
|
82
|
+
return base.trim();
|
|
83
|
+
}
|
|
84
|
+
catch {
|
|
85
|
+
// no or unreadable nx.json
|
|
86
|
+
}
|
|
87
|
+
return 'master';
|
|
88
|
+
}
|
|
89
|
+
exports.workspaceBaseBranch = workspaceBaseBranch;
|
|
90
|
+
function nxCacheDirectory(tree) {
|
|
91
|
+
try {
|
|
92
|
+
const dir = (0, devkit_1.readJson)(tree, 'nx.json')?.cacheDirectory;
|
|
93
|
+
if (typeof dir === 'string' && dir.trim())
|
|
94
|
+
return dir.trim().replace(/^\.\//, '');
|
|
95
|
+
}
|
|
96
|
+
catch {
|
|
97
|
+
// fall through
|
|
98
|
+
}
|
|
99
|
+
return '.nx/cache';
|
|
100
|
+
}
|
|
101
|
+
/** Renders a template folder in memory; returns workspace path → content. */
|
|
102
|
+
function render(dir, vars) {
|
|
103
|
+
// Never flushed: the root only has to be a path that is not the workspace.
|
|
104
|
+
const scratch = new tree_1.FsTree(path.join(os.tmpdir(), `pstack-infra-render-${process.pid}`), false);
|
|
105
|
+
(0, devkit_1.generateFiles)(scratch, path.join(FILES, dir), '.', { ...vars, template: '' });
|
|
106
|
+
const out = new Map();
|
|
107
|
+
for (const c of scratch.listChanges()) {
|
|
108
|
+
if (c.type !== 'DELETE' && c.content)
|
|
109
|
+
out.set(c.path, c.content.toString('utf8'));
|
|
110
|
+
}
|
|
111
|
+
return out;
|
|
112
|
+
}
|
|
113
|
+
function hasCommitlintConfig(tree) {
|
|
114
|
+
if (COMMITLINT_CONFIGS.some((f) => tree.exists(f)))
|
|
115
|
+
return true;
|
|
116
|
+
try {
|
|
117
|
+
return (0, devkit_1.readJson)(tree, 'package.json')?.commitlint !== undefined;
|
|
118
|
+
}
|
|
119
|
+
catch {
|
|
120
|
+
return false;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
/** Template folders (under files/) for the chosen parts and providers. */
|
|
124
|
+
function templateDirs(tree, o, report) {
|
|
125
|
+
const dirs = [];
|
|
126
|
+
const github = o.ci.includes('github-actions');
|
|
127
|
+
if (o.parts.includes('docs'))
|
|
128
|
+
dirs.push('docs');
|
|
129
|
+
if (o.parts.includes('ci')) {
|
|
130
|
+
dirs.push('ci/common');
|
|
131
|
+
if (github)
|
|
132
|
+
dirs.push('ci/github-actions');
|
|
133
|
+
if (o.ci.includes('jenkins'))
|
|
134
|
+
dirs.push('ci/jenkins');
|
|
135
|
+
if (github && !hasCommitlintConfig(tree))
|
|
136
|
+
dirs.push('ci/commitlint');
|
|
137
|
+
}
|
|
138
|
+
if (o.parts.includes('quality'))
|
|
139
|
+
dirs.push('quality');
|
|
140
|
+
if (o.parts.includes('upgrades')) {
|
|
141
|
+
if (github)
|
|
142
|
+
dirs.push('upgrades');
|
|
143
|
+
else {
|
|
144
|
+
report.notes.push('The dependency-upgrade workflow runs on GitHub Actions only; it was not added because ' +
|
|
145
|
+
'--ci does not include github-actions.');
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
return dirs;
|
|
149
|
+
}
|
|
150
|
+
function placeFile(tree, file, content, o, r) {
|
|
151
|
+
if (file === PREPUSH) {
|
|
152
|
+
placePrePush(tree, content, r);
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
if (!tree.exists(file)) {
|
|
156
|
+
tree.write(file, content);
|
|
157
|
+
r.written.push(file);
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
if (tree.read(file, 'utf8') === content) {
|
|
161
|
+
r.unchanged.push(file);
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
if (o.force) {
|
|
165
|
+
tree.write(file, content);
|
|
166
|
+
r.overwritten.push(file);
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
r.skipped.push(file);
|
|
170
|
+
}
|
|
171
|
+
/** .husky/pre-push is never replaced: our lines are appended once, after a marker. */
|
|
172
|
+
function placePrePush(tree, content, r) {
|
|
173
|
+
if (!tree.exists(PREPUSH)) {
|
|
174
|
+
tree.write(PREPUSH, content);
|
|
175
|
+
r.written.push(PREPUSH);
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
const current = tree.read(PREPUSH, 'utf8') ?? '';
|
|
179
|
+
if (current.split(/\r?\n/).some((line) => line.trim() === options_1.PREPUSH_MARKER)) {
|
|
180
|
+
r.unchanged.push(PREPUSH);
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
const sep = current === '' || current.endsWith('\n') ? '' : '\n';
|
|
184
|
+
tree.write(PREPUSH, current + sep + content);
|
|
185
|
+
r.appended.push(PREPUSH);
|
|
186
|
+
}
|
|
187
|
+
function addScripts(tree, wanted, r) {
|
|
188
|
+
const existing = (0, devkit_1.readJson)(tree, 'package.json').scripts ?? {};
|
|
189
|
+
const missing = {};
|
|
190
|
+
for (const [name, cmd] of Object.entries(wanted)) {
|
|
191
|
+
if (existing[name] === undefined)
|
|
192
|
+
missing[name] = cmd;
|
|
193
|
+
else if (existing[name] !== cmd)
|
|
194
|
+
r.keptScripts.push(name);
|
|
195
|
+
}
|
|
196
|
+
// Only missing scripts are passed, so this never needs (or uses) force.
|
|
197
|
+
if (Object.keys(missing).length > 0)
|
|
198
|
+
(0, npm_scripts_1.addNpmScripts)(tree, missing);
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Writes the chosen parts into the tree and updates package.json (missing scripts and
|
|
202
|
+
* dependencies only). Does not format, refresh the llm block or log; returns what it did.
|
|
203
|
+
*/
|
|
204
|
+
function applyInfra(tree, schema) {
|
|
205
|
+
const o = normalizeInfraOptions(schema);
|
|
206
|
+
const report = {
|
|
207
|
+
written: [],
|
|
208
|
+
overwritten: [],
|
|
209
|
+
skipped: [],
|
|
210
|
+
unchanged: [],
|
|
211
|
+
appended: [],
|
|
212
|
+
keptScripts: [],
|
|
213
|
+
placeholders: [],
|
|
214
|
+
notes: [],
|
|
215
|
+
};
|
|
216
|
+
const source = (0, install_source_1.installSource)();
|
|
217
|
+
const vars = {
|
|
218
|
+
baseBranch: workspaceBaseBranch(tree),
|
|
219
|
+
cacheDirectory: nxCacheDirectory(tree),
|
|
220
|
+
ciCache: o.ciCache,
|
|
221
|
+
flutter: o.flutter === 'on' || (o.flutter === 'auto' && (0, llm_block_1.hasFlutterProject)(tree)),
|
|
222
|
+
upgradeSchedule: o.upgradeSchedule,
|
|
223
|
+
upgradeCron: options_1.UPGRADE_CRON[o.upgradeSchedule],
|
|
224
|
+
upgradeScope: o.upgradeScope,
|
|
225
|
+
pluginName: versions_1.PLUGIN_NAME,
|
|
226
|
+
pluginRepo: source.kind === 'github' ? source.repo : versions_1.PLUGIN_GITHUB_REPO,
|
|
227
|
+
pluginFromGithub: source.kind === 'github',
|
|
228
|
+
prepushMarker: options_1.PREPUSH_MARKER,
|
|
229
|
+
};
|
|
230
|
+
const rendered = new Map();
|
|
231
|
+
for (const dir of templateDirs(tree, o, report)) {
|
|
232
|
+
for (const [file, content] of render(dir, vars))
|
|
233
|
+
rendered.set(file, content);
|
|
234
|
+
}
|
|
235
|
+
for (const file of [...rendered.keys()].sort()) {
|
|
236
|
+
placeFile(tree, file, rendered.get(file) ?? '', o, report);
|
|
237
|
+
}
|
|
238
|
+
for (const file of [...report.written, ...report.overwritten].sort()) {
|
|
239
|
+
const content = tree.read(file, 'utf8') ?? '';
|
|
240
|
+
for (const placeholder of PLACEHOLDERS) {
|
|
241
|
+
if (content.includes(placeholder))
|
|
242
|
+
report.placeholders.push({ file, placeholder });
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
// package.json: scripts and dependencies, only when missing.
|
|
246
|
+
if (tree.exists('package.json')) {
|
|
247
|
+
const scripts = {};
|
|
248
|
+
const devDeps = {};
|
|
249
|
+
if (o.parts.includes('ci')) {
|
|
250
|
+
scripts['check:cycles'] = exports.INFRA_SCRIPTS['check:cycles'];
|
|
251
|
+
if (o.ci.includes('github-actions'))
|
|
252
|
+
Object.assign(devDeps, COMMITLINT_DEPS);
|
|
253
|
+
}
|
|
254
|
+
if (o.parts.includes('quality')) {
|
|
255
|
+
scripts['stale-code'] = exports.INFRA_SCRIPTS['stale-code'];
|
|
256
|
+
scripts['check:prepush'] = exports.INFRA_SCRIPTS['check:prepush'];
|
|
257
|
+
scripts['check:audit'] = exports.INFRA_SCRIPTS['check:audit'];
|
|
258
|
+
// Without husky the pre-push hook never runs.
|
|
259
|
+
if ((0, dependencies_1.declaredVersion)(tree, 'husky') === undefined)
|
|
260
|
+
scripts['prepare'] = 'husky';
|
|
261
|
+
Object.assign(devDeps, QUALITY_DEPS);
|
|
262
|
+
if (applyQualityChecks(tree, report) === 'added') {
|
|
263
|
+
Object.assign(devDeps, (0, quality_1.qualityEslintDependencies)(tree));
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
if (o.lintStaged) {
|
|
267
|
+
const r = (0, quality_1.setLintStagedMode)(tree, o.lintStaged);
|
|
268
|
+
if (r === 'set')
|
|
269
|
+
report.notes.push(`lint-staged: ESLint now ${o.lintStaged === 'warn'
|
|
270
|
+
? 'reports without blocking the commit'
|
|
271
|
+
: 'blocks the commit on errors'}.`);
|
|
272
|
+
else if (r === 'other-config')
|
|
273
|
+
report.notes.push('lint-staged is configured outside package.json; change its ESLint step by hand (node tools/scripts/lint-staged-eslint.js reports without blocking).');
|
|
274
|
+
else if (r === 'no-config')
|
|
275
|
+
report.notes.push('No lint-staged config found; --lint-staged changed nothing.');
|
|
276
|
+
else if (r === 'no-eslint-step')
|
|
277
|
+
report.notes.push('lint-staged has no ESLint step; --lint-staged changed nothing.');
|
|
278
|
+
}
|
|
279
|
+
addScripts(tree, scripts, report);
|
|
280
|
+
report.keptScripts = report.keptScripts.filter((s) => s !== 'prepare');
|
|
281
|
+
report.installTask = (0, dependencies_1.addMissingDependencies)(tree, {}, devDeps);
|
|
282
|
+
}
|
|
283
|
+
const github = o.ci.includes('github-actions');
|
|
284
|
+
if (github &&
|
|
285
|
+
source.kind === 'github' &&
|
|
286
|
+
(o.parts.includes('ci') || o.parts.includes('upgrades')) &&
|
|
287
|
+
[...report.written, ...report.overwritten].some((f) => f.startsWith('.github/workflows/'))) {
|
|
288
|
+
report.notes.push(`Add a repository secret PSTACK_REPO_TOKEN (read access to ${source.repo}) so the ` +
|
|
289
|
+
'workflows can install the private nx-polystack plugin' +
|
|
290
|
+
(o.parts.includes('upgrades') ? ' and the upgrade workflow can find its releases.' : '.'));
|
|
291
|
+
}
|
|
292
|
+
return report;
|
|
293
|
+
}
|
|
294
|
+
exports.applyInfra = applyInfra;
|
|
295
|
+
/** typecheck targets and nx.json defaults, the import/unused-imports ESLint rules (warn). */
|
|
296
|
+
function applyQualityChecks(tree, report) {
|
|
297
|
+
const typed = (0, quality_1.addTypecheckTargets)(tree);
|
|
298
|
+
(0, quality_1.addTypecheckNxDefaults)(tree);
|
|
299
|
+
if (typed.length > 0) {
|
|
300
|
+
report.notes.push(`typecheck target added to ${typed.join(', ')}. Run npx nx run-many -t typecheck once ` +
|
|
301
|
+
'before merging: libraries are now type-checked as a whole, not only what apps import.');
|
|
302
|
+
}
|
|
303
|
+
const ci = (0, quality_1.addTypecheckToCi)(tree);
|
|
304
|
+
if (ci.changed.length > 0) {
|
|
305
|
+
report.notes.push(`typecheck added to the CI affected step in ${ci.changed.join(', ')}.`);
|
|
306
|
+
}
|
|
307
|
+
if (ci.unknown.length > 0) {
|
|
308
|
+
report.notes.push(`Add typecheck to the nx affected targets in ${ci.unknown.join(', ')} by hand ` +
|
|
309
|
+
'(e.g. nx affected -t lint typecheck test build).');
|
|
310
|
+
}
|
|
311
|
+
const eslint = (0, quality_1.addQualityEslintRules)(tree);
|
|
312
|
+
report.notes.push(...eslintNote(eslint));
|
|
313
|
+
return eslint;
|
|
314
|
+
}
|
|
315
|
+
exports.applyQualityChecks = applyQualityChecks;
|
|
316
|
+
/** Note for an ESLint config the quality rules could not be added to. */
|
|
317
|
+
function eslintNote(result) {
|
|
318
|
+
const rules = 'import/no-unresolved (TypeScript resolver) and unused-imports/no-unused-imports as warnings';
|
|
319
|
+
if (result === 'no-json-config') {
|
|
320
|
+
return [`The ESLint config is not .eslintrc.json; add ${rules} by hand.`];
|
|
321
|
+
}
|
|
322
|
+
if (result === 'has-comments') {
|
|
323
|
+
return [`.eslintrc.json has comments, which a rewrite would drop; add ${rules} by hand.`];
|
|
324
|
+
}
|
|
325
|
+
return [];
|
|
326
|
+
}
|
|
327
|
+
exports.eslintNote = eslintNote;
|
|
328
|
+
function logReport(r) {
|
|
329
|
+
const lines = (files) => files.map((f) => ` ${f}`).join('\n');
|
|
330
|
+
if (r.appended.length > 0) {
|
|
331
|
+
devkit_1.logger.info(`Appended the pre-push checks to:\n${lines(r.appended)}`);
|
|
332
|
+
}
|
|
333
|
+
if (r.keptScripts.length > 0) {
|
|
334
|
+
devkit_1.logger.info(`Kept existing npm scripts (not changed):\n${lines(r.keptScripts)}\n` +
|
|
335
|
+
'Check that they still run what CI and the hooks expect.');
|
|
336
|
+
}
|
|
337
|
+
if (r.placeholders.length > 0) {
|
|
338
|
+
devkit_1.logger.info(`Fill in:\n${r.placeholders.map((p) => ` ${p.placeholder} in ${p.file}`).join('\n')}`);
|
|
339
|
+
}
|
|
340
|
+
for (const note of r.notes)
|
|
341
|
+
devkit_1.logger.info(note);
|
|
342
|
+
if (r.skipped.length > 0) {
|
|
343
|
+
devkit_1.logger.info(`Kept existing files (pass --force to overwrite):\n${lines(r.skipped)}`);
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
async function infraGenerator(tree, schema) {
|
|
347
|
+
const report = applyInfra(tree, schema);
|
|
348
|
+
if (!schema.skipFormat)
|
|
349
|
+
await (0, devkit_1.formatFiles)(tree);
|
|
350
|
+
// After formatting: Prettier must not touch the text around the block.
|
|
351
|
+
(0, llm_block_1.refreshLlmBlocks)(tree);
|
|
352
|
+
logReport(report);
|
|
353
|
+
return report.installTask;
|
|
354
|
+
}
|
|
355
|
+
exports.default = infraGenerator;
|
|
356
|
+
//# sourceMappingURL=generator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../src/generators/infra/generator.ts"],"names":[],"mappings":";;;;AAAA,+CAAyB;AACzB,mDAA6B;AAE7B,uCAAmG;AACnG,iDAAgD;AAEhD,6DAAyD;AACzD,iDAAqE;AACrE,+DAAuF;AACvF,yDAAgF;AAChF,6DAA4D;AAC5D,qDAUiC;AAEjC,uCAamB;AAGnB,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AAC5C,MAAM,OAAO,GAAG,iBAAiB,CAAC;AAClC,MAAM,YAAY,GAAG,CAAC,mBAAmB,EAAE,oBAAoB,CAAC,CAAC;AAEjE,6FAA6F;AAC7F,MAAM,kBAAkB,GAAG;IACzB,sBAAsB;IACtB,uBAAuB;IACvB,uBAAuB;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AC,EAAE;QACxB,eAAM,CAAC,IAAI,CAAC,qDAAqD,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;KACtF;AACH,CAAC;AAEc,KAAK,UAAU,cAAc,CAC1C,IAAU,EACV,MAA4B;IAE5B,MAAM,MAAM,GAAG,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACxC,IAAI,CAAC,MAAM,CAAC,UAAU;QAAE,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;IAChD,uEAAuE;IACvE,IAAA,4BAAgB,EAAC,IAAI,CAAC,CAAC;IACvB,SAAS,CAAC,MAAM,CAAC,CAAC;IAClB,OAAO,MAAM,CAAC,WAAW,CAAC;AAC5B,CAAC;AAVD,iCAUC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/** Parts of `:infra`, in the order they are generated. */
|
|
2
|
+
export declare const INFRA_PARTS: readonly ["docs", "ci", "quality", "upgrades"];
|
|
3
|
+
export type InfraPart = (typeof INFRA_PARTS)[number];
|
|
4
|
+
export declare const CI_PROVIDERS: readonly ["github-actions", "jenkins"];
|
|
5
|
+
export type CiProvider = (typeof CI_PROVIDERS)[number];
|
|
6
|
+
/** Cron (UTC) per schedule: Monday 03:17, or the 1st of the month at 03:17. */
|
|
7
|
+
export declare const UPGRADE_CRON: {
|
|
8
|
+
readonly weekly: "17 3 * * 1";
|
|
9
|
+
readonly monthly: "17 3 1 * *";
|
|
10
|
+
};
|
|
11
|
+
export type UpgradeSchedule = keyof typeof UPGRADE_CRON;
|
|
12
|
+
export declare const UPGRADE_SCOPES: readonly ["polystack", "nx-minor"];
|
|
13
|
+
export type UpgradeScope = (typeof UPGRADE_SCOPES)[number];
|
|
14
|
+
/** Marks the line block :infra adds to .husky/pre-push, so it is added only once. */
|
|
15
|
+
export declare const PREPUSH_MARKER = "# nx-polystack:infra pre-push";
|
|
16
|
+
/**
|
|
17
|
+
* `--with` / `--infra`: a comma-separated list of parts, or `all` / `none`. Empty or missing
|
|
18
|
+
* means all. Returns the parts in canonical order.
|
|
19
|
+
*/
|
|
20
|
+
export declare function parseParts(input: string | undefined, flag?: string): InfraPart[];
|
|
21
|
+
/** `--ci`: comma-separated providers; empty or missing means github-actions. */
|
|
22
|
+
export declare function parseCiProviders(input: string | undefined): CiProvider[];
|
|
23
|
+
export declare function parseUpgradeSchedule(input: string | undefined): UpgradeSchedule;
|
|
24
|
+
export declare function parseUpgradeScope(input: string | undefined): UpgradeScope;
|
|
25
|
+
export declare const FLUTTER_MODES: readonly ["auto", "on", "off"];
|
|
26
|
+
export type FlutterMode = (typeof FLUTTER_MODES)[number];
|
|
27
|
+
/** `--flutter`: auto (set up Flutter in CI when the workspace has Flutter projects), on, off. */
|
|
28
|
+
export declare function parseFlutterMode(input: string | undefined): FlutterMode;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.parseFlutterMode = exports.FLUTTER_MODES = exports.parseUpgradeScope = exports.parseUpgradeSchedule = exports.parseCiProviders = exports.parseParts = exports.PREPUSH_MARKER = exports.UPGRADE_SCOPES = exports.UPGRADE_CRON = exports.CI_PROVIDERS = exports.INFRA_PARTS = void 0;
|
|
4
|
+
/** Parts of `:infra`, in the order they are generated. */
|
|
5
|
+
exports.INFRA_PARTS = ['docs', 'ci', 'quality', 'upgrades'];
|
|
6
|
+
exports.CI_PROVIDERS = ['github-actions', 'jenkins'];
|
|
7
|
+
/** Cron (UTC) per schedule: Monday 03:17, or the 1st of the month at 03:17. */
|
|
8
|
+
exports.UPGRADE_CRON = {
|
|
9
|
+
weekly: '17 3 * * 1',
|
|
10
|
+
monthly: '17 3 1 * *',
|
|
11
|
+
};
|
|
12
|
+
exports.UPGRADE_SCOPES = ['polystack', 'nx-minor'];
|
|
13
|
+
/** Marks the line block :infra adds to .husky/pre-push, so it is added only once. */
|
|
14
|
+
exports.PREPUSH_MARKER = '# nx-polystack:infra pre-push';
|
|
15
|
+
const list = (input) => input
|
|
16
|
+
.split(',')
|
|
17
|
+
.map((s) => s.trim())
|
|
18
|
+
.filter(Boolean);
|
|
19
|
+
/**
|
|
20
|
+
* `--with` / `--infra`: a comma-separated list of parts, or `all` / `none`. Empty or missing
|
|
21
|
+
* means all. Returns the parts in canonical order.
|
|
22
|
+
*/
|
|
23
|
+
function parseParts(input, flag = '--with') {
|
|
24
|
+
const given = list(input ?? '');
|
|
25
|
+
if (given.length === 0 || (given.length === 1 && given[0] === 'all'))
|
|
26
|
+
return [...exports.INFRA_PARTS];
|
|
27
|
+
if (given.includes('none')) {
|
|
28
|
+
if (given.length > 1) {
|
|
29
|
+
throw new Error(`"none" cannot be combined with other parts in ${flag}.`);
|
|
30
|
+
}
|
|
31
|
+
return [];
|
|
32
|
+
}
|
|
33
|
+
for (const p of given) {
|
|
34
|
+
if (p === 'all' || !exports.INFRA_PARTS.includes(p)) {
|
|
35
|
+
throw new Error(`unknown part "${p}" in ${flag}. Supported: ${exports.INFRA_PARTS.join(', ')} (or all, none).`);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return exports.INFRA_PARTS.filter((p) => given.includes(p));
|
|
39
|
+
}
|
|
40
|
+
exports.parseParts = parseParts;
|
|
41
|
+
/** `--ci`: comma-separated providers; empty or missing means github-actions. */
|
|
42
|
+
function parseCiProviders(input) {
|
|
43
|
+
const given = list(input ?? '');
|
|
44
|
+
if (given.length === 0)
|
|
45
|
+
return ['github-actions'];
|
|
46
|
+
for (const p of given) {
|
|
47
|
+
if (!exports.CI_PROVIDERS.includes(p)) {
|
|
48
|
+
throw new Error(`unknown CI provider "${p}" in --ci. Supported: ${exports.CI_PROVIDERS.join(', ')}.`);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return exports.CI_PROVIDERS.filter((p) => given.includes(p));
|
|
52
|
+
}
|
|
53
|
+
exports.parseCiProviders = parseCiProviders;
|
|
54
|
+
function parseUpgradeSchedule(input) {
|
|
55
|
+
const v = (input ?? '').trim() || 'weekly';
|
|
56
|
+
if (!(v in exports.UPGRADE_CRON)) {
|
|
57
|
+
throw new Error(`--upgrade-schedule must be weekly or monthly (got "${input}").`);
|
|
58
|
+
}
|
|
59
|
+
return v;
|
|
60
|
+
}
|
|
61
|
+
exports.parseUpgradeSchedule = parseUpgradeSchedule;
|
|
62
|
+
function parseUpgradeScope(input) {
|
|
63
|
+
const v = (input ?? '').trim() || 'polystack';
|
|
64
|
+
if (!exports.UPGRADE_SCOPES.includes(v)) {
|
|
65
|
+
throw new Error(`--upgrade-scope must be polystack or nx-minor (got "${input}").`);
|
|
66
|
+
}
|
|
67
|
+
return v;
|
|
68
|
+
}
|
|
69
|
+
exports.parseUpgradeScope = parseUpgradeScope;
|
|
70
|
+
exports.FLUTTER_MODES = ['auto', 'on', 'off'];
|
|
71
|
+
/** `--flutter`: auto (set up Flutter in CI when the workspace has Flutter projects), on, off. */
|
|
72
|
+
function parseFlutterMode(input) {
|
|
73
|
+
const v = (input ?? '').trim() || 'auto';
|
|
74
|
+
if (!exports.FLUTTER_MODES.includes(v)) {
|
|
75
|
+
throw new Error(`--flutter must be auto, on or off (got "${input}").`);
|
|
76
|
+
}
|
|
77
|
+
return v;
|
|
78
|
+
}
|
|
79
|
+
exports.parseFlutterMode = parseFlutterMode;
|
|
80
|
+
//# sourceMappingURL=options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/generators/infra/options.ts"],"names":[],"mappings":";;;AAAA,0DAA0D;AAC7C,QAAA,WAAW,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,CAAU,CAAC;AAG7D,QAAA,YAAY,GAAG,CAAC,gBAAgB,EAAE,SAAS,CAAU,CAAC;AAGnE,+EAA+E;AAClE,QAAA,YAAY,GAAG;IAC1B,MAAM,EAAE,YAAY;IACpB,OAAO,EAAE,YAAY;CACb,CAAC;AAG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AU,CAAC;AAG5D,iGAAiG;AACjG,SAAgB,gBAAgB,CAAC,KAAyB;IACxD,MAAM,CAAC,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,IAAI,MAAM,CAAC;IACzC,IAAI,CAAE,qBAAmC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE;QACrD,MAAM,IAAI,KAAK,CAAC,2CAA2C,KAAK,KAAK,CAAC,CAAC;KACxE;IACD,OAAO,CAAgB,CAAC;AAC1B,CAAC;AAND,4CAMC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface InfraGeneratorSchema {
|
|
2
|
+
/** Comma-separated parts: docs | ci | quality | upgrades, or all | none (default: all). */
|
|
3
|
+
with?: string;
|
|
4
|
+
/** Comma-separated CI providers: github-actions | jenkins (default: github-actions). */
|
|
5
|
+
ci?: string;
|
|
6
|
+
/** GitHub Actions: cache the Nx cache directory between runs. */
|
|
7
|
+
ciCache?: boolean;
|
|
8
|
+
/** Set up Flutter in CI: auto (when a pubspec.yaml is under apps/ or libs/) | on | off. */
|
|
9
|
+
flutter?: string;
|
|
10
|
+
/** Dependency-upgrade workflow schedule: weekly | monthly (default: weekly). */
|
|
11
|
+
upgradeSchedule?: string;
|
|
12
|
+
/** What the upgrade workflow upgrades: polystack | nx-minor (default: polystack). */
|
|
13
|
+
upgradeScope?: string;
|
|
14
|
+
/** lint-staged ESLint step: warn (report, never block the commit) | block. Unset: unchanged. */
|
|
15
|
+
lintStaged?: string;
|
|
16
|
+
/** Overwrite files that already exist (never .husky/pre-push, which is appended to). */
|
|
17
|
+
force?: boolean;
|
|
18
|
+
skipFormat?: boolean;
|
|
19
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"cli": "nx",
|
|
4
|
+
"id": "infra",
|
|
5
|
+
"title": "Repo Infrastructure",
|
|
6
|
+
"description": "Add repo docs, CI gates (GitHub Actions / Jenkins, dependency-cycle check), quality checks (knip, pre-push audit + secretlint) and a scheduled dependency-upgrade workflow. Existing files are kept unless --force.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"with": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"default": "all",
|
|
12
|
+
"description": "Comma-separated parts: docs, ci, quality, upgrades; or all, none."
|
|
13
|
+
},
|
|
14
|
+
"ci": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"default": "github-actions",
|
|
17
|
+
"description": "Comma-separated CI providers: github-actions, jenkins. The upgrade workflow is GitHub Actions only."
|
|
18
|
+
},
|
|
19
|
+
"ciCache": {
|
|
20
|
+
"type": "boolean",
|
|
21
|
+
"default": false,
|
|
22
|
+
"description": "GitHub Actions: cache the Nx cache directory (actions/cache)."
|
|
23
|
+
},
|
|
24
|
+
"flutter": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"enum": ["auto", "on", "off"],
|
|
27
|
+
"default": "auto",
|
|
28
|
+
"description": "Set up Flutter in CI (subosito/flutter-action on GitHub, a flutter --version check on Jenkins): auto when a pubspec.yaml is under apps/ or libs/, on, or off."
|
|
29
|
+
},
|
|
30
|
+
"upgradeSchedule": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"enum": ["weekly", "monthly"],
|
|
33
|
+
"default": "weekly",
|
|
34
|
+
"description": "When the dependency-upgrade workflow runs: weekly (Monday 03:17 UTC) or monthly (1st, 03:17 UTC)."
|
|
35
|
+
},
|
|
36
|
+
"upgradeScope": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"enum": ["polystack", "nx-minor"],
|
|
39
|
+
"default": "polystack",
|
|
40
|
+
"description": "polystack: pstack update to the latest release. nx-minor: also nx migrate within the current Nx major."
|
|
41
|
+
},
|
|
42
|
+
"force": {
|
|
43
|
+
"type": "boolean",
|
|
44
|
+
"default": false,
|
|
45
|
+
"description": "Overwrite files that already exist. .husky/pre-push is always appended to, never replaced."
|
|
46
|
+
},
|
|
47
|
+
"skipFormat": {
|
|
48
|
+
"type": "boolean",
|
|
49
|
+
"default": false,
|
|
50
|
+
"description": "Skip formatFiles."
|
|
51
|
+
},
|
|
52
|
+
"lintStaged": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"enum": ["warn", "block"],
|
|
55
|
+
"description": "lint-staged ESLint step: warn (report problems, never block the commit) or block. Unset: unchanged."
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"required": []
|
|
59
|
+
}
|