diff --git a/packages/angular/.gitignore b/packages/angular/.gitignore index dd8820bd..91fff6d6 100644 --- a/packages/angular/.gitignore +++ b/packages/angular/.gitignore @@ -27,6 +27,7 @@ package-lock.json !.vscode/extensions.json # misc +/.angular/cache /.sass-cache /connect.lock /coverage diff --git a/packages/angular/angular.json b/packages/angular/angular.json index 04849296..0f9d6ece 100644 --- a/packages/angular/angular.json +++ b/packages/angular/angular.json @@ -28,18 +28,6 @@ "tsConfig": "projects/cloudinary-library/tsconfig.spec.json", "karmaConfig": "projects/cloudinary-library/karma.conf.js" } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "projects/cloudinary-library/tsconfig.lib.json", - "projects/cloudinary-library/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] - } } } }}, diff --git a/packages/angular/package.json b/packages/angular/package.json index 115fc27f..6f24b00e 100644 --- a/packages/angular/package.json +++ b/packages/angular/package.json @@ -16,22 +16,22 @@ }, "private": true, "dependencies": { - "@angular/animations": "~12.2.16", - "@angular/common": "~12.2.16", - "@angular/compiler": "~12.2.16", - "@angular/core": "~12.2.16", - "@angular/forms": "~12.2.16", - "@angular/platform-browser": "~12.2.16", - "@angular/platform-browser-dynamic": "~12.2.16", - "@angular/router": "~12.2.16", + "@angular/animations": "~13.4.0", + "@angular/common": "~13.4.0", + "@angular/compiler": "~13.4.0", + "@angular/core": "~13.4.0", + "@angular/forms": "~13.4.0", + "@angular/platform-browser": "~13.4.0", + "@angular/platform-browser-dynamic": "~13.4.0", + "@angular/router": "~13.4.0", "rxjs": "~6.6.0", "tslib": "^2.0.0", "zone.js": "~0.11.4" }, "devDependencies": { - "@angular-devkit/build-angular": "~12.2.18", - "@angular/cli": "~12.2.16", - "@angular/compiler-cli": "~12.2.16", + "@angular-devkit/build-angular": "~13.3.11", + "@angular/cli": "~13.3.11", + "@angular/compiler-cli": "~13.4.0", "@cloudinary/html": "^1.11.2", "@cloudinary/url-gen": "^1.10.1", "@types/jasmine": "~3.5.0", @@ -46,15 +46,15 @@ "karma-coverage-istanbul-reporter": "~3.0.2", "karma-jasmine": "~5.0.0", "karma-jasmine-html-reporter": "^1.5.0", - "ng-packagr": "^12.2.7", + "ng-packagr": "^13.3.1", "protractor": "~7.0.0", "ts-node": "~8.3.0", "tslint": "~6.1.0", - "typescript": "~4.2.3" + "typescript": "~4.6.4" }, "overrides": { "protractor": { "minimist": "1.2.6" } } -} +} \ No newline at end of file diff --git a/packages/angular/projects/cloudinary-library/src/test.ts b/packages/angular/projects/cloudinary-library/src/test.ts index e11ff1c9..4180aaee 100644 --- a/packages/angular/projects/cloudinary-library/src/test.ts +++ b/packages/angular/projects/cloudinary-library/src/test.ts @@ -14,7 +14,9 @@ declare const require: any; // 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/packages/angular/projects/cloudinary-library/tsconfig.lib.json b/packages/angular/projects/cloudinary-library/tsconfig.lib.json new file mode 100644 index 00000000..7ad0060b --- /dev/null +++ b/packages/angular/projects/cloudinary-library/tsconfig.lib.json @@ -0,0 +1,34 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "outDir": "../../out-tsc/lib", + "target": "es2020", + "module": "esnext", + "moduleResolution": "node", + "declaration": true, + "sourceMap": true, + "inlineSources": true, + "emitDecoratorMetadata": true, + "experimentalDecorators": true, + "importHelpers": true, + "types": [], + "lib": [ + "dom", + "es2020" + ] + }, + "angularCompilerOptions": { + "annotateForClosureCompiler": false, + "skipTemplateCodegen": true, + "strictMetadataEmit": true, + "fullTemplateTypeCheck": true, + "strictInjectionParameters": true, + "flatModuleId": "AUTOGENERATED", + "flatModuleOutFile": "AUTOGENERATED", + }, + "exclude": [ + "src/test.ts", + "**/*.spec.ts" + ] + } + \ No newline at end of file diff --git a/packages/angular/projects/cloudinary-library/tsconfig.lib.prod.json b/packages/angular/projects/cloudinary-library/tsconfig.lib.prod.json index 77a859b1..2a2faa88 100644 --- a/packages/angular/projects/cloudinary-library/tsconfig.lib.prod.json +++ b/packages/angular/projects/cloudinary-library/tsconfig.lib.prod.json @@ -1,34 +1,9 @@ { - "extends": "../../tsconfig.json", + "extends": "./tsconfig.lib.json", "compilerOptions": { - "outDir": "../../out-tsc/lib", - "target": "es2015", - "module": "es2015", - "moduleResolution": "node", - "declaration": true, - "sourceMap": true, - "inlineSources": true, - "emitDecoratorMetadata": true, - "experimentalDecorators": true, - "importHelpers": true, - "types": [], - "lib": [ - "dom", - "es2015" - ] + "declarationMap": false }, "angularCompilerOptions": { - "annotateForClosureCompiler": false, - "skipTemplateCodegen": true, - "strictMetadataEmit": true, - "fullTemplateTypeCheck": true, - "strictInjectionParameters": true, - "flatModuleId": "AUTOGENERATED", - "flatModuleOutFile": "AUTOGENERATED", "compilationMode": "partial" - }, - "exclude": [ - "src/test.ts", - "**/*.spec.ts" - ] + } }