Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Angular 15 support #128

Merged
merged 5 commits into from
Nov 18, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update workspace (app, lib)
  • Loading branch information
schuchard committed Nov 18, 2022
commit b552bea6e56c642a01ace1c7cabfe9d2245ea86b
16 changes: 16 additions & 0 deletions sandboxes/workspace/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Editor configuration, see https://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.ts]
quote_type = single

[*.md]
max_line_length = off
trim_trailing_whitespace = false
42 changes: 42 additions & 0 deletions sandboxes/workspace/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# Compiled output
/dist
/tmp
/out-tsc
/bazel-out

# Node
/node_modules
npm-debug.log
yarn-error.log

# IDEs and editors
.idea/
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# Visual Studio Code
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.history/*

# Miscellaneous
/.angular/cache
.sass-cache/
/connect.lock
/coverage
/libpeerconnection.log
testem.log
/typings

# System files
.DS_Store
Thumbs.db
12 changes: 6 additions & 6 deletions sandboxes/workspace/README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
# MyWorkspace
# Workspace

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 10.0.8.
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 15.0.0.

## Development server

Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.

## Code scaffolding

Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.

## Build

Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.

## Running unit tests

Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Running end-to-end tests

Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
132 changes: 53 additions & 79 deletions sandboxes/workspace/angular.json
Original file line number Diff line number Diff line change
@@ -1,46 +1,14 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"cli": {
"analytics": false
"packageManager": "yarn"
},
"version": 1,
"newProjectRoot": "projects",
"projects": {
"lib-one": {
"projectType": "library",
"root": "projects/lib-one",
"sourceRoot": "projects/lib-one/src",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"tsConfig": "projects/lib-one/tsconfig.lib.json",
"project": "projects/lib-one/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "projects/lib-one/tsconfig.lib.prod.json"
}
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/lib-one/src/test.ts",
"tsConfig": "projects/lib-one/tsconfig.spec.json",
"karmaConfig": "projects/lib-one/karma.conf.js"
}
}
}
},
"app-one": {
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
"style": "scss"
}
},
"schematics": {},
"root": "projects/app-one",
"sourceRoot": "projects/app-one/src",
"prefix": "app",
Expand All @@ -51,59 +19,50 @@
"outputPath": "dist/app-one",
"index": "projects/app-one/src/index.html",
"main": "projects/app-one/src/main.ts",
"polyfills": "projects/app-one/src/polyfills.ts",
"polyfills": ["zone.js"],
"tsConfig": "projects/app-one/tsconfig.app.json",
"assets": ["projects/app-one/src/favicon.ico", "projects/app-one/src/assets"],
"styles": ["projects/app-one/src/styles.scss"],
"scripts": [],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
"styles": ["projects/app-one/src/styles.css"],
"scripts": []
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "projects/app-one/src/environments/environment.ts",
"with": "projects/app-one/src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
"maximumWarning": "500kb",
"maximumError": "1mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb",
"maximumError": "10kb"
"maximumWarning": "2kb",
"maximumError": "4kb"
}
]
],
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
}
},
"defaultConfiguration": ""
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "app-one:build"
},
"configurations": {
"production": {
"browserTarget": "app-one:build:production"
},
"development": {
"browserTarget": "app-one:build:development"
}
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
Expand All @@ -114,29 +73,44 @@
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/app-one/src/test.ts",
"polyfills": "projects/app-one/src/polyfills.ts",
"polyfills": ["zone.js", "zone.js/testing"],
"tsConfig": "projects/app-one/tsconfig.spec.json",
"karmaConfig": "projects/app-one/karma.conf.js",
"assets": ["projects/app-one/src/favicon.ico", "projects/app-one/src/assets"],
"styles": ["projects/app-one/src/styles.scss"],
"styles": ["projects/app-one/src/styles.css"],
"scripts": []
}
},
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
}
}
},
"lib-one": {
"projectType": "library",
"root": "projects/lib-one",
"sourceRoot": "projects/lib-one/src",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"protractorConfig": "projects/app-one/e2e/protractor.conf.js",
"devServerTarget": "app-one:serve"
"project": "projects/lib-one/ng-package.json"
},
"configurations": {
"production": {
"devServerTarget": "app-one:serve:production"
"tsConfig": "projects/lib-one/tsconfig.lib.prod.json"
},
"development": {
"tsConfig": "projects/lib-one/tsconfig.lib.json"
}
},
"defaultConfiguration": "production"
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"tsConfig": "projects/lib-one/tsconfig.spec.json",
"polyfills": ["zone.js", "zone.js/testing"]
}
}
}
}
},
"defaultProject": "lib-one"
}
}
60 changes: 26 additions & 34 deletions sandboxes/workspace/package.json
Original file line number Diff line number Diff line change
@@ -1,47 +1,39 @@
{
"name": "my-workspace",
"name": "workspace",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build --configuration production",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
"build": "ng build",
"watch": "ng build --watch --configuration development",
"test": "ng test"
},
"private": true,
"dependencies": {
"@angular/animations": "^14.2.0",
"@angular/common": "^14.2.0",
"@angular/compiler": "^14.2.0",
"@angular/core": "^14.2.0",
"@angular/forms": "^14.2.0",
"@angular/platform-browser": "^14.2.0",
"@angular/platform-browser-dynamic": "^14.2.0",
"@angular/router": "^14.2.0",
"rxjs": "~6.5.5",
"tslib": "^2.3.1",
"zone.js": "~0.11.4"
"@angular/animations": "^15.0.0",
"@angular/common": "^15.0.0",
"@angular/compiler": "^15.0.0",
"@angular/core": "^15.0.0",
"@angular/forms": "^15.0.0",
"@angular/platform-browser": "^15.0.0",
"@angular/platform-browser-dynamic": "^15.0.0",
"@angular/router": "^15.0.0",
"rxjs": "~7.5.0",
"tslib": "^2.3.0",
"zone.js": "~0.12.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "^14.2.1",
"@angular/cli": "^14.2.1",
"@angular/compiler-cli": "^14.2.0",
"@types/node": "^12.11.1",
"@types/jasmine": "~3.10.2",
"@types/jasminewd2": "~2.0.10",
"codelyzer": "^6.0.0",
"jasmine-core": "~3.10.1",
"jasmine-spec-reporter": "~7.0.0",
"karma": "~6.3.9",
"@angular-devkit/build-angular": "^15.0.0",
"@angular/cli": "~15.0.0",
"@angular/compiler-cli": "^15.0.0",
"@types/jasmine": "~4.3.0",
"jasmine-core": "~4.5.0",
"karma": "~6.4.0",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "~3.0.3",
"karma-jasmine": "~4.0.1",
"karma-jasmine-html-reporter": "^1.7.0",
"ng-packagr": "^14.2.0",
"protractor": "~7.0.0",
"ts-node": "~8.3.0",
"tslint": "~6.1.0",
"typescript": "~4.7.0"
"karma-coverage": "~2.2.0",
"karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "~2.0.0",
"ng-packagr": "^15.0.0",
"typescript": "~4.8.2"
}
}
18 changes: 0 additions & 18 deletions sandboxes/workspace/projects/app-one/.browserslistrc

This file was deleted.

Loading