diff --git a/.gitignore b/.gitignore index 809cf7d..14186ae 100644 --- a/.gitignore +++ b/.gitignore @@ -31,6 +31,7 @@ chrome-profiler-events*.json .history/* # misc +/.angular/cache /.sass-cache /connect.lock /coverage diff --git a/angular.json b/angular.json index 0c714ed..016e156 100644 --- a/angular.json +++ b/angular.json @@ -6,6 +6,113 @@ "version": 1, "newProjectRoot": "projects", "projects": { + "ngx-flow-demo": { + "root": "", + "sourceRoot": "src", + "projectType": "application", + "prefix": "app", + "schematics": {}, + "architect": { + "build": { + "builder": "@angular-devkit/build-angular:browser", + "options": { + "outputPath": "dist/ngx-flow-demo", + "index": "src/index.html", + "main": "src/main.ts", + "polyfills": "src/polyfills.ts", + "tsConfig": "src/tsconfig.app.json", + "assets": [ + "src/favicon.ico", + "src/assets" + ], + "styles": [ + "src/styles.css" + ], + "scripts": [] + }, + "configurations": { + "production": { + "fileReplacements": [ + { + "replace": "src/environments/environment.ts", + "with": "src/environments/environment.prod.ts" + } + ], + "optimization": false, + "outputHashing": "all", + "sourceMap": true, + "namedChunks": false, + "aot": false, + "extractLicenses": true, + "vendorChunk": false, + "buildOptimizer": false + }, + "development": { + "fileReplacements": [ + { + "replace": "src/environments/environment.ts", + "with": "src/environments/environment.prod.ts" + } + ], + "optimization": false, + "outputHashing": "all", + "sourceMap": true, + "namedChunks": false, + "aot": false, + "extractLicenses": true, + "vendorChunk": false, + "buildOptimizer": false + } + } + }, + "serve": { + "builder": "@angular-devkit/build-angular:dev-server", + "options": { + "browserTarget": "ngx-flow-demo:build" + }, + "configurations": { + "production": { + "browserTarget": "ngx-flow-demo:build:browser" + } + } + }, + "extract-i18n": { + "builder": "@angular-devkit/build-angular:extract-i18n", + "options": { + "browserTarget": "ngx-flow-demo:build" + } + }, + "test": { + "builder": "@angular-devkit/build-angular:karma", + "options": { + "main": "src/test.ts", + "polyfills": "src/polyfills.ts", + "tsConfig": "src/tsconfig.spec.json", + "karmaConfig": "src/karma.conf.js", + "styles": [ + "src/styles.css" + ], + "scripts": [], + "assets": [ + "src/favicon.ico", + "src/assets" + ] + } + }, + "lint": { + "builder": "@angular-devkit/build-angular:tslint", + "options": { + "tsConfig": [ + "src/tsconfig.app.json", + "src/tsconfig.spec.json" + ], + "exclude": [ + "**/node_modules/**" + ] + } + } + } + }, "ngx-flow": { "projectType": "library", "root": "projects/ngx-flow", diff --git a/package.json b/package.json index 3c44110..e63d79c 100644 --- a/package.json +++ b/package.json @@ -21,23 +21,23 @@ }, "private": true, "dependencies": { - "@angular/animations": "~12.1.0-", - "@angular/common": "~12.1.0-", - "@angular/compiler": "~12.1.0-", - "@angular/core": "~12.1.0-", - "@angular/forms": "~12.1.0-", - "@angular/platform-browser": "~12.1.0-", - "@angular/platform-browser-dynamic": "~12.1.0-", - "@angular/router": "~12.1.0-", + "@angular/animations": "~13.3.1", + "@angular/common": "~13.3.1", + "@angular/compiler": "~13.3.1", + "@angular/core": "~13.3.1", + "@angular/forms": "~13.3.1", + "@angular/platform-browser": "~13.3.1", + "@angular/platform-browser-dynamic": "~13.3.1", + "@angular/router": "~13.3.1", "@flowjs/flow.js": "^2.13.0", "rxjs": "~6.6.0", "tslib": "^2.2.0", "zone.js": "~0.11.4" }, "devDependencies": { - "@angular-devkit/build-angular": "~12.1.3", - "@angular/cli": "~12.1.3", - "@angular/compiler-cli": "~12.1.0-", + "@angular-devkit/build-angular": "~13.3.1", + "@angular/cli": "~13.3.1", + "@angular/compiler-cli": "~13.3.1", "@types/flowjs": "2.13.3", "@types/jasmine": "~3.8.0", "@types/node": "^12.11.1", @@ -47,7 +47,7 @@ "karma-coverage": "~2.0.3", "karma-jasmine": "~4.0.0", "karma-jasmine-html-reporter": "~1.7.0", - "ng-packagr": "^12.1.0", - "typescript": "~4.3.2" + "ng-packagr": "^13.3.0", + "typescript": "~4.6.3" } } diff --git a/projects/ngx-flow/package.json b/projects/ngx-flow/package.json index 8811726..77917db 100644 --- a/projects/ngx-flow/package.json +++ b/projects/ngx-flow/package.json @@ -11,8 +11,8 @@ "url": "https://github.com/flowjs/ngx-flow" }, "peerDependencies": { - "@angular/common": "^12.1.0-", - "@angular/core": "^12.1.0-", + "@angular/common": "^13.3.1-", + "@angular/core": "^13.3.1-", "@flowjs/flow.js": "^2.13.0" }, "dependencies": { diff --git a/projects/ngx-flow/src/test.ts b/projects/ngx-flow/src/test.ts index 52e5516..f26f742 100644 --- a/projects/ngx-flow/src/test.ts +++ b/projects/ngx-flow/src/test.ts @@ -18,7 +18,9 @@ declare const require: { // First, initialize the Angular testing environment. getTestBed().initTestEnvironment( BrowserDynamicTestingModule, - platformBrowserDynamicTesting() + platformBrowserDynamicTesting(), { + teardown: { destroyAfterEach: false } +} ); // Then we find all the tests. const context = require.context('./', true, /\.spec\.ts$/); diff --git a/src/app/app.component.html b/src/app/app.component.html index 542d8af..cc648d9 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -27,7 +27,7 @@