Skip to content

Commit

Permalink
Prefix imports with @WISE-Community
Browse files Browse the repository at this point in the history
  • Loading branch information
hirokiterashima committed Aug 7, 2024
1 parent 92c4272 commit ee7b622
Show file tree
Hide file tree
Showing 18 changed files with 155 additions and 39 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ npm install @zxcvbn-ts/core@^3.0.0 @zxcvbn-ts/language-en@^3.0.0 angular-passwor
....
import { bootstrapApplication } from '@angular/platform-browser';
import { ApplicationConfig } from '@angular/core';
import { provideZxvbnServiceForPSM } from 'angular-password-strength-meter/zxcvbn';
import { provideZxvbnServiceForPSM } from '@wise-community/angular-password-strength-meter/zxcvbn';
....

export const appConfig: ApplicationConfig = {
Expand All @@ -63,7 +63,7 @@ bootstrapApplication(AppComponent, appConfig).catch((err) =>

```ts
....
import { PasswordStrengthMeterComponent } from 'angular-password-strength-meter';
import { PasswordStrengthMeterComponent } from '@wise-community/angular-password-strength-meter';
....

@Component({
Expand Down Expand Up @@ -98,7 +98,7 @@ import { bootstrapApplication } from '@angular/platform-browser';
import { ApplicationConfig } from '@angular/core';

import { translations } from '@zxcvbn-ts/language-en';
import { provideZxvbnServiceForPSM, ZxvbnConfigType } from 'angular-password-strength-meter/zxcvbn';
import { provideZxvbnServiceForPSM, ZxvbnConfigType } from '@wise-community/angular-password-strength-meter/zxcvbn';
....

const zxvbnConfig: ZxvbnConfigType = {
Expand All @@ -124,7 +124,7 @@ You can override the default password strength meter service by providing the [C
```ts
....
import { Injectable } from '@angular/core';
import { IPasswordStrengthMeterService } from 'angular-password-strength-meter';
import { IPasswordStrengthMeterService } from '@wise-community/angular-password-strength-meter';

@Injectable()
export class CustomPsmServiceService extends IPasswordStrengthMeterService {
Expand Down
22 changes: 16 additions & 6 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
"outputPath": "dist/password-strength-meter-showcase",
"index": "projects/password-strength-meter-showcase/src/index.html",
"browser": "projects/password-strength-meter-showcase/src/main.ts",
"polyfills": ["zone.js"],
"polyfills": [
"zone.js"
],
"tsConfig": "projects/password-strength-meter-showcase/tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
Expand Down Expand Up @@ -77,7 +79,10 @@
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"polyfills": ["zone.js", "zone.js/testing"],
"polyfills": [
"zone.js",
"zone.js/testing"
],
"tsConfig": "projects/password-strength-meter-showcase/tsconfig.spec.json",
"inlineStyleLanguage": "scss",
"assets": [
Expand All @@ -102,7 +107,7 @@
}
}
},
"password-strength-meter": {
"@wise-community/password-strength-meter": {
"projectType": "library",
"root": "projects/password-strength-meter",
"sourceRoot": "projects/password-strength-meter/src",
Expand All @@ -128,7 +133,10 @@
"options": {
"karmaConfig": "projects/password-strength-meter/karma.conf.js",
"tsConfig": "projects/password-strength-meter/tsconfig.spec.json",
"polyfills": ["zone.js", "zone.js/testing"],
"polyfills": [
"zone.js",
"zone.js/testing"
],
"codeCoverage": true
}
},
Expand All @@ -150,7 +158,9 @@
}
},
"cli": {
"schematicCollections": ["@angular-eslint/schematics"],
"schematicCollections": [
"@angular-eslint/schematics"
],
"analytics": false
}
}
}
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "@wise-community/password-strength-meter",
"version": "12.0.0",
"version": "12.0.4",
"scripts": {
"ng": "ng",
"serve": "ng serve",
"start:dev": "npm-run-all --parallel serve build:lib:watch",
"build:app": "ng build password-strength-meter-showcase",
"build:app:prod": "npm run build:app -- --configuration production --output-path docs --base-href password-strength-meter",
"build:lib": "ng build password-strength-meter",
"build:lib": "ng build @wise-community/password-strength-meter",
"build:lib:prod": "npm run build:lib -- --configuration production",
"build:lib:watch": "npm run build:lib -- --watch",
"build:prod": "npm-run-all build:lib:prod build:app:prod",
Expand Down Expand Up @@ -79,4 +79,4 @@
"url": "https://github.com/WISE-Community/password-strength-meter/issues"
},
"homepage": "https://github.com/WISE-Community/password-strength-meter"
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { TestBed, ComponentFixture, waitForAsync } from '@angular/core/testing';
import { ReactiveFormsModule } from '@angular/forms';

import { PasswordStrengthMeterModule } from 'angular-password-strength-meter';
import { PasswordStrengthMeterComponent } from '@wise-community/angular-password-strength-meter';

import { AppComponent } from './app.component';
import { By } from '@angular/platform-browser';
Expand All @@ -12,7 +12,7 @@ describe('AppComponent', () => {

beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [ReactiveFormsModule, PasswordStrengthMeterModule.forRoot()],
imports: [ReactiveFormsModule, PasswordStrengthMeterComponent],
declarations: [AppComponent],
}).compileComponents();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
RouterOutlet,
} from '@angular/router';
import { FormsModule } from '@angular/forms';
import { PasswordStrengthMeterComponent } from 'angular-password-strength-meter';
import { PasswordStrengthMeterComponent } from '@wise-community/angular-password-strength-meter';

@Component({
selector: 'app-root',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ApplicationConfig } from '@angular/core';
import { provideRouter } from '@angular/router';

import { routes } from './app.routes';
import { provideZxvbnServiceForPSM } from 'angular-password-strength-meter/zxcvbn';
import { provideZxvbnServiceForPSM } from '@wise-community/angular-password-strength-meter/zxcvbn';

export const appConfig: ApplicationConfig = {
providers: [provideRouter(routes), provideZxvbnServiceForPSM()],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { CommonModule } from '@angular/common';
import {
IPasswordStrengthMeterService,
PasswordStrengthMeterComponent,
} from 'angular-password-strength-meter';
} from '@wise-community/angular-password-strength-meter';
import { CustomPsmServiceService } from '../../services/custom-psm-service/custom-psm-service.service';
import { FormsModule } from '@angular/forms';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { CustomComponentComponent } from './custom-component.component';
import { PasswordStrengthMeterComponent } from 'angular-password-strength-meter';
import { PasswordStrengthMeterComponent } from '@wise-community/angular-password-strength-meter';
import { FormsModule } from '@angular/forms';
import { provideZxvbnServiceForPSM } from 'angular-password-strength-meter/zxcvbn';
import { provideZxvbnServiceForPSM } from '@wise-community/angular-password-strength-meter/zxcvbn';

describe('CustomComponentComponent', () => {
let component: CustomComponentComponent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';

import { PasswordStrengthMeterComponent } from 'angular-password-strength-meter';
import { provideZxvbnServiceForPSM } from 'angular-password-strength-meter/zxcvbn';
import { PasswordStrengthMeterComponent } from '@wise-community/angular-password-strength-meter';
import { provideZxvbnServiceForPSM } from '@wise-community/angular-password-strength-meter/zxcvbn';

import { CustomComponentComponent } from './custom-component/custom-component.component';
import { RouterModule } from '@angular/router';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Injectable } from '@angular/core';
import {
FeedbackResult,
IPasswordStrengthMeterService,
} from 'angular-password-strength-meter';
} from '@wise-community/angular-password-strength-meter';

@Injectable()
export class CustomPsmServiceService extends IPasswordStrengthMeterService {
Expand Down
8 changes: 4 additions & 4 deletions projects/password-strength-meter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ npm install @zxcvbn-ts/core@^3.0.0 @zxcvbn-ts/language-en@^3.0.0 angular-passwor
....
import { bootstrapApplication } from '@angular/platform-browser';
import { ApplicationConfig } from '@angular/core';
import { provideZxvbnServiceForPSM } from 'angular-password-strength-meter/zxcvbn';
import { provideZxvbnServiceForPSM } from '@wise-community/angular-password-strength-meter/zxcvbn';
....

export const appConfig: ApplicationConfig = {
Expand All @@ -63,7 +63,7 @@ bootstrapApplication(AppComponent, appConfig).catch((err) =>

```ts
....
import { PasswordStrengthMeterComponent } from 'angular-password-strength-meter';
import { PasswordStrengthMeterComponent } from '@wise-community/angular-password-strength-meter';
....

@Component({
Expand Down Expand Up @@ -98,7 +98,7 @@ import { bootstrapApplication } from '@angular/platform-browser';
import { ApplicationConfig } from '@angular/core';

import { translations } from '@zxcvbn-ts/language-en';
import { provideZxvbnServiceForPSM, ZxvbnConfigType } from 'angular-password-strength-meter/zxcvbn';
import { provideZxvbnServiceForPSM, ZxvbnConfigType } from '@wise-community/angular-password-strength-meter/zxcvbn';
....

const zxvbnConfig: ZxvbnConfigType = {
Expand All @@ -124,7 +124,7 @@ You can override the default password strength meter service by providing the [C
```ts
....
import { Injectable } from '@angular/core';
import { IPasswordStrengthMeterService } from 'angular-password-strength-meter';
import { IPasswordStrengthMeterService } from '@wise-community/angular-password-strength-meter';

@Injectable()
export class CustomPsmServiceService extends IPasswordStrengthMeterService {
Expand Down
2 changes: 1 addition & 1 deletion projects/password-strength-meter/ngcc.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
packages: {
'angular-password-strength-meter': {
'@wise-community/angular-password-strength-meter': {
ignorableDeepImportMatchers: [/@zxcvbn\//],
},
},
Expand Down
106 changes: 106 additions & 0 deletions projects/password-strength-meter/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions projects/password-strength-meter/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wise-community/angular-password-strength-meter",
"version": "12.0.0",
"version": "12.0.4",
"dependencies": {
"tslib": "^2.5.0"
},
Expand Down Expand Up @@ -31,4 +31,4 @@
"url": "https://github.com/WISE-Community/password-strength-meter/issues"
},
"homepage": "https://github.com/WISE-Community/password-strength-meter"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
ZXCVBN_CONFIG,
ZxvbnConfigType,
} from './password-strength-meter.types';
import { IPasswordStrengthMeterService } from 'angular-password-strength-meter';
import { IPasswordStrengthMeterService } from '@wise-community/angular-password-strength-meter';
import { PasswordStrengthMeterZXCVBNService } from './password-strength-meter-zxcvbn.service';

export function provideZxvbnServiceForPSM(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { translations } from '@zxcvbn-ts/language-en';
import {
FeedbackResult,
IPasswordStrengthMeterService,
} from 'angular-password-strength-meter';
} from '@wise-community/angular-password-strength-meter';
import {
ZXCVBN_CONFIG,
ZxvbnConfigType,
Expand Down
Loading

0 comments on commit ee7b622

Please sign in to comment.