From b23314e90f98d317c7bf8266fbc1050e0d9b40d3 Mon Sep 17 00:00:00 2001 From: deyan Date: Sun, 9 Jun 2024 22:11:42 +0200 Subject: [PATCH 1/4] fix: rename ng-fantasticon to ngx-fantasticon --- packages/ng-fantasticon/src/index.ts | 2 -- .../.eslintrc.json | 2 +- .../CHANGELOG.md | 0 .../README.md | 14 +++++------ .../jest.config.ts | 4 ++-- .../ng-package.json | 2 +- .../package.json | 2 +- .../project.json | 24 +++++++++---------- packages/ngx-fantasticon/src/index.ts | 2 ++ .../ngx-fantasticon.component.html} | 0 .../ngx-fantasticon.component.scss} | 0 .../components/ngx-fantasticon.component.ts} | 8 +++---- .../src/lib/ngx-fantasticon.module.ts} | 14 +++++------ .../src/test-setup.ts | 0 .../tsconfig.json | 0 .../tsconfig.lib.json | 0 .../tsconfig.lib.prod.json | 0 .../tsconfig.spec.json | 0 18 files changed, 37 insertions(+), 37 deletions(-) delete mode 100644 packages/ng-fantasticon/src/index.ts rename packages/{ng-fantasticon => ngx-fantasticon}/.eslintrc.json (94%) rename packages/{ng-fantasticon => ngx-fantasticon}/CHANGELOG.md (100%) rename packages/{ng-fantasticon => ngx-fantasticon}/README.md (60%) rename packages/{ng-fantasticon => ngx-fantasticon}/jest.config.ts (85%) rename packages/{ng-fantasticon => ngx-fantasticon}/ng-package.json (76%) rename packages/{ng-fantasticon => ngx-fantasticon}/package.json (88%) rename packages/{ng-fantasticon => ngx-fantasticon}/project.json (71%) create mode 100644 packages/ngx-fantasticon/src/index.ts rename packages/{ng-fantasticon/src/lib/components/ng-fantasticon.component.html => ngx-fantasticon/src/lib/components/ngx-fantasticon.component.html} (100%) rename packages/{ng-fantasticon/src/lib/components/ng-fantasticon.component.scss => ngx-fantasticon/src/lib/components/ngx-fantasticon.component.scss} (100%) rename packages/{ng-fantasticon/src/lib/components/ng-fantasticon.component.ts => ngx-fantasticon/src/lib/components/ngx-fantasticon.component.ts} (80%) rename packages/{ng-fantasticon/src/lib/ng-fantasticon.module.ts => ngx-fantasticon/src/lib/ngx-fantasticon.module.ts} (70%) rename packages/{ng-fantasticon => ngx-fantasticon}/src/test-setup.ts (100%) rename packages/{ng-fantasticon => ngx-fantasticon}/tsconfig.json (100%) rename packages/{ng-fantasticon => ngx-fantasticon}/tsconfig.lib.json (100%) rename packages/{ng-fantasticon => ngx-fantasticon}/tsconfig.lib.prod.json (100%) rename packages/{ng-fantasticon => ngx-fantasticon}/tsconfig.spec.json (100%) diff --git a/packages/ng-fantasticon/src/index.ts b/packages/ng-fantasticon/src/index.ts deleted file mode 100644 index 2fd36f1..0000000 --- a/packages/ng-fantasticon/src/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './lib/ng-fantasticon.module' -export * from './lib/components/ng-fantasticon.component' diff --git a/packages/ng-fantasticon/.eslintrc.json b/packages/ngx-fantasticon/.eslintrc.json similarity index 94% rename from packages/ng-fantasticon/.eslintrc.json rename to packages/ngx-fantasticon/.eslintrc.json index b5cfb55..94132b7 100644 --- a/packages/ng-fantasticon/.eslintrc.json +++ b/packages/ngx-fantasticon/.eslintrc.json @@ -17,7 +17,7 @@ "error", { "type": "element", - "prefix": "ng-fantasticon", + "prefix": "ngx-fantasticon", "style": "kebab-case" } ] diff --git a/packages/ng-fantasticon/CHANGELOG.md b/packages/ngx-fantasticon/CHANGELOG.md similarity index 100% rename from packages/ng-fantasticon/CHANGELOG.md rename to packages/ngx-fantasticon/CHANGELOG.md diff --git a/packages/ng-fantasticon/README.md b/packages/ngx-fantasticon/README.md similarity index 60% rename from packages/ng-fantasticon/README.md rename to packages/ngx-fantasticon/README.md index bde1343..e008e22 100644 --- a/packages/ng-fantasticon/README.md +++ b/packages/ngx-fantasticon/README.md @@ -1,4 +1,4 @@ -# ng-fantasticon +# ngx-fantasticon This library provides a helper component for the [@zupit-it/fantasticon](https://www.npmjs.com/package/@zupit-it/fantasticon) package. It allows you to easily use the icons generated by `zupit-fantasticon` in your Angular application. @@ -8,25 +8,25 @@ Install [@zupit-it/fantasticon](https://www.npmjs.com/package/@zupit-it/fantasti ## Usage -You can use the `NgFantasticonComponent` to display the icons in your Angular application. -First you will need to import the `NgFantasticonModule` and to provide your `Icons` enum generated by `zupit-fantasticon` via the `forRoot()` function: +You can use the `NgxFantasticonComponent` to display the icons in your Angular application. +First you will need to import the `NgxFantasticonModule` and to provide your `Icons` enum generated by `zupit-fantasticon` via the `forRoot()` function: `app.module.ts`: ```typescript import { Icons } from '../path-to-your-icons-enum' -import { NgFantasticonModule } from '@zupit-it/ng-fantasticon' +import { NgxFantasticonModule } from '@zupit-it/ngx-fantasticon' @NgModule({ - imports: [NgFantasticonModule.forRoot(Icons)] + imports: [NgxFantasticonModule.forRoot(Icons)] }) export class AppModule {} ``` -Then you can use the `ng-fantasticon` component in your templates: +Then you can use the `ngx-fantasticon` component in your templates: ```html - + ``` If you don't provide a valid icon (i.e. an icon that is not in the enum), the component will not be displayed and an error will be thrown in the console. diff --git a/packages/ng-fantasticon/jest.config.ts b/packages/ngx-fantasticon/jest.config.ts similarity index 85% rename from packages/ng-fantasticon/jest.config.ts rename to packages/ngx-fantasticon/jest.config.ts index 2b85a67..2bd1ff4 100644 --- a/packages/ng-fantasticon/jest.config.ts +++ b/packages/ngx-fantasticon/jest.config.ts @@ -1,9 +1,9 @@ /* eslint-disable */ export default { - displayName: 'ng-fantasticon', + displayName: 'ngx-fantasticon', preset: '../../jest.preset.js', setupFilesAfterEnv: ['/src/test-setup.ts'], - coverageDirectory: '../../coverage/packages/ng-fantasticon', + coverageDirectory: '../../coverage/packages/ngx-fantasticon', transform: { '^.+\\.(ts|mjs|js|html)$': [ 'jest-preset-angular', diff --git a/packages/ng-fantasticon/ng-package.json b/packages/ngx-fantasticon/ng-package.json similarity index 76% rename from packages/ng-fantasticon/ng-package.json rename to packages/ngx-fantasticon/ng-package.json index d2484a3..1ca44a1 100644 --- a/packages/ng-fantasticon/ng-package.json +++ b/packages/ngx-fantasticon/ng-package.json @@ -1,6 +1,6 @@ { "$schema": "../../node_modules/ng-packagr/ng-package.schema.json", - "dest": "../../dist/packages/ng-fantasticon", + "dest": "../../dist/packages/ngx-fantasticon", "lib": { "entryFile": "src/index.ts" }, diff --git a/packages/ng-fantasticon/package.json b/packages/ngx-fantasticon/package.json similarity index 88% rename from packages/ng-fantasticon/package.json rename to packages/ngx-fantasticon/package.json index 5b62146..526fbc6 100644 --- a/packages/ng-fantasticon/package.json +++ b/packages/ngx-fantasticon/package.json @@ -1,5 +1,5 @@ { - "name": "@zupit-it/ng-fantasticon", + "name": "@zupit-it/ngx-fantasticon", "version": "0.1.1", "peerDependencies": { "@angular/common": "^16.2.0", diff --git a/packages/ng-fantasticon/project.json b/packages/ngx-fantasticon/project.json similarity index 71% rename from packages/ng-fantasticon/project.json rename to packages/ngx-fantasticon/project.json index 9b0ac30..775c31d 100644 --- a/packages/ng-fantasticon/project.json +++ b/packages/ngx-fantasticon/project.json @@ -1,7 +1,7 @@ { - "name": "ng-fantasticon", + "name": "ngx-fantasticon", "$schema": "../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "packages/ng-fantasticon/src", + "sourceRoot": "packages/ngx-fantasticon/src", "prefix": "zupit-it", "tags": [], "projectType": "library", @@ -10,14 +10,14 @@ "executor": "@nx/angular:ng-packagr-lite", "outputs": ["{workspaceRoot}/dist/{projectRoot}"], "options": { - "project": "packages/ng-fantasticon/ng-package.json" + "project": "packages/ngx-fantasticon/ng-package.json" }, "configurations": { "production": { - "tsConfig": "packages/ng-fantasticon/tsconfig.lib.prod.json" + "tsConfig": "packages/ngx-fantasticon/tsconfig.lib.prod.json" }, "development": { - "tsConfig": "packages/ng-fantasticon/tsconfig.lib.json" + "tsConfig": "packages/ngx-fantasticon/tsconfig.lib.json" } }, "defaultConfiguration": "production" @@ -27,7 +27,7 @@ "options": { "commands": [ { - "command": "npx nx format:check --projects ng-fantasticon" + "command": "npx nx format:check --projects ngx-fantasticon" } ], "parallel": false @@ -38,9 +38,9 @@ "outputs": ["{options.outputFile}"], "options": { "lintFilePatterns": [ - "packages/ng-fantasticon/**/*.ts", - "packages/ng-fantasticon/**/*.html", - "packages/ng-fantasticon/package.json" + "packages/ngx-fantasticon/**/*.ts", + "packages/ngx-fantasticon/**/*.html", + "packages/ngx-fantasticon/package.json" ] } }, @@ -48,7 +48,7 @@ "executor": "@nx/jest:jest", "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "options": { - "jestConfig": "packages/ng-fantasticon/jest.config.ts", + "jestConfig": "packages/ngx-fantasticon/jest.config.ts", "passWithNoTests": true }, "configurations": { @@ -63,8 +63,8 @@ "options": { "preset": "conventional", "postTargets": [ - "ng-fantasticon:release:github", - "ng-fantasticon:publish" + "ngx-fantasticon:release:github", + "ngx-fantasticon:publish" ], "push": true } diff --git a/packages/ngx-fantasticon/src/index.ts b/packages/ngx-fantasticon/src/index.ts new file mode 100644 index 0000000..f2b6ce8 --- /dev/null +++ b/packages/ngx-fantasticon/src/index.ts @@ -0,0 +1,2 @@ +export * from './lib/ngx-fantasticon.module' +export * from './lib/components/ngx-fantasticon.component' diff --git a/packages/ng-fantasticon/src/lib/components/ng-fantasticon.component.html b/packages/ngx-fantasticon/src/lib/components/ngx-fantasticon.component.html similarity index 100% rename from packages/ng-fantasticon/src/lib/components/ng-fantasticon.component.html rename to packages/ngx-fantasticon/src/lib/components/ngx-fantasticon.component.html diff --git a/packages/ng-fantasticon/src/lib/components/ng-fantasticon.component.scss b/packages/ngx-fantasticon/src/lib/components/ngx-fantasticon.component.scss similarity index 100% rename from packages/ng-fantasticon/src/lib/components/ng-fantasticon.component.scss rename to packages/ngx-fantasticon/src/lib/components/ngx-fantasticon.component.scss diff --git a/packages/ng-fantasticon/src/lib/components/ng-fantasticon.component.ts b/packages/ngx-fantasticon/src/lib/components/ngx-fantasticon.component.ts similarity index 80% rename from packages/ng-fantasticon/src/lib/components/ng-fantasticon.component.ts rename to packages/ngx-fantasticon/src/lib/components/ngx-fantasticon.component.ts index 440c715..ef93cc2 100644 --- a/packages/ng-fantasticon/src/lib/components/ng-fantasticon.component.ts +++ b/packages/ngx-fantasticon/src/lib/components/ngx-fantasticon.component.ts @@ -13,11 +13,11 @@ export const ICONS_NAMES = new InjectionToken>( ) @Component({ - selector: 'ng-fantasticon', - templateUrl: './ng-fantasticon.component.html', - styleUrls: ['./ng-fantasticon.component.scss'] + selector: 'ngx-fantasticon', + templateUrl: './ngx-fantasticon.component.html', + styleUrls: ['./ngx-fantasticon.component.scss'] }) -export class NgFantasticonComponent { +export class NgxFantasticonComponent { private _icon: string @Input() set icon(value: string) { diff --git a/packages/ng-fantasticon/src/lib/ng-fantasticon.module.ts b/packages/ngx-fantasticon/src/lib/ngx-fantasticon.module.ts similarity index 70% rename from packages/ng-fantasticon/src/lib/ng-fantasticon.module.ts rename to packages/ngx-fantasticon/src/lib/ngx-fantasticon.module.ts index f31b141..89a57f2 100644 --- a/packages/ng-fantasticon/src/lib/ng-fantasticon.module.ts +++ b/packages/ngx-fantasticon/src/lib/ngx-fantasticon.module.ts @@ -4,16 +4,16 @@ import { CUSTOM_ICONS_ENUM, ICONS_NAMES, IconsEnum, - NgFantasticonComponent -} from './components/ng-fantasticon.component' + NgxFantasticonComponent +} from './components/ngx-fantasticon.component' @NgModule({ imports: [CommonModule], - declarations: [NgFantasticonComponent], - exports: [NgFantasticonComponent] + declarations: [NgxFantasticonComponent], + exports: [NgxFantasticonComponent] }) -export class NgFantasticonModule { - static forRoot(icons: IconsEnum): ModuleWithProviders { +export class NgxFantasticonModule { + static forRoot(icons: IconsEnum): ModuleWithProviders { if (!icons) { throw new Error( 'CUSTOM_ICONS_ENUM not provided. Please provide the Icons enum.' @@ -30,7 +30,7 @@ export class NgFantasticonModule { const iconsNames = new Set(iconsArray) return { - ngModule: NgFantasticonModule, + ngModule: NgxFantasticonModule, providers: [ { provide: CUSTOM_ICONS_ENUM, useValue: icons }, { provide: ICONS_NAMES, useValue: iconsNames } diff --git a/packages/ng-fantasticon/src/test-setup.ts b/packages/ngx-fantasticon/src/test-setup.ts similarity index 100% rename from packages/ng-fantasticon/src/test-setup.ts rename to packages/ngx-fantasticon/src/test-setup.ts diff --git a/packages/ng-fantasticon/tsconfig.json b/packages/ngx-fantasticon/tsconfig.json similarity index 100% rename from packages/ng-fantasticon/tsconfig.json rename to packages/ngx-fantasticon/tsconfig.json diff --git a/packages/ng-fantasticon/tsconfig.lib.json b/packages/ngx-fantasticon/tsconfig.lib.json similarity index 100% rename from packages/ng-fantasticon/tsconfig.lib.json rename to packages/ngx-fantasticon/tsconfig.lib.json diff --git a/packages/ng-fantasticon/tsconfig.lib.prod.json b/packages/ngx-fantasticon/tsconfig.lib.prod.json similarity index 100% rename from packages/ng-fantasticon/tsconfig.lib.prod.json rename to packages/ngx-fantasticon/tsconfig.lib.prod.json diff --git a/packages/ng-fantasticon/tsconfig.spec.json b/packages/ngx-fantasticon/tsconfig.spec.json similarity index 100% rename from packages/ng-fantasticon/tsconfig.spec.json rename to packages/ngx-fantasticon/tsconfig.spec.json From e623ff62e87b262f6351e79f37bd238893507ce3 Mon Sep 17 00:00:00 2001 From: deyan Date: Sun, 9 Jun 2024 22:13:48 +0200 Subject: [PATCH 2/4] fix: rename ng-form to ngx-form --- packages/ng-form/src/index.ts | 2 -- packages/{ng-form => ngx-form}/.eslintrc.json | 2 +- packages/{ng-form => ngx-form}/CHANGELOG.md | 0 packages/{ng-form => ngx-form}/README.md | 4 ++-- packages/{ng-form => ngx-form}/jest.config.ts | 4 ++-- .../{ng-form => ngx-form}/ng-package.json | 2 +- packages/{ng-form => ngx-form}/package.json | 2 +- packages/{ng-form => ngx-form}/project.json | 22 +++++++++---------- packages/ngx-form/src/index.ts | 2 ++ .../lib/components/form/form.component.html | 0 .../lib/components/form/form.component.scss | 0 .../components/form/form.component.spec.ts | 0 .../src/lib/components/form/form.component.ts | 2 +- .../{ng-form => ngx-form}/src/lib/config.ts | 0 .../lib/directives/submit.directive.spec.ts | 0 .../src/lib/directives/submit.directive.ts | 0 .../src/lib/ngx-form.module.ts} | 2 +- .../src/lib/utils/errors.ts | 0 .../src/lib/utils/form.spec.ts | 0 .../src/lib/utils/form.ts | 0 .../src/lib/utils/validators.spec.ts | 0 .../src/lib/utils/validators.ts | 0 .../{ng-form => ngx-form}/src/test-setup.ts | 0 packages/{ng-form => ngx-form}/tsconfig.json | 0 .../{ng-form => ngx-form}/tsconfig.lib.json | 0 .../tsconfig.lib.prod.json | 0 .../{ng-form => ngx-form}/tsconfig.spec.json | 0 27 files changed, 22 insertions(+), 22 deletions(-) delete mode 100644 packages/ng-form/src/index.ts rename packages/{ng-form => ngx-form}/.eslintrc.json (95%) rename packages/{ng-form => ngx-form}/CHANGELOG.md (100%) rename packages/{ng-form => ngx-form}/README.md (99%) rename packages/{ng-form => ngx-form}/jest.config.ts (87%) rename packages/{ng-form => ngx-form}/ng-package.json (79%) rename packages/{ng-form => ngx-form}/package.json (90%) rename packages/{ng-form => ngx-form}/project.json (73%) create mode 100644 packages/ngx-form/src/index.ts rename packages/{ng-form => ngx-form}/src/lib/components/form/form.component.html (100%) rename packages/{ng-form => ngx-form}/src/lib/components/form/form.component.scss (100%) rename packages/{ng-form => ngx-form}/src/lib/components/form/form.component.spec.ts (100%) rename packages/{ng-form => ngx-form}/src/lib/components/form/form.component.ts (98%) rename packages/{ng-form => ngx-form}/src/lib/config.ts (100%) rename packages/{ng-form => ngx-form}/src/lib/directives/submit.directive.spec.ts (100%) rename packages/{ng-form => ngx-form}/src/lib/directives/submit.directive.ts (100%) rename packages/{ng-form/src/lib/ng-form.module.ts => ngx-form/src/lib/ngx-form.module.ts} (92%) rename packages/{ng-form => ngx-form}/src/lib/utils/errors.ts (100%) rename packages/{ng-form => ngx-form}/src/lib/utils/form.spec.ts (100%) rename packages/{ng-form => ngx-form}/src/lib/utils/form.ts (100%) rename packages/{ng-form => ngx-form}/src/lib/utils/validators.spec.ts (100%) rename packages/{ng-form => ngx-form}/src/lib/utils/validators.ts (100%) rename packages/{ng-form => ngx-form}/src/test-setup.ts (100%) rename packages/{ng-form => ngx-form}/tsconfig.json (100%) rename packages/{ng-form => ngx-form}/tsconfig.lib.json (100%) rename packages/{ng-form => ngx-form}/tsconfig.lib.prod.json (100%) rename packages/{ng-form => ngx-form}/tsconfig.spec.json (100%) diff --git a/packages/ng-form/src/index.ts b/packages/ng-form/src/index.ts deleted file mode 100644 index 4eeaccf..0000000 --- a/packages/ng-form/src/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './lib/ng-form.module' -export * from './lib/utils/form' diff --git a/packages/ng-form/.eslintrc.json b/packages/ngx-form/.eslintrc.json similarity index 95% rename from packages/ng-form/.eslintrc.json rename to packages/ngx-form/.eslintrc.json index da8c632..b7b8ff9 100644 --- a/packages/ng-form/.eslintrc.json +++ b/packages/ngx-form/.eslintrc.json @@ -17,7 +17,7 @@ "error", { "type": "element", - "prefix": "ng-form", + "prefix": "ngx-form", "style": "kebab-case" } ] diff --git a/packages/ng-form/CHANGELOG.md b/packages/ngx-form/CHANGELOG.md similarity index 100% rename from packages/ng-form/CHANGELOG.md rename to packages/ngx-form/CHANGELOG.md diff --git a/packages/ng-form/README.md b/packages/ngx-form/README.md similarity index 99% rename from packages/ng-form/README.md rename to packages/ngx-form/README.md index 28bd91e..e95efd5 100644 --- a/packages/ng-form/README.md +++ b/packages/ngx-form/README.md @@ -1,4 +1,4 @@ -# ng-form +# ngx-form An Angular library to ease the management of Angular Forms. @@ -21,7 +21,7 @@ Feel free to try it out and suggest a feature or contribute yourself if you feel ## Installation ```shell -npm install -D @zupit-it/ng-form +npm install -D @zupit-it/ngx-form ``` ## Docs diff --git a/packages/ng-form/jest.config.ts b/packages/ngx-form/jest.config.ts similarity index 87% rename from packages/ng-form/jest.config.ts rename to packages/ngx-form/jest.config.ts index 0d62ea2..9ba7923 100644 --- a/packages/ng-form/jest.config.ts +++ b/packages/ngx-form/jest.config.ts @@ -1,9 +1,9 @@ /* eslint-disable */ export default { - displayName: 'ng-form', + displayName: 'ngx-form', preset: '../../jest.preset.js', setupFilesAfterEnv: ['/src/test-setup.ts'], - coverageDirectory: '../../coverage/packages/ng-form', + coverageDirectory: '../../coverage/packages/ngx-form', transform: { '^.+\\.(ts|mjs|js|html)$': [ 'jest-preset-angular', diff --git a/packages/ng-form/ng-package.json b/packages/ngx-form/ng-package.json similarity index 79% rename from packages/ng-form/ng-package.json rename to packages/ngx-form/ng-package.json index f9345ee..4df349b 100644 --- a/packages/ng-form/ng-package.json +++ b/packages/ngx-form/ng-package.json @@ -1,6 +1,6 @@ { "$schema": "../../node_modules/ng-packagr/ng-package.schema.json", - "dest": "../../dist/packages/ng-form", + "dest": "../../dist/packages/ngx-form", "lib": { "entryFile": "src/index.ts" }, diff --git a/packages/ng-form/package.json b/packages/ngx-form/package.json similarity index 90% rename from packages/ng-form/package.json rename to packages/ngx-form/package.json index bfa42e0..5e13f82 100644 --- a/packages/ng-form/package.json +++ b/packages/ngx-form/package.json @@ -1,5 +1,5 @@ { - "name": "@zupit-it/ng-form", + "name": "@zupit-it/ngx-form", "version": "0.1.0", "peerDependencies": { "@angular/common": "^16.2.0", diff --git a/packages/ng-form/project.json b/packages/ngx-form/project.json similarity index 73% rename from packages/ng-form/project.json rename to packages/ngx-form/project.json index 2389093..1fe642e 100644 --- a/packages/ng-form/project.json +++ b/packages/ngx-form/project.json @@ -1,7 +1,7 @@ { - "name": "ng-form", + "name": "ngx-form", "$schema": "../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "packages/ng-form/src", + "sourceRoot": "packages/ngx-form/src", "prefix": "zupit-it", "tags": [], "projectType": "library", @@ -10,14 +10,14 @@ "executor": "@nx/angular:ng-packagr-lite", "outputs": ["{workspaceRoot}/dist/{projectRoot}"], "options": { - "project": "packages/ng-form/ng-package.json" + "project": "packages/ngx-form/ng-package.json" }, "configurations": { "production": { - "tsConfig": "packages/ng-form/tsconfig.lib.prod.json" + "tsConfig": "packages/ngx-form/tsconfig.lib.prod.json" }, "development": { - "tsConfig": "packages/ng-form/tsconfig.lib.json" + "tsConfig": "packages/ngx-form/tsconfig.lib.json" } }, "defaultConfiguration": "production" @@ -27,7 +27,7 @@ "options": { "commands": [ { - "command": "npx nx format:check --projects ng-form" + "command": "npx nx format:check --projects ngx-form" } ], "parallel": false @@ -38,9 +38,9 @@ "outputs": ["{options.outputFile}"], "options": { "lintFilePatterns": [ - "packages/ng-form/**/*.ts", - "packages/ng-form/**/*.html", - "packages/ng-form/package.json" + "packages/ngx-form/**/*.ts", + "packages/ngx-form/**/*.html", + "packages/ngx-form/package.json" ] } }, @@ -48,7 +48,7 @@ "executor": "@nx/jest:jest", "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "options": { - "jestConfig": "packages/ng-form/jest.config.ts", + "jestConfig": "packages/ngx-form/jest.config.ts", "passWithNoTests": true }, "configurations": { @@ -62,7 +62,7 @@ "executor": "@jscutlery/semver:version", "options": { "preset": "conventional", - "postTargets": ["ng-form:release:github", "ng-form:publish"], + "postTargets": ["ngx-form:release:github", "ngx-form:publish"], "push": true } }, diff --git a/packages/ngx-form/src/index.ts b/packages/ngx-form/src/index.ts new file mode 100644 index 0000000..e0a6e3b --- /dev/null +++ b/packages/ngx-form/src/index.ts @@ -0,0 +1,2 @@ +export * from './lib/ngx-form.module' +export * from './lib/utils/form' diff --git a/packages/ng-form/src/lib/components/form/form.component.html b/packages/ngx-form/src/lib/components/form/form.component.html similarity index 100% rename from packages/ng-form/src/lib/components/form/form.component.html rename to packages/ngx-form/src/lib/components/form/form.component.html diff --git a/packages/ng-form/src/lib/components/form/form.component.scss b/packages/ngx-form/src/lib/components/form/form.component.scss similarity index 100% rename from packages/ng-form/src/lib/components/form/form.component.scss rename to packages/ngx-form/src/lib/components/form/form.component.scss diff --git a/packages/ng-form/src/lib/components/form/form.component.spec.ts b/packages/ngx-form/src/lib/components/form/form.component.spec.ts similarity index 100% rename from packages/ng-form/src/lib/components/form/form.component.spec.ts rename to packages/ngx-form/src/lib/components/form/form.component.spec.ts diff --git a/packages/ng-form/src/lib/components/form/form.component.ts b/packages/ngx-form/src/lib/components/form/form.component.ts similarity index 98% rename from packages/ng-form/src/lib/components/form/form.component.ts rename to packages/ngx-form/src/lib/components/form/form.component.ts index dec4826..9a10e6f 100644 --- a/packages/ng-form/src/lib/components/form/form.component.ts +++ b/packages/ngx-form/src/lib/components/form/form.component.ts @@ -10,7 +10,7 @@ import { FormGroup } from '@angular/forms' import { setFormEnabled } from '../../utils/form' @Component({ - selector: 'ng-form', + selector: 'ngx-form', templateUrl: './form.component.html', styleUrls: ['./form.component.scss'], changeDetection: ChangeDetectionStrategy.OnPush diff --git a/packages/ng-form/src/lib/config.ts b/packages/ngx-form/src/lib/config.ts similarity index 100% rename from packages/ng-form/src/lib/config.ts rename to packages/ngx-form/src/lib/config.ts diff --git a/packages/ng-form/src/lib/directives/submit.directive.spec.ts b/packages/ngx-form/src/lib/directives/submit.directive.spec.ts similarity index 100% rename from packages/ng-form/src/lib/directives/submit.directive.spec.ts rename to packages/ngx-form/src/lib/directives/submit.directive.spec.ts diff --git a/packages/ng-form/src/lib/directives/submit.directive.ts b/packages/ngx-form/src/lib/directives/submit.directive.ts similarity index 100% rename from packages/ng-form/src/lib/directives/submit.directive.ts rename to packages/ngx-form/src/lib/directives/submit.directive.ts diff --git a/packages/ng-form/src/lib/ng-form.module.ts b/packages/ngx-form/src/lib/ngx-form.module.ts similarity index 92% rename from packages/ng-form/src/lib/ng-form.module.ts rename to packages/ngx-form/src/lib/ngx-form.module.ts index 296f406..e2734f6 100644 --- a/packages/ng-form/src/lib/ng-form.module.ts +++ b/packages/ngx-form/src/lib/ngx-form.module.ts @@ -8,4 +8,4 @@ import { SubmitDirective } from './directives/submit.directive' imports: [CommonModule, ReactiveFormsModule], declarations: [FormComponent, SubmitDirective] }) -export class NgFormModule {} +export class NgxFormModule {} diff --git a/packages/ng-form/src/lib/utils/errors.ts b/packages/ngx-form/src/lib/utils/errors.ts similarity index 100% rename from packages/ng-form/src/lib/utils/errors.ts rename to packages/ngx-form/src/lib/utils/errors.ts diff --git a/packages/ng-form/src/lib/utils/form.spec.ts b/packages/ngx-form/src/lib/utils/form.spec.ts similarity index 100% rename from packages/ng-form/src/lib/utils/form.spec.ts rename to packages/ngx-form/src/lib/utils/form.spec.ts diff --git a/packages/ng-form/src/lib/utils/form.ts b/packages/ngx-form/src/lib/utils/form.ts similarity index 100% rename from packages/ng-form/src/lib/utils/form.ts rename to packages/ngx-form/src/lib/utils/form.ts diff --git a/packages/ng-form/src/lib/utils/validators.spec.ts b/packages/ngx-form/src/lib/utils/validators.spec.ts similarity index 100% rename from packages/ng-form/src/lib/utils/validators.spec.ts rename to packages/ngx-form/src/lib/utils/validators.spec.ts diff --git a/packages/ng-form/src/lib/utils/validators.ts b/packages/ngx-form/src/lib/utils/validators.ts similarity index 100% rename from packages/ng-form/src/lib/utils/validators.ts rename to packages/ngx-form/src/lib/utils/validators.ts diff --git a/packages/ng-form/src/test-setup.ts b/packages/ngx-form/src/test-setup.ts similarity index 100% rename from packages/ng-form/src/test-setup.ts rename to packages/ngx-form/src/test-setup.ts diff --git a/packages/ng-form/tsconfig.json b/packages/ngx-form/tsconfig.json similarity index 100% rename from packages/ng-form/tsconfig.json rename to packages/ngx-form/tsconfig.json diff --git a/packages/ng-form/tsconfig.lib.json b/packages/ngx-form/tsconfig.lib.json similarity index 100% rename from packages/ng-form/tsconfig.lib.json rename to packages/ngx-form/tsconfig.lib.json diff --git a/packages/ng-form/tsconfig.lib.prod.json b/packages/ngx-form/tsconfig.lib.prod.json similarity index 100% rename from packages/ng-form/tsconfig.lib.prod.json rename to packages/ngx-form/tsconfig.lib.prod.json diff --git a/packages/ng-form/tsconfig.spec.json b/packages/ngx-form/tsconfig.spec.json similarity index 100% rename from packages/ng-form/tsconfig.spec.json rename to packages/ngx-form/tsconfig.spec.json From ce85d2925ddecb31c6d5d63253fbbed3afc9751a Mon Sep 17 00:00:00 2001 From: deyan Date: Sun, 9 Jun 2024 22:16:47 +0200 Subject: [PATCH 3/4] fix: rename ng-auth to ngx-auth --- packages/{ng-auth => ngx-auth}/.eslintrc.json | 2 +- packages/{ng-auth => ngx-auth}/CHANGELOG.md | 0 packages/{ng-auth => ngx-auth}/README.md | 4 ++-- packages/{ng-auth => ngx-auth}/jest.config.ts | 4 ++-- .../{ng-auth => ngx-auth}/ng-package.json | 2 +- packages/{ng-auth => ngx-auth}/package.json | 2 +- packages/{ng-auth => ngx-auth}/project.json | 20 +++++++++---------- packages/{ng-auth => ngx-auth}/src/index.ts | 2 +- .../{ng-auth => ngx-auth}/src/lib/config.ts | 0 .../directives/auth-conditional.directive.ts | 0 .../lib/directives/is-auth.directive.spec.ts | 0 .../src/lib/directives/is-auth.directive.ts | 0 .../lib/directives/user-has.directive.spec.ts | 0 .../src/lib/directives/user-has.directive.ts | 0 .../src/lib/directives/user.directive.ts | 0 .../src/lib/guards/anon-user.guard.ts | 0 .../guards/auth-user-predicate.guard.spec.ts | 0 .../lib/guards/auth-user-predicate.guard.ts | 0 .../src/lib/guards/auth-user.guard.spec.ts | 0 .../src/lib/guards/auth-user.guard.ts | 0 .../interceptors/auth-expired.interceptor.ts | 0 .../src/lib/interceptors/auth.interceptor.ts | 0 .../src/lib/interfaces.ts | 0 .../src/lib/ngx-auth.module.ts} | 0 .../lib/providers/authentication.provider.ts | 0 .../dynamic-storage.provider.spec.ts | 0 .../lib/providers/storage.provider.spec.ts | 0 .../src/lib/providers/storage.provider.ts | 0 .../src/lib/resolvers/user.resolver.spec.ts | 0 .../src/lib/resolvers/user.resolver.ts | 0 ...ntication.service-dynamics-storage.spec.ts | 0 .../services/authentication.service.spec.ts | 0 .../lib/services/authentication.service.ts | 0 .../src/lib/services/ngx-auth.service.ts | 0 .../src/lib/utils/user-conditions.ts | 0 .../{ng-auth => ngx-auth}/src/test-setup.ts | 0 packages/{ng-auth => ngx-auth}/tsconfig.json | 0 .../{ng-auth => ngx-auth}/tsconfig.lib.json | 0 .../tsconfig.lib.prod.json | 0 .../{ng-auth => ngx-auth}/tsconfig.spec.json | 0 40 files changed, 18 insertions(+), 18 deletions(-) rename packages/{ng-auth => ngx-auth}/.eslintrc.json (95%) rename packages/{ng-auth => ngx-auth}/CHANGELOG.md (100%) rename packages/{ng-auth => ngx-auth}/README.md (99%) rename packages/{ng-auth => ngx-auth}/jest.config.ts (89%) rename packages/{ng-auth => ngx-auth}/ng-package.json (79%) rename packages/{ng-auth => ngx-auth}/package.json (90%) rename packages/{ng-auth => ngx-auth}/project.json (75%) rename packages/{ng-auth => ngx-auth}/src/index.ts (93%) rename packages/{ng-auth => ngx-auth}/src/lib/config.ts (100%) rename packages/{ng-auth => ngx-auth}/src/lib/directives/auth-conditional.directive.ts (100%) rename packages/{ng-auth => ngx-auth}/src/lib/directives/is-auth.directive.spec.ts (100%) rename packages/{ng-auth => ngx-auth}/src/lib/directives/is-auth.directive.ts (100%) rename packages/{ng-auth => ngx-auth}/src/lib/directives/user-has.directive.spec.ts (100%) rename packages/{ng-auth => ngx-auth}/src/lib/directives/user-has.directive.ts (100%) rename packages/{ng-auth => ngx-auth}/src/lib/directives/user.directive.ts (100%) rename packages/{ng-auth => ngx-auth}/src/lib/guards/anon-user.guard.ts (100%) rename packages/{ng-auth => ngx-auth}/src/lib/guards/auth-user-predicate.guard.spec.ts (100%) rename packages/{ng-auth => ngx-auth}/src/lib/guards/auth-user-predicate.guard.ts (100%) rename packages/{ng-auth => ngx-auth}/src/lib/guards/auth-user.guard.spec.ts (100%) rename packages/{ng-auth => ngx-auth}/src/lib/guards/auth-user.guard.ts (100%) rename packages/{ng-auth => ngx-auth}/src/lib/interceptors/auth-expired.interceptor.ts (100%) rename packages/{ng-auth => ngx-auth}/src/lib/interceptors/auth.interceptor.ts (100%) rename packages/{ng-auth => ngx-auth}/src/lib/interfaces.ts (100%) rename packages/{ng-auth/src/lib/ng-auth.module.ts => ngx-auth/src/lib/ngx-auth.module.ts} (100%) rename packages/{ng-auth => ngx-auth}/src/lib/providers/authentication.provider.ts (100%) rename packages/{ng-auth => ngx-auth}/src/lib/providers/dynamic-storage.provider.spec.ts (100%) rename packages/{ng-auth => ngx-auth}/src/lib/providers/storage.provider.spec.ts (100%) rename packages/{ng-auth => ngx-auth}/src/lib/providers/storage.provider.ts (100%) rename packages/{ng-auth => ngx-auth}/src/lib/resolvers/user.resolver.spec.ts (100%) rename packages/{ng-auth => ngx-auth}/src/lib/resolvers/user.resolver.ts (100%) rename packages/{ng-auth => ngx-auth}/src/lib/services/authentication.service-dynamics-storage.spec.ts (100%) rename packages/{ng-auth => ngx-auth}/src/lib/services/authentication.service.spec.ts (100%) rename packages/{ng-auth => ngx-auth}/src/lib/services/authentication.service.ts (100%) rename packages/{ng-auth => ngx-auth}/src/lib/services/ngx-auth.service.ts (100%) rename packages/{ng-auth => ngx-auth}/src/lib/utils/user-conditions.ts (100%) rename packages/{ng-auth => ngx-auth}/src/test-setup.ts (100%) rename packages/{ng-auth => ngx-auth}/tsconfig.json (100%) rename packages/{ng-auth => ngx-auth}/tsconfig.lib.json (100%) rename packages/{ng-auth => ngx-auth}/tsconfig.lib.prod.json (100%) rename packages/{ng-auth => ngx-auth}/tsconfig.spec.json (100%) diff --git a/packages/ng-auth/.eslintrc.json b/packages/ngx-auth/.eslintrc.json similarity index 95% rename from packages/ng-auth/.eslintrc.json rename to packages/ngx-auth/.eslintrc.json index 6c41e84..1ef004a 100644 --- a/packages/ng-auth/.eslintrc.json +++ b/packages/ngx-auth/.eslintrc.json @@ -17,7 +17,7 @@ "error", { "type": "element", - "prefix": "ng-auth", + "prefix": "ngx-auth", "style": "kebab-case" } ] diff --git a/packages/ng-auth/CHANGELOG.md b/packages/ngx-auth/CHANGELOG.md similarity index 100% rename from packages/ng-auth/CHANGELOG.md rename to packages/ngx-auth/CHANGELOG.md diff --git a/packages/ng-auth/README.md b/packages/ngx-auth/README.md similarity index 99% rename from packages/ng-auth/README.md rename to packages/ngx-auth/README.md index ea2a3b7..c4b5692 100644 --- a/packages/ng-auth/README.md +++ b/packages/ngx-auth/README.md @@ -1,4 +1,4 @@ -# ng-auth +# ngx-auth An Angular library to ease the authentication integration with a backend. @@ -34,7 +34,7 @@ As usual, not storing anything is the safest choice, but usually also not the be ## Installation ```shell -npm install --save @zupit-it/ng-auth +npm install --save @zupit-it/ngx-auth ``` ## Setup diff --git a/packages/ng-auth/jest.config.ts b/packages/ngx-auth/jest.config.ts similarity index 89% rename from packages/ng-auth/jest.config.ts rename to packages/ngx-auth/jest.config.ts index c212b8f..d39de62 100644 --- a/packages/ng-auth/jest.config.ts +++ b/packages/ngx-auth/jest.config.ts @@ -1,9 +1,9 @@ /* eslint-disable */ export default { - displayName: 'ng-auth', + displayName: 'ngx-auth', preset: '../../jest.preset.js', setupFilesAfterEnv: ['/src/test-setup.ts'], - coverageDirectory: '../../coverage/packages/ng-auth', + coverageDirectory: '../../coverage/packages/ngx-auth', transform: { '^.+\\.(ts|mjs|js|html)$': [ 'jest-preset-angular', diff --git a/packages/ng-auth/ng-package.json b/packages/ngx-auth/ng-package.json similarity index 79% rename from packages/ng-auth/ng-package.json rename to packages/ngx-auth/ng-package.json index 200b507..514ce35 100644 --- a/packages/ng-auth/ng-package.json +++ b/packages/ngx-auth/ng-package.json @@ -1,6 +1,6 @@ { "$schema": "../../node_modules/ng-packagr/ng-package.schema.json", - "dest": "../../dist/packages/ng-auth", + "dest": "../../dist/packages/ngx-auth", "lib": { "entryFile": "src/index.ts" }, diff --git a/packages/ng-auth/package.json b/packages/ngx-auth/package.json similarity index 90% rename from packages/ng-auth/package.json rename to packages/ngx-auth/package.json index e40a6b1..fd1f3ea 100644 --- a/packages/ng-auth/package.json +++ b/packages/ngx-auth/package.json @@ -1,5 +1,5 @@ { - "name": "@zupit-it/ng-auth", + "name": "@zupit-it/ngx-auth", "version": "16.2.5", "peerDependencies": { "@angular/common": "^16.0.0", diff --git a/packages/ng-auth/project.json b/packages/ngx-auth/project.json similarity index 75% rename from packages/ng-auth/project.json rename to packages/ngx-auth/project.json index f2ea6b8..7a212e5 100644 --- a/packages/ng-auth/project.json +++ b/packages/ngx-auth/project.json @@ -1,23 +1,23 @@ { - "name": "ng-auth", + "name": "ngx-auth", "$schema": "../../node_modules/nx/schemas/project-schema.json", "projectType": "library", - "sourceRoot": "packages/ng-auth/src", + "sourceRoot": "packages/ngx-auth/src", "prefix": "app", "targets": { "build": { "executor": "@nx/angular:ng-packagr-lite", "outputs": ["{workspaceRoot}/dist/{projectRoot}"], "options": { - "project": "packages/ng-auth/ng-package.json", + "project": "packages/ngx-auth/ng-package.json", "updateBuildableProjectDepsInPackageJson": true }, "configurations": { "production": { - "tsConfig": "packages/ng-auth/tsconfig.lib.prod.json" + "tsConfig": "packages/ngx-auth/tsconfig.lib.prod.json" }, "development": { - "tsConfig": "packages/ng-auth/tsconfig.lib.json" + "tsConfig": "packages/ngx-auth/tsconfig.lib.json" } }, "defaultConfiguration": "production" @@ -27,7 +27,7 @@ "options": { "commands": [ { - "command": "npx nx format:check --projects ng-auth" + "command": "npx nx format:check --projects ngx-auth" } ], "parallel": false @@ -38,8 +38,8 @@ "outputs": ["{options.outputFile}"], "options": { "lintFilePatterns": [ - "packages/ng-auth/**/*.ts", - "packages/ng-auth/**/*.html" + "packages/ngx-auth/**/*.ts", + "packages/ngx-auth/**/*.html" ] } }, @@ -47,7 +47,7 @@ "executor": "@nx/jest:jest", "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "options": { - "jestConfig": "packages/ng-auth/jest.config.ts", + "jestConfig": "packages/ngx-auth/jest.config.ts", "passWithNoTests": true }, "configurations": { @@ -61,7 +61,7 @@ "executor": "@jscutlery/semver:version", "options": { "preset": "conventional", - "postTargets": ["ng-auth:release:github", "ng-auth:publish"], + "postTargets": ["ngx-auth:release:github", "ngx-auth:publish"], "push": true } }, diff --git a/packages/ng-auth/src/index.ts b/packages/ngx-auth/src/index.ts similarity index 93% rename from packages/ng-auth/src/index.ts rename to packages/ngx-auth/src/index.ts index fe96307..f05d3c2 100644 --- a/packages/ng-auth/src/index.ts +++ b/packages/ngx-auth/src/index.ts @@ -1,4 +1,4 @@ -export * from './lib/ng-auth.module' +export * from './lib/ngx-auth.module' export * from './lib/interfaces' export * from './lib/providers/authentication.provider' export * from './lib/providers/storage.provider' diff --git a/packages/ng-auth/src/lib/config.ts b/packages/ngx-auth/src/lib/config.ts similarity index 100% rename from packages/ng-auth/src/lib/config.ts rename to packages/ngx-auth/src/lib/config.ts diff --git a/packages/ng-auth/src/lib/directives/auth-conditional.directive.ts b/packages/ngx-auth/src/lib/directives/auth-conditional.directive.ts similarity index 100% rename from packages/ng-auth/src/lib/directives/auth-conditional.directive.ts rename to packages/ngx-auth/src/lib/directives/auth-conditional.directive.ts diff --git a/packages/ng-auth/src/lib/directives/is-auth.directive.spec.ts b/packages/ngx-auth/src/lib/directives/is-auth.directive.spec.ts similarity index 100% rename from packages/ng-auth/src/lib/directives/is-auth.directive.spec.ts rename to packages/ngx-auth/src/lib/directives/is-auth.directive.spec.ts diff --git a/packages/ng-auth/src/lib/directives/is-auth.directive.ts b/packages/ngx-auth/src/lib/directives/is-auth.directive.ts similarity index 100% rename from packages/ng-auth/src/lib/directives/is-auth.directive.ts rename to packages/ngx-auth/src/lib/directives/is-auth.directive.ts diff --git a/packages/ng-auth/src/lib/directives/user-has.directive.spec.ts b/packages/ngx-auth/src/lib/directives/user-has.directive.spec.ts similarity index 100% rename from packages/ng-auth/src/lib/directives/user-has.directive.spec.ts rename to packages/ngx-auth/src/lib/directives/user-has.directive.spec.ts diff --git a/packages/ng-auth/src/lib/directives/user-has.directive.ts b/packages/ngx-auth/src/lib/directives/user-has.directive.ts similarity index 100% rename from packages/ng-auth/src/lib/directives/user-has.directive.ts rename to packages/ngx-auth/src/lib/directives/user-has.directive.ts diff --git a/packages/ng-auth/src/lib/directives/user.directive.ts b/packages/ngx-auth/src/lib/directives/user.directive.ts similarity index 100% rename from packages/ng-auth/src/lib/directives/user.directive.ts rename to packages/ngx-auth/src/lib/directives/user.directive.ts diff --git a/packages/ng-auth/src/lib/guards/anon-user.guard.ts b/packages/ngx-auth/src/lib/guards/anon-user.guard.ts similarity index 100% rename from packages/ng-auth/src/lib/guards/anon-user.guard.ts rename to packages/ngx-auth/src/lib/guards/anon-user.guard.ts diff --git a/packages/ng-auth/src/lib/guards/auth-user-predicate.guard.spec.ts b/packages/ngx-auth/src/lib/guards/auth-user-predicate.guard.spec.ts similarity index 100% rename from packages/ng-auth/src/lib/guards/auth-user-predicate.guard.spec.ts rename to packages/ngx-auth/src/lib/guards/auth-user-predicate.guard.spec.ts diff --git a/packages/ng-auth/src/lib/guards/auth-user-predicate.guard.ts b/packages/ngx-auth/src/lib/guards/auth-user-predicate.guard.ts similarity index 100% rename from packages/ng-auth/src/lib/guards/auth-user-predicate.guard.ts rename to packages/ngx-auth/src/lib/guards/auth-user-predicate.guard.ts diff --git a/packages/ng-auth/src/lib/guards/auth-user.guard.spec.ts b/packages/ngx-auth/src/lib/guards/auth-user.guard.spec.ts similarity index 100% rename from packages/ng-auth/src/lib/guards/auth-user.guard.spec.ts rename to packages/ngx-auth/src/lib/guards/auth-user.guard.spec.ts diff --git a/packages/ng-auth/src/lib/guards/auth-user.guard.ts b/packages/ngx-auth/src/lib/guards/auth-user.guard.ts similarity index 100% rename from packages/ng-auth/src/lib/guards/auth-user.guard.ts rename to packages/ngx-auth/src/lib/guards/auth-user.guard.ts diff --git a/packages/ng-auth/src/lib/interceptors/auth-expired.interceptor.ts b/packages/ngx-auth/src/lib/interceptors/auth-expired.interceptor.ts similarity index 100% rename from packages/ng-auth/src/lib/interceptors/auth-expired.interceptor.ts rename to packages/ngx-auth/src/lib/interceptors/auth-expired.interceptor.ts diff --git a/packages/ng-auth/src/lib/interceptors/auth.interceptor.ts b/packages/ngx-auth/src/lib/interceptors/auth.interceptor.ts similarity index 100% rename from packages/ng-auth/src/lib/interceptors/auth.interceptor.ts rename to packages/ngx-auth/src/lib/interceptors/auth.interceptor.ts diff --git a/packages/ng-auth/src/lib/interfaces.ts b/packages/ngx-auth/src/lib/interfaces.ts similarity index 100% rename from packages/ng-auth/src/lib/interfaces.ts rename to packages/ngx-auth/src/lib/interfaces.ts diff --git a/packages/ng-auth/src/lib/ng-auth.module.ts b/packages/ngx-auth/src/lib/ngx-auth.module.ts similarity index 100% rename from packages/ng-auth/src/lib/ng-auth.module.ts rename to packages/ngx-auth/src/lib/ngx-auth.module.ts diff --git a/packages/ng-auth/src/lib/providers/authentication.provider.ts b/packages/ngx-auth/src/lib/providers/authentication.provider.ts similarity index 100% rename from packages/ng-auth/src/lib/providers/authentication.provider.ts rename to packages/ngx-auth/src/lib/providers/authentication.provider.ts diff --git a/packages/ng-auth/src/lib/providers/dynamic-storage.provider.spec.ts b/packages/ngx-auth/src/lib/providers/dynamic-storage.provider.spec.ts similarity index 100% rename from packages/ng-auth/src/lib/providers/dynamic-storage.provider.spec.ts rename to packages/ngx-auth/src/lib/providers/dynamic-storage.provider.spec.ts diff --git a/packages/ng-auth/src/lib/providers/storage.provider.spec.ts b/packages/ngx-auth/src/lib/providers/storage.provider.spec.ts similarity index 100% rename from packages/ng-auth/src/lib/providers/storage.provider.spec.ts rename to packages/ngx-auth/src/lib/providers/storage.provider.spec.ts diff --git a/packages/ng-auth/src/lib/providers/storage.provider.ts b/packages/ngx-auth/src/lib/providers/storage.provider.ts similarity index 100% rename from packages/ng-auth/src/lib/providers/storage.provider.ts rename to packages/ngx-auth/src/lib/providers/storage.provider.ts diff --git a/packages/ng-auth/src/lib/resolvers/user.resolver.spec.ts b/packages/ngx-auth/src/lib/resolvers/user.resolver.spec.ts similarity index 100% rename from packages/ng-auth/src/lib/resolvers/user.resolver.spec.ts rename to packages/ngx-auth/src/lib/resolvers/user.resolver.spec.ts diff --git a/packages/ng-auth/src/lib/resolvers/user.resolver.ts b/packages/ngx-auth/src/lib/resolvers/user.resolver.ts similarity index 100% rename from packages/ng-auth/src/lib/resolvers/user.resolver.ts rename to packages/ngx-auth/src/lib/resolvers/user.resolver.ts diff --git a/packages/ng-auth/src/lib/services/authentication.service-dynamics-storage.spec.ts b/packages/ngx-auth/src/lib/services/authentication.service-dynamics-storage.spec.ts similarity index 100% rename from packages/ng-auth/src/lib/services/authentication.service-dynamics-storage.spec.ts rename to packages/ngx-auth/src/lib/services/authentication.service-dynamics-storage.spec.ts diff --git a/packages/ng-auth/src/lib/services/authentication.service.spec.ts b/packages/ngx-auth/src/lib/services/authentication.service.spec.ts similarity index 100% rename from packages/ng-auth/src/lib/services/authentication.service.spec.ts rename to packages/ngx-auth/src/lib/services/authentication.service.spec.ts diff --git a/packages/ng-auth/src/lib/services/authentication.service.ts b/packages/ngx-auth/src/lib/services/authentication.service.ts similarity index 100% rename from packages/ng-auth/src/lib/services/authentication.service.ts rename to packages/ngx-auth/src/lib/services/authentication.service.ts diff --git a/packages/ng-auth/src/lib/services/ngx-auth.service.ts b/packages/ngx-auth/src/lib/services/ngx-auth.service.ts similarity index 100% rename from packages/ng-auth/src/lib/services/ngx-auth.service.ts rename to packages/ngx-auth/src/lib/services/ngx-auth.service.ts diff --git a/packages/ng-auth/src/lib/utils/user-conditions.ts b/packages/ngx-auth/src/lib/utils/user-conditions.ts similarity index 100% rename from packages/ng-auth/src/lib/utils/user-conditions.ts rename to packages/ngx-auth/src/lib/utils/user-conditions.ts diff --git a/packages/ng-auth/src/test-setup.ts b/packages/ngx-auth/src/test-setup.ts similarity index 100% rename from packages/ng-auth/src/test-setup.ts rename to packages/ngx-auth/src/test-setup.ts diff --git a/packages/ng-auth/tsconfig.json b/packages/ngx-auth/tsconfig.json similarity index 100% rename from packages/ng-auth/tsconfig.json rename to packages/ngx-auth/tsconfig.json diff --git a/packages/ng-auth/tsconfig.lib.json b/packages/ngx-auth/tsconfig.lib.json similarity index 100% rename from packages/ng-auth/tsconfig.lib.json rename to packages/ngx-auth/tsconfig.lib.json diff --git a/packages/ng-auth/tsconfig.lib.prod.json b/packages/ngx-auth/tsconfig.lib.prod.json similarity index 100% rename from packages/ng-auth/tsconfig.lib.prod.json rename to packages/ngx-auth/tsconfig.lib.prod.json diff --git a/packages/ng-auth/tsconfig.spec.json b/packages/ngx-auth/tsconfig.spec.json similarity index 100% rename from packages/ng-auth/tsconfig.spec.json rename to packages/ngx-auth/tsconfig.spec.json From 17a6198538cc6e5c987c31ab14c9055f0889cc8d Mon Sep 17 00:00:00 2001 From: deyan Date: Tue, 11 Jun 2024 09:53:45 +0200 Subject: [PATCH 4/4] fix: update prefixes package-lock --- package-lock.json | 45 +++++++++++++++++++++++++++++++++++++++------ 1 file changed, 39 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 88283d5..8244e9f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7682,16 +7682,16 @@ "node": ">=18" } }, - "node_modules/@zupit-it/ng-auth": { - "resolved": "packages/ng-auth", + "node_modules/@zupit-it/ngx-auth": { + "resolved": "packages/ngx-auth", "link": true }, - "node_modules/@zupit-it/ng-fantasticon": { - "resolved": "packages/ng-fantasticon", + "node_modules/@zupit-it/ngx-fantasticon": { + "resolved": "packages/ngx-fantasticon", "link": true }, - "node_modules/@zupit-it/ng-form": { - "resolved": "packages/ng-form", + "node_modules/@zupit-it/ngx-form": { + "resolved": "packages/ngx-form", "link": true }, "node_modules/@zupit-it/tools": { @@ -23254,6 +23254,7 @@ "packages/ng-auth": { "name": "@zupit-it/ng-auth", "version": "16.2.5", + "extraneous": true, "dependencies": { "tslib": "^2.3.0" }, @@ -23265,6 +23266,7 @@ "packages/ng-fantasticon": { "name": "@zupit-it/ng-fantasticon", "version": "0.1.0", + "extraneous": true, "dependencies": { "tslib": "^2.3.0" }, @@ -23275,6 +23277,37 @@ }, "packages/ng-form": { "name": "@zupit-it/ng-form", + "version": "0.1.0", + "extraneous": true, + "dependencies": { + "tslib": "^2.3.0" + }, + "peerDependencies": { + "@angular/common": "^16.2.0", + "@angular/core": "^16.2.0" + } + }, + "packages/ngx-auth": { + "version": "16.2.5", + "dependencies": { + "tslib": "^2.3.0" + }, + "peerDependencies": { + "@angular/common": "^16.0.0", + "@angular/core": "^16.0.0" + } + }, + "packages/ngx-fantasticon": { + "version": "0.1.1", + "dependencies": { + "tslib": "^2.3.0" + }, + "peerDependencies": { + "@angular/common": "^16.2.0", + "@angular/core": "^16.2.0" + } + }, + "packages/ngx-form": { "version": "0.1.0", "dependencies": { "tslib": "^2.3.0"