@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,27 @@
|
|
|
1
|
+
import { GeneratorCallback, Tree } from '@nx/devkit';
|
|
2
|
+
import { NormalizedLibOptions } from './lib-utils';
|
|
3
|
+
export declare const ANGULAR_LIB_VARIANTS: readonly ["internal", "buildable", "publishable"];
|
|
4
|
+
export interface AngularLibOptions {
|
|
5
|
+
/** Template folder with the lib's own sources (src/…), rendered into the project root. */
|
|
6
|
+
srcTemplates: string;
|
|
7
|
+
/** Extra runtime packages the sources import, given the installed @angular/core version. */
|
|
8
|
+
dependencies?: (angularCore: string) => Record<string, string>;
|
|
9
|
+
/** Extra lib package.json peerDependencies, given the installed @angular/core version. */
|
|
10
|
+
peerDependencies?: (tree: Tree, angularCore: string) => Record<string, string>;
|
|
11
|
+
/** Build kind when --variant means something else for the type (e.g. state flavours). */
|
|
12
|
+
build?: AngularLibBuild;
|
|
13
|
+
/** Extra template substitutions. */
|
|
14
|
+
vars?: Record<string, unknown>;
|
|
15
|
+
/** Allowed component class suffixes for ESLint (default: the rule's own, "Component"). */
|
|
16
|
+
componentSuffixes?: string[];
|
|
17
|
+
}
|
|
18
|
+
/** ng-packagr releases don't follow Angular patch numbers, so pin the major only. */
|
|
19
|
+
export declare function ngPackagrRange(angularCore: string | undefined): string;
|
|
20
|
+
export type AngularLibBuild = (typeof ANGULAR_LIB_VARIANTS)[number];
|
|
21
|
+
/**
|
|
22
|
+
* Writes an Angular library: tsconfigs, ESLint config, project.json (lint + build per variant),
|
|
23
|
+
* ng-package.json / package.json / tsconfig.lib.prod.json for buildable and publishable libs,
|
|
24
|
+
* and the sources from `srcTemplates`. Adds the Angular, lint and ng-packagr packages it needs.
|
|
25
|
+
* Shared by the angular and ionic types (and the Angular-based extras).
|
|
26
|
+
*/
|
|
27
|
+
export declare function writeAngularLib(tree: Tree, o: NormalizedLibOptions, opts: AngularLibOptions): GeneratorCallback | undefined;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.writeAngularLib = exports.ngPackagrRange = exports.ANGULAR_LIB_VARIANTS = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const path = tslib_1.__importStar(require("path"));
|
|
6
|
+
const devkit_1 = require("@nx/devkit");
|
|
7
|
+
const angular_deps_1 = require("../../lib/utils/angular-deps");
|
|
8
|
+
const dependencies_1 = require("../../lib/utils/dependencies");
|
|
9
|
+
const lib_utils_1 = require("./lib-utils");
|
|
10
|
+
exports.ANGULAR_LIB_VARIANTS = ['internal', 'buildable', 'publishable'];
|
|
11
|
+
/** ng-packagr releases don't follow Angular patch numbers, so pin the major only. */
|
|
12
|
+
function ngPackagrRange(angularCore) {
|
|
13
|
+
return (0, angular_deps_1.ngPackagrDependencies)(angularCore)['ng-packagr'];
|
|
14
|
+
}
|
|
15
|
+
exports.ngPackagrRange = ngPackagrRange;
|
|
16
|
+
/**
|
|
17
|
+
* Writes an Angular library: tsconfigs, ESLint config, project.json (lint + build per variant),
|
|
18
|
+
* ng-package.json / package.json / tsconfig.lib.prod.json for buildable and publishable libs,
|
|
19
|
+
* and the sources from `srcTemplates`. Adds the Angular, lint and ng-packagr packages it needs.
|
|
20
|
+
* Shared by the angular and ionic types (and the Angular-based extras).
|
|
21
|
+
*/
|
|
22
|
+
function writeAngularLib(tree, o, opts) {
|
|
23
|
+
const vars = {
|
|
24
|
+
...(0, lib_utils_1.templateVars)(o),
|
|
25
|
+
prefixCamel: (0, devkit_1.names)(o.prefix).propertyName,
|
|
26
|
+
componentSuffixes: opts.componentSuffixes ?? null,
|
|
27
|
+
...(opts.vars ?? {}),
|
|
28
|
+
};
|
|
29
|
+
const build = opts.build ?? o.variant;
|
|
30
|
+
(0, devkit_1.generateFiles)(tree, path.join(__dirname, 'files', 'angular', 'config'), o.projectRoot, vars);
|
|
31
|
+
(0, devkit_1.generateFiles)(tree, opts.srcTemplates, o.projectRoot, vars);
|
|
32
|
+
const depsTask = (0, lib_utils_1.combineTasks)((0, dependencies_1.ensureLintDependencies)(tree), (0, angular_deps_1.ensureAngularDependencies)(tree));
|
|
33
|
+
// ensureAngularDependencies adds Angular 15 when missing, so core is declared from here on
|
|
34
|
+
// (unless the workspace has no package.json at all).
|
|
35
|
+
const core = (0, dependencies_1.declaredVersion)(tree, '@angular/core') ?? angular_deps_1.ANGULAR_VERSION;
|
|
36
|
+
const packaged = build !== 'internal';
|
|
37
|
+
const extraTask = (0, dependencies_1.addMissingDependencies)(tree, { '@angular/common': core, ...(opts.dependencies?.(core) ?? {}) }, packaged ? (0, angular_deps_1.ngPackagrDependencies)(core) : {});
|
|
38
|
+
const targets = {};
|
|
39
|
+
if (packaged) {
|
|
40
|
+
targets['build'] = {
|
|
41
|
+
executor: build === 'publishable' ? '@nx/angular:package' : '@nx/angular:ng-packagr-lite',
|
|
42
|
+
outputs: ['{workspaceRoot}/dist/{projectRoot}'],
|
|
43
|
+
options: { project: `${o.projectRoot}/ng-package.json` },
|
|
44
|
+
configurations: {
|
|
45
|
+
production: { tsConfig: `${o.projectRoot}/tsconfig.lib.prod.json` },
|
|
46
|
+
development: { tsConfig: `${o.projectRoot}/tsconfig.lib.json` },
|
|
47
|
+
},
|
|
48
|
+
defaultConfiguration: 'production',
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
targets['lint'] = (0, lib_utils_1.lintTarget)(o, ['**/*.ts', '**/*.html']);
|
|
52
|
+
(0, lib_utils_1.writeLibProjectJson)(tree, o, {
|
|
53
|
+
sourceRoot: `${o.projectRoot}/src`,
|
|
54
|
+
prefix: o.prefix,
|
|
55
|
+
targets,
|
|
56
|
+
});
|
|
57
|
+
if (packaged) {
|
|
58
|
+
(0, devkit_1.writeJson)(tree, `${o.projectRoot}/ng-package.json`, {
|
|
59
|
+
$schema: `${o.offset}node_modules/ng-packagr/ng-package.schema.json`,
|
|
60
|
+
dest: `${o.offset}dist/${o.projectRoot}`,
|
|
61
|
+
lib: { entryFile: 'src/index.ts' },
|
|
62
|
+
});
|
|
63
|
+
(0, devkit_1.writeJson)(tree, `${o.projectRoot}/tsconfig.lib.prod.json`, {
|
|
64
|
+
extends: './tsconfig.lib.json',
|
|
65
|
+
compilerOptions: { declarationMap: false },
|
|
66
|
+
angularCompilerOptions: { compilationMode: 'partial' },
|
|
67
|
+
});
|
|
68
|
+
// ng-packagr reads the package name and peers from here, so buildable libs need it too.
|
|
69
|
+
const peer = (0, lib_utils_1.caretRange)(core, '^15.2.0');
|
|
70
|
+
(0, devkit_1.writeJson)(tree, `${o.projectRoot}/package.json`, {
|
|
71
|
+
name: o.importPath,
|
|
72
|
+
version: '0.0.1',
|
|
73
|
+
peerDependencies: {
|
|
74
|
+
'@angular/common': peer,
|
|
75
|
+
'@angular/core': peer,
|
|
76
|
+
...(opts.peerDependencies?.(tree, core) ?? {}),
|
|
77
|
+
},
|
|
78
|
+
dependencies: { tslib: '^2.3.0' },
|
|
79
|
+
sideEffects: false,
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
return (0, lib_utils_1.combineTasks)(depsTask, extraTask);
|
|
83
|
+
}
|
|
84
|
+
exports.writeAngularLib = writeAngularLib;
|
|
85
|
+
//# sourceMappingURL=angular-lib.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"angular-lib.js","sourceRoot":"","sources":["../../../../src/generators/lib/angular-lib.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<p><%= fileName %> works!</p>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: '<%= prefix %>-<%= fileName %>',
|
|
5
|
+
templateUrl: './<%= fileName %>.component.html',
|
|
6
|
+
styleUrls: ['./<%= fileName %>.component.scss'],
|
|
7
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
8
|
+
})
|
|
9
|
+
export class <%= className %>Component {}
|
package/dist/src/generators/lib/files/angular/component/src/lib/__fileName__.module.ts__template__
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
import { <%= className %>Component } from './<%= fileName %>/<%= fileName %>.component';
|
|
5
|
+
|
|
6
|
+
@NgModule({
|
|
7
|
+
imports: [CommonModule],
|
|
8
|
+
declarations: [<%= className %>Component],
|
|
9
|
+
exports: [<%= className %>Component],
|
|
10
|
+
})
|
|
11
|
+
export class <%= className %>Module {}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": ["<%= offset %>.eslintrc.json"],
|
|
3
|
+
"ignorePatterns": ["!**/*"],
|
|
4
|
+
"overrides": [
|
|
5
|
+
{
|
|
6
|
+
"files": ["*.ts"],
|
|
7
|
+
"extends": [
|
|
8
|
+
"plugin:@nx/angular",
|
|
9
|
+
"plugin:@angular-eslint/template/process-inline-templates"
|
|
10
|
+
],
|
|
11
|
+
"rules": {
|
|
12
|
+
"@angular-eslint/directive-selector": [
|
|
13
|
+
"error",
|
|
14
|
+
{ "type": "attribute", "prefix": "<%= prefixCamel %>", "style": "camelCase" }
|
|
15
|
+
],
|
|
16
|
+
"@angular-eslint/component-selector": [
|
|
17
|
+
"error",
|
|
18
|
+
{ "type": "element", "prefix": "<%= prefix %>", "style": "kebab-case" }
|
|
19
|
+
]<% if (componentSuffixes) { %>,
|
|
20
|
+
"@angular-eslint/component-class-suffix": [
|
|
21
|
+
"error",
|
|
22
|
+
{ "suffixes": <%- JSON.stringify(componentSuffixes) %> }
|
|
23
|
+
]<% } %>
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"files": ["*.html"],
|
|
28
|
+
"extends": ["plugin:@nx/angular-template"],
|
|
29
|
+
"rules": {}
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "<%= offset %>tsconfig.base.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"target": "es2022",
|
|
5
|
+
"useDefineForClassFields": false,
|
|
6
|
+
"forceConsistentCasingInFileNames": true,
|
|
7
|
+
"strict": true,
|
|
8
|
+
"noImplicitOverride": true,
|
|
9
|
+
"noPropertyAccessFromIndexSignature": true,
|
|
10
|
+
"noImplicitReturns": true,
|
|
11
|
+
"noFallthroughCasesInSwitch": true
|
|
12
|
+
},
|
|
13
|
+
"files": [],
|
|
14
|
+
"include": [],
|
|
15
|
+
"references": [{ "path": "./tsconfig.lib.json" }],
|
|
16
|
+
"angularCompilerOptions": {
|
|
17
|
+
"enableI18nLegacyMessageIdFormat": false,
|
|
18
|
+
"strictInjectionParameters": true,
|
|
19
|
+
"strictInputAccessModifiers": true,
|
|
20
|
+
"strictTemplates": true
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": "<%= offset %>dist/out-tsc",
|
|
5
|
+
"declaration": true,
|
|
6
|
+
"declarationMap": true,
|
|
7
|
+
"inlineSources": true,
|
|
8
|
+
"types": []
|
|
9
|
+
},
|
|
10
|
+
"exclude": ["src/**/*.spec.ts", "src/test-setup.ts", "src/**/*.test.ts"],
|
|
11
|
+
"include": ["src/**/*.ts"]
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# <%= projectName %>
|
|
2
|
+
|
|
3
|
+
Shared static files (images, icons, fonts, JSON). Put them under `assets/`.
|
|
4
|
+
|
|
5
|
+
## Use it in an app
|
|
6
|
+
|
|
7
|
+
Add this entry to the app's `project.json` → `targets.build.options.assets`:
|
|
8
|
+
|
|
9
|
+
```json
|
|
10
|
+
{ "glob": "**/*", "input": "<%= projectRoot %>/assets", "output": "assets/<%= dir %>" }
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
The files are then served from `assets/<%= dir %>/…`, e.g. `<img src="assets/<%= dir %>/logo.svg" />`.
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# <%= projectName %>
|
|
2
|
+
|
|
3
|
+
Design tokens kept in [Style Dictionary v3](https://v3.styledictionary.com/) format and built for
|
|
4
|
+
web (SCSS, CSS, TypeScript) and Flutter (Dart).
|
|
5
|
+
|
|
6
|
+
```
|
|
7
|
+
tokens/color.json colors (color.<type>.<item>)
|
|
8
|
+
tokens/spacing.json spacing (size.spacing.<item>, rem)
|
|
9
|
+
tokens/typography.json font sizes (size.font.*), families (font.family.*),
|
|
10
|
+
weights (fontWeight.*) and line heights (lineHeight.*)
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Edit the JSON, then rebuild:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
nx build <%= projectName %>
|
|
17
|
+
# = npx style-dictionary build --config <%= projectRoot %>/style-dictionary.config.js
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
The outputs are committed, so apps work before the first build:
|
|
21
|
+
|
|
22
|
+
| Output | Path |
|
|
23
|
+
| ------ | ------------------------------------------ |
|
|
24
|
+
| SCSS | `<%= projectRoot %>/<%= outputs.scss %>` |
|
|
25
|
+
| CSS | `<%= projectRoot %>/<%= outputs.css %>` |
|
|
26
|
+
| TS | `<%= projectRoot %>/<%= outputs.ts %>` |
|
|
27
|
+
| Dart | `<%= projectRoot %>/<%= outputs.dart %>` |
|
|
28
|
+
|
|
29
|
+
They are listed in the workspace `.prettierignore` so formatting never fights the generator.
|
|
30
|
+
|
|
31
|
+
## SCSS
|
|
32
|
+
|
|
33
|
+
Add the folder to the app's `stylePreprocessorOptions` in `project.json`:
|
|
34
|
+
|
|
35
|
+
```json
|
|
36
|
+
"stylePreprocessorOptions": { "includePaths": ["<%= projectRoot %>/generated/scss"] }
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
```scss
|
|
40
|
+
@use 'tokens' as t;
|
|
41
|
+
|
|
42
|
+
.button {
|
|
43
|
+
background: t.$color-brand-primary;
|
|
44
|
+
padding: t.$size-spacing-sm t.$size-spacing-md;
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## CSS custom properties
|
|
49
|
+
|
|
50
|
+
Add the file to the app's `styles` in `project.json` (before the app's own stylesheet):
|
|
51
|
+
|
|
52
|
+
```json
|
|
53
|
+
"styles": ["<%= projectRoot %>/<%= outputs.css %>", "apps/<app>/src/styles.scss"]
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
```css
|
|
57
|
+
.card {
|
|
58
|
+
color: var(--color-neutral-dark);
|
|
59
|
+
gap: var(--size-spacing-md);
|
|
60
|
+
}
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## TypeScript
|
|
64
|
+
|
|
65
|
+
```ts
|
|
66
|
+
import { ColorBrandPrimary, SizeSpacingMd } from '<%= importPath %>';
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## Flutter (Dart)
|
|
70
|
+
|
|
71
|
+
`<%= projectRoot %>/generated/dart` is a Dart package (`<%= snakeName %>_tokens`). Depend on it by path
|
|
72
|
+
from the app's `pubspec.yaml`:
|
|
73
|
+
|
|
74
|
+
```yaml
|
|
75
|
+
dependencies:
|
|
76
|
+
<%= snakeName %>_tokens:
|
|
77
|
+
path: ../../<%= projectRoot %>/generated/dart
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
```dart
|
|
81
|
+
import 'package:<%= snakeName %>_tokens/tokens.dart';
|
|
82
|
+
|
|
83
|
+
final color = <%= dartClassName %>.colorBrandPrimary;
|
|
84
|
+
final padding = <%= dartClassName %>.sizeSpacingMd; // logical pixels (rem × 16)
|
|
85
|
+
final family = <%= dartClassName %>.fontFamilyBase; // a String
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Font families are strings; the font files themselves still go in the app's `pubspec.yaml`. Keep
|
|
89
|
+
only families under `font` — Style Dictionary's Flutter transforms quote every `font` token, which
|
|
90
|
+
is why weights and line heights have their own `fontWeight` and `lineHeight` categories.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
name: <%= snakeName %>_tokens
|
|
2
|
+
description: <%= title %> design tokens for Flutter, generated by Style Dictionary from <%= projectRoot %>/tokens.
|
|
3
|
+
publish_to: none
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
|
|
6
|
+
environment:
|
|
7
|
+
sdk: ">=3.0.0 <4.0.0"
|
|
8
|
+
|
|
9
|
+
dependencies:
|
|
10
|
+
flutter:
|
|
11
|
+
sdk: flutter
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lib/tokens';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// Style Dictionary v3 config for <%= projectName %>.
|
|
2
|
+
// Run from the workspace root (`nx build <%= projectName %>` does), so paths start at the root.
|
|
3
|
+
const LIB = '<%= projectRoot %>';
|
|
4
|
+
|
|
5
|
+
// Fixed header without a timestamp, so the committed outputs only change when tokens do.
|
|
6
|
+
const fileHeader = () => <%- fileHeader %>;
|
|
7
|
+
|
|
8
|
+
// The flutter transform group quotes every `font` token (font/flutter/literal), so only font
|
|
9
|
+
// families live under `font`; weights and line heights have their own categories.
|
|
10
|
+
module.exports = {
|
|
11
|
+
source: [`${LIB}/tokens/**/*.json`],
|
|
12
|
+
platforms: {
|
|
13
|
+
scss: {
|
|
14
|
+
transformGroup: 'scss',
|
|
15
|
+
buildPath: `${LIB}/generated/scss/`,
|
|
16
|
+
files: [{ destination: '_tokens.scss', format: 'scss/variables', options: { fileHeader } }],
|
|
17
|
+
},
|
|
18
|
+
css: {
|
|
19
|
+
transformGroup: 'css',
|
|
20
|
+
buildPath: `${LIB}/generated/css/`,
|
|
21
|
+
files: [{ destination: 'tokens.css', format: 'css/variables', options: { fileHeader } }],
|
|
22
|
+
},
|
|
23
|
+
ts: {
|
|
24
|
+
transformGroup: 'js',
|
|
25
|
+
buildPath: `${LIB}/src/lib/`,
|
|
26
|
+
files: [{ destination: 'tokens.ts', format: 'javascript/es6', options: { fileHeader } }],
|
|
27
|
+
},
|
|
28
|
+
dart: {
|
|
29
|
+
transformGroup: 'flutter',
|
|
30
|
+
buildPath: `${LIB}/generated/dart/lib/`,
|
|
31
|
+
files: [
|
|
32
|
+
{
|
|
33
|
+
destination: 'tokens.dart',
|
|
34
|
+
format: 'flutter/class.dart',
|
|
35
|
+
className: '<%= dartClassName %>',
|
|
36
|
+
options: { fileHeader },
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export 'src/<%= snakeName %>.dart';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
name: <%= snakeName %>
|
|
2
|
+
description: <%= title %> — shared Flutter package.
|
|
3
|
+
publish_to: none
|
|
4
|
+
version: 0.0.1+1
|
|
5
|
+
|
|
6
|
+
environment:
|
|
7
|
+
sdk: ">=3.0.0 <4.0.0"
|
|
8
|
+
|
|
9
|
+
dependencies:
|
|
10
|
+
flutter:
|
|
11
|
+
sdk: flutter
|
|
12
|
+
|
|
13
|
+
dev_dependencies:
|
|
14
|
+
flutter_test:
|
|
15
|
+
sdk: flutter
|
|
16
|
+
flutter_lints: ^3.0.0
|
|
17
|
+
|
|
18
|
+
flutter:
|
package/dist/src/generators/lib/files/ionic/src/lib/__fileName__/__fileName__.page.ts__template__
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: '<%= prefix %>-<%= fileName %>',
|
|
5
|
+
templateUrl: './<%= fileName %>.page.html',
|
|
6
|
+
styleUrls: ['./<%= fileName %>.page.scss'],
|
|
7
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
8
|
+
})
|
|
9
|
+
export class <%= className %>Page {}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
import { IonicModule } from '@ionic/angular';
|
|
4
|
+
|
|
5
|
+
import { <%= className %>Page } from './<%= fileName %>/<%= fileName %>.page';
|
|
6
|
+
|
|
7
|
+
@NgModule({
|
|
8
|
+
imports: [CommonModule, IonicModule],
|
|
9
|
+
declarations: [<%= className %>Page],
|
|
10
|
+
exports: [<%= className %>Page],
|
|
11
|
+
})
|
|
12
|
+
export class <%= className %>Module {}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# <%= importPath %>
|
|
2
|
+
|
|
3
|
+
Masks personal data for display. It changes what is shown, not what is stored or sent.
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
{{ customer.pan | piiMask: 'pan' }} <!-- XXXXX1234F -->
|
|
7
|
+
<span [<%= prefixCamel %>PiiMask]="customer.aadhaar" piiFormat="aadhaar"></span> <!-- XXXX XXXX 9012 -->
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
| Format | Example in → out |
|
|
11
|
+
| --------- | -------------------------------------------------- |
|
|
12
|
+
| `pan` | `ABCDE1234F` → `XXXXX1234F` |
|
|
13
|
+
| `aadhaar` | `1234 5678 9012` → `XXXX XXXX 9012` |
|
|
14
|
+
| `mobile` | `+91 98765 43210` → `+91 XXXXX X3210` |
|
|
15
|
+
| `mobile` | `+919876543210` → `+91XXXXXX3210` |
|
|
16
|
+
| `email` | `asha.k@example.com` → `aXXX@example.com` |
|
|
17
|
+
| `account` | `00123456789` → `XXXXXXX6789` |
|
|
18
|
+
| `card` | `4111 1111 1111 1111` → `XXXX XXXX XXXX 1111` |
|
|
19
|
+
| `ifsc` | `SBIN0001234` → shown as it is (not personal) |
|
|
20
|
+
|
|
21
|
+
A value that does not look like its format, or an unknown format, is masked completely, in any
|
|
22
|
+
script (Devanagari digits, regional-script names, full-width characters). At most half of a
|
|
23
|
+
value's letters and digits are ever shown. The directive replaces its element's content: use it on
|
|
24
|
+
an empty element; `[piiReveal]="true"` shows the value.
|
|
25
|
+
|
|
26
|
+
Custom formats and the mask character:
|
|
27
|
+
|
|
28
|
+
```ts
|
|
29
|
+
PiiMaskModule.forRoot({
|
|
30
|
+
maskChar: '•',
|
|
31
|
+
rules: { passport: { valid: /^[A-Z]\d{7}$/, visibleEnd: 3 } },
|
|
32
|
+
});
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
`maskPii(value, format, options)` in `pii-mask.ts` is the same logic without Angular.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Directive, ElementRef, Inject, Input, OnChanges, Optional } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
import { maskPii, PiiMaskOptions } from './pii-mask';
|
|
4
|
+
import { PII_MASK_OPTIONS } from './pii-mask.options';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* <span [<%= prefixCamel %>PiiMask]="customer.aadhaar" piiFormat="aadhaar"></span>
|
|
8
|
+
* Writes the masked value as the element's text (never HTML), replacing its content: use it on
|
|
9
|
+
* an empty element. `[piiReveal]="true"` (a real boolean) shows the value unmasked.
|
|
10
|
+
*/
|
|
11
|
+
@Directive({ selector: '[<%= prefixCamel %>PiiMask]' })
|
|
12
|
+
export class PiiMaskDirective implements OnChanges {
|
|
13
|
+
@Input('<%= prefixCamel %>PiiMask') value: unknown;
|
|
14
|
+
@Input() piiFormat = '';
|
|
15
|
+
@Input() piiReveal = false;
|
|
16
|
+
|
|
17
|
+
constructor(
|
|
18
|
+
private readonly element: ElementRef<HTMLElement>,
|
|
19
|
+
@Optional() @Inject(PII_MASK_OPTIONS) private readonly options: PiiMaskOptions | null,
|
|
20
|
+
) {}
|
|
21
|
+
|
|
22
|
+
ngOnChanges(): void {
|
|
23
|
+
const plain = this.value === null || this.value === undefined ? '' : String(this.value);
|
|
24
|
+
// Only a real true reveals: a string attribute such as piiReveal="false" keeps it masked.
|
|
25
|
+
this.element.nativeElement.textContent =
|
|
26
|
+
this.piiReveal === true
|
|
27
|
+
? plain
|
|
28
|
+
: maskPii(this.value, this.piiFormat, this.options ?? {});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ModuleWithProviders, NgModule } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
import { PiiMaskOptions } from './pii-mask';
|
|
4
|
+
import { PiiMaskDirective } from './pii-mask.directive';
|
|
5
|
+
import { PII_MASK_OPTIONS } from './pii-mask.options';
|
|
6
|
+
import { PiiMaskPipe } from './pii-mask.pipe';
|
|
7
|
+
|
|
8
|
+
@NgModule({
|
|
9
|
+
declarations: [PiiMaskPipe, PiiMaskDirective],
|
|
10
|
+
exports: [PiiMaskPipe, PiiMaskDirective],
|
|
11
|
+
})
|
|
12
|
+
export class PiiMaskModule {
|
|
13
|
+
/** Once, in the root module, to set the mask character or add formats. */
|
|
14
|
+
static forRoot(options: PiiMaskOptions = {}): ModuleWithProviders<PiiMaskModule> {
|
|
15
|
+
return { ngModule: PiiMaskModule, providers: [{ provide: PII_MASK_OPTIONS, useValue: options }] };
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
import { PiiMaskOptions } from './pii-mask';
|
|
4
|
+
|
|
5
|
+
/** Mask character and custom formats; provide it with PiiMaskModule.forRoot(…). */
|
|
6
|
+
export const PII_MASK_OPTIONS = new InjectionToken<PiiMaskOptions>('PII_MASK_OPTIONS');
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Inject, Optional, Pipe, PipeTransform } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
import { maskPii, PiiMaskOptions } from './pii-mask';
|
|
4
|
+
import { PII_MASK_OPTIONS } from './pii-mask.options';
|
|
5
|
+
|
|
6
|
+
/** {{ customer.pan | piiMask: 'pan' }} → XXXXX1234F */
|
|
7
|
+
@Pipe({ name: 'piiMask' })
|
|
8
|
+
export class PiiMaskPipe implements PipeTransform {
|
|
9
|
+
constructor(@Optional() @Inject(PII_MASK_OPTIONS) private readonly options: PiiMaskOptions | null) {}
|
|
10
|
+
|
|
11
|
+
transform(value: unknown, format: string): string {
|
|
12
|
+
return maskPii(value, format, this.options ?? {});
|
|
13
|
+
}
|
|
14
|
+
}
|