From 0000a09c41466e45280e59406a9de693e0da3436 Mon Sep 17 00:00:00 2001 From: reviewher <24845478+reviewher@users.noreply.github.com> Date: Tue, 1 Feb 2022 11:07:03 -0800 Subject: [PATCH] Angular 13 demo --- demos/angular2/Makefile | 6 +- demos/angular2/package.json | 41 +++---- demos/angular2/versions/angular.json-ng13 | 106 ++++++++++++++++++ demos/angular2/versions/package.json-ng13 | 39 +++++++ demos/angular2/versions/polyfills.ts-ng13 | 1 + .../angular2/versions/tsconfig.app.json-ng13 | 14 +++ 6 files changed, 184 insertions(+), 23 deletions(-) create mode 100644 demos/angular2/versions/angular.json-ng13 create mode 100644 demos/angular2/versions/package.json-ng13 create mode 100644 demos/angular2/versions/polyfills.ts-ng13 create mode 100644 demos/angular2/versions/tsconfig.app.json-ng13 diff --git a/demos/angular2/Makefile b/demos/angular2/Makefile index 8cee869..9efd23e 100644 --- a/demos/angular2/Makefile +++ b/demos/angular2/Makefile @@ -1,5 +1,5 @@ -.PHONY: ng2 ng4 ng5 ng6 ng7 ng8 ng9 ng10 ng11 ng12 -ng2 ng4 ng5 ng6 ng7 ng8 ng9 ng10 ng11 ng12: +.PHONY: ng2 ng4 ng5 ng6 ng7 ng8 ng9 ng10 ng11 ng12 ng13 +ng2 ng4 ng5 ng6 ng7 ng8 ng9 ng10 ng11 ng12 ng13: rm -f angular.json tsconfig.app.json src/polyfills.ts cp versions/package.json-$@ package.json if [ -e versions/angular.json-$@ ]; then cp versions/angular.json-$@ angular.json; fi @@ -13,7 +13,7 @@ ng2 ng4 ng5 ng6 ng7 ng8 ng9 ng10 ng11 ng12: .PHONY: all all: - for i in 2 4 5 6 7 8 9 10 11 12; do make ng$$i; done + for i in 2 4 5 6 7 8 9 10 11 12 13; do make ng$$i; done .PHONY: ionic ionic: diff --git a/demos/angular2/package.json b/demos/angular2/package.json index 1f62707..a214cef 100644 --- a/demos/angular2/package.json +++ b/demos/angular2/package.json @@ -1,5 +1,5 @@ { - "name": "angular5", + "name": "angular13", "version": "0.0.0", "license": "MIT", "scripts": { @@ -9,30 +9,31 @@ }, "private": true, "dependencies": { - "@angular/animations": "^5.0.0", - "@angular/common": "^5.0.0", - "@angular/compiler": "^5.0.0", + "@angular/animations": "~13.2.0", + "@angular/common": "~13.2.0", + "@angular/compiler": "~13.2.0", - "@angular/core": "^5.0.0", - "@angular/forms": "^5.0.0", - "@angular/http": "^5.0.0", - "@angular/platform-browser": "^5.0.0", - "@angular/platform-browser-dynamic": "^5.0.0", + "@angular/core": "~13.2.0", + "@angular/forms": "~13.2.0", - "@angular/router": "^5.0.0", - "core-js": "^2.4.1", + "@angular/platform-browser": "~13.2.0", + "@angular/platform-browser-dynamic": "~13.2.0", - "rxjs": "^5.5.2", + "@angular/router": "~13.2.0", - "zone.js": "^0.8.14" + + "rxjs": "~7.5.0", + "tslib": "^2.3.0", + "zone.js": "~0.11.4" }, "devDependencies": { - "@angular/cli": "^1.5.3", - "@angular/compiler-cli": "^5.0.0", - "@angular/language-service": "^5.0.0", - "@types/node": "~6.0.60", - "ts-node": "~3.2.0", - "tslint": "~5.7.0", - "typescript": "~2.4.2" + "@angular-devkit/build-angular": "~13.2.1", + "@angular/cli": "~13.2.1", + "@angular/compiler-cli": "~13.2.0", + + "@types/node": "^12.11.1", + + + "typescript": "~4.5.2" } } diff --git a/demos/angular2/versions/angular.json-ng13 b/demos/angular2/versions/angular.json-ng13 new file mode 100644 index 0000000..69d02ea --- /dev/null +++ b/demos/angular2/versions/angular.json-ng13 @@ -0,0 +1,106 @@ +{ + "$schema": "./node_modules/@angular/cli/lib/config/schema.json", + "version": 1, + "newProjectRoot": "projects", + "projects": { + "sheetjs": { + "root": "", + "sourceRoot": "src", + "projectType": "application", + "prefix": "app", + "schematics": { + "@schematics/angular:application": { + "strict": true + } + }, + "architect": { + "build": { + "builder": "@angular-devkit/build-angular:browser", + "options": { + "outputPath": "dist/sheetjs", + "index": "src/index.html", + "main": "src/main.ts", + "polyfills": "src/polyfills.ts", + "tsConfig": "tsconfig.app.json", + "assets": [ + "src/favicon.ico", + "src/assets" + ], + "styles": [ + "src/styles.css" + ], + "scripts": [] + }, + "configurations": { + "production": { + "budgets": [ + { + "type": "initial", + "maximumWarning": "500kb", + "maximumError": "2mb" + }, + { + "type": "anyComponentStyle", + "maximumWarning": "2kb", + "maximumError": "4kb" + } + ], + "fileReplacements": [ + { + "replace": "src/environments/environment.ts", + "with": "src/environments/environment.prod.ts" + } + ], + "outputHashing": "all" + }, + "development": { + "buildOptimizer": false, + "optimization": false, + "vendorChunk": true, + "extractLicenses": false, + "sourceMap": true, + "namedChunks": true + } + }, + "defaultConfiguration": "production" + }, + "serve": { + "builder": "@angular-devkit/build-angular:dev-server", + "configurations": { + "production": { + "browserTarget": "sheetjs:build:production" + }, + "development": { + "browserTarget": "sheetjs:build:development" + } + }, + "defaultConfiguration": "development" + }, + "extract-i18n": { + "builder": "@angular-devkit/build-angular:extract-i18n", + "options": { + "browserTarget": "sheetjs:build" + } + }, + "test": { + "builder": "@angular-devkit/build-angular:karma", + "options": { + "main": "src/test.ts", + "polyfills": "src/polyfills.ts", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", + "assets": [ + "src/favicon.ico", + "src/assets" + ], + "styles": [ + "src/styles.css" + ], + "scripts": [] + } + } + } + } + }, + "defaultProject": "sheetjs" +} diff --git a/demos/angular2/versions/package.json-ng13 b/demos/angular2/versions/package.json-ng13 new file mode 100644 index 0000000..a214cef --- /dev/null +++ b/demos/angular2/versions/package.json-ng13 @@ -0,0 +1,39 @@ +{ + "name": "angular13", + "version": "0.0.0", + "license": "MIT", + "scripts": { + "ng": "ng", + "start": "ng serve", + "build": "ng build" + }, + "private": true, + "dependencies": { + "@angular/animations": "~13.2.0", + "@angular/common": "~13.2.0", + "@angular/compiler": "~13.2.0", + + "@angular/core": "~13.2.0", + "@angular/forms": "~13.2.0", + + "@angular/platform-browser": "~13.2.0", + "@angular/platform-browser-dynamic": "~13.2.0", + + "@angular/router": "~13.2.0", + + + "rxjs": "~7.5.0", + "tslib": "^2.3.0", + "zone.js": "~0.11.4" + }, + "devDependencies": { + "@angular-devkit/build-angular": "~13.2.1", + "@angular/cli": "~13.2.1", + "@angular/compiler-cli": "~13.2.0", + + "@types/node": "^12.11.1", + + + "typescript": "~4.5.2" + } +} diff --git a/demos/angular2/versions/polyfills.ts-ng13 b/demos/angular2/versions/polyfills.ts-ng13 new file mode 100644 index 0000000..aa09a9f --- /dev/null +++ b/demos/angular2/versions/polyfills.ts-ng13 @@ -0,0 +1 @@ +import 'zone.js'; diff --git a/demos/angular2/versions/tsconfig.app.json-ng13 b/demos/angular2/versions/tsconfig.app.json-ng13 new file mode 100644 index 0000000..f758d98 --- /dev/null +++ b/demos/angular2/versions/tsconfig.app.json-ng13 @@ -0,0 +1,14 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "./out-tsc/app", + "types": [] + }, + "files": [ + "src/main.ts", + "src/polyfills.ts" + ], + "include": [ + "src/**/*.d.ts" + ] +}