diff --git a/integration/ng-add-standalone/.browserslistrc b/integration/ng-add-standalone/.browserslistrc deleted file mode 100644 index 4f9ac26980c1..000000000000 --- a/integration/ng-add-standalone/.browserslistrc +++ /dev/null @@ -1,16 +0,0 @@ -# This file is used by the build system to adjust CSS and JS output to support the specified browsers below. -# For additional information regarding the format and rule options, please see: -# https://github.com/browserslist/browserslist#queries - -# For the full list of supported browsers by the Angular framework, please see: -# https://angular.io/guide/browser-support - -# You can see what browsers were selected by your queries by running: -# npx browserslist - -last 1 Chrome version -last 1 Firefox version -last 2 Edge major versions -last 2 Safari major versions -last 2 iOS major versions -Firefox ESR diff --git a/integration/ng-add-standalone/.gitignore b/integration/ng-add-standalone/.gitignore index de51f68a2cda..0711527ef9d5 100644 --- a/integration/ng-add-standalone/.gitignore +++ b/integration/ng-add-standalone/.gitignore @@ -1,20 +1,18 @@ # See http://help.github.com/ignore-files/ for more about ignoring files. -# compiled output +# Compiled output /dist /tmp /out-tsc -# Only exists if Bazel was run /bazel-out -# dependencies +# Node /node_modules - -# profiling files -chrome-profiler-events*.json +npm-debug.log +yarn-error.log # IDEs and editors -/.idea +.idea/ .project .classpath .c9/ @@ -22,7 +20,7 @@ chrome-profiler-events*.json .settings/ *.sublime-workspace -# IDE - VSCode +# Visual Studio Code .vscode/* !.vscode/settings.json !.vscode/tasks.json @@ -30,16 +28,15 @@ chrome-profiler-events*.json !.vscode/extensions.json .history/* -# misc -/.sass-cache +# Miscellaneous +/.angular/cache +.sass-cache/ /connect.lock /coverage /libpeerconnection.log -npm-debug.log -yarn-error.log testem.log /typings -# System Files +# System files .DS_Store Thumbs.db diff --git a/integration/ng-add-standalone/README.md b/integration/ng-add-standalone/README.md index 5b305af25c24..452a35639ad4 100644 --- a/integration/ng-add-standalone/README.md +++ b/integration/ng-add-standalone/README.md @@ -1,10 +1,10 @@ # NgAddStandalone -This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.0.0-next.7. +This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 16.0.0-next.7. ## 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 diff --git a/integration/ng-add-standalone/angular.json b/integration/ng-add-standalone/angular.json index d5695fd010dd..6bf2d373a7e8 100644 --- a/integration/ng-add-standalone/angular.json +++ b/integration/ng-add-standalone/angular.json @@ -7,10 +7,14 @@ "projectType": "application", "schematics": { "@schematics/angular:component": { - "style": "scss" + "style": "scss", + "standalone": true }, - "@schematics/angular:application": { - "strict": true + "@schematics/angular:directive": { + "standalone": true + }, + "@schematics/angular:pipe": { + "standalone": true } }, "root": "", @@ -23,7 +27,7 @@ "outputPath": "dist/ng-add-standalone", "index": "src/index.html", "main": "src/main.ts", - "polyfills": "src/polyfills.ts", + "polyfills": ["zone.js"], "tsConfig": "tsconfig.app.json", "inlineStyleLanguage": "scss", "assets": ["src/favicon.ico", "src/assets"], @@ -44,12 +48,6 @@ "maximumError": "4kb" } ], - "fileReplacements": [ - { - "replace": "src/environments/environment.ts", - "with": "src/environments/environment.prod.ts" - } - ], "outputHashing": "all" }, "development": { @@ -84,15 +82,13 @@ "test": { "builder": "@angular-devkit/build-angular:karma", "options": { - "main": "src/test.ts", - "polyfills": "src/polyfills.ts", + "polyfills": ["zone.js", "zone.js/testing"], "tsConfig": "tsconfig.spec.json", "karmaConfig": "karma.conf.js", "inlineStyleLanguage": "scss", "assets": ["src/favicon.ico", "src/assets"], "styles": ["src/styles.scss"], - "scripts": [], - "watch": false + "scripts": [] } } } diff --git a/integration/ng-add-standalone/package.json b/integration/ng-add-standalone/package.json index 27d9944efacc..7c5d992df9d2 100644 --- a/integration/ng-add-standalone/package.json +++ b/integration/ng-add-standalone/package.json @@ -6,37 +6,35 @@ "start": "ng serve", "build": "ng build", "watch": "ng build --watch --configuration development", - "test": "ng test" + "test": "ng test --watch=false" }, "private": true, "dependencies": { - "@angular/animations": "^15.0.0", + "@angular/animations": "^16.0.0-next.7", "@angular/cdk": "file:../../dist/releases/cdk", - "@angular/common": "^15.0.0", - "@angular/compiler": "^15.0.0", - "@angular/core": "^15.0.0", - "@angular/forms": "^15.0.0", + "@angular/common": "^16.0.0-next.7", + "@angular/compiler": "^16.0.0-next.7", + "@angular/core": "^16.0.0-next.7", + "@angular/forms": "^16.0.0-next.7", "@angular/material": "file:../../dist/releases/material", - "@angular/platform-browser": "^15.0.0", - "@angular/platform-browser-dynamic": "^15.0.0", - "@angular/router": "^15.0.0", - "rxjs": "~7.5.0", + "@angular/platform-browser": "^16.0.0-next.7", + "@angular/platform-browser-dynamic": "^16.0.0-next.7", + "@angular/router": "^16.0.0-next.7", + "rxjs": "~7.8.0", "tslib": "^2.3.0", - "zone.js": "~0.11.4" + "zone.js": "~0.13.0" }, "devDependencies": { - "@angular-devkit/build-angular": "^15.0.0", - "@angular/cli": "^15.0.0", - "@angular/compiler-cli": "^15.0.0", - "@types/jasmine": "~3.9.0", - "@types/node": "^12.11.1", - "glob": "^7.2.0", - "jasmine-core": "~3.9.0", - "karma": "~6.3.0", + "@angular-devkit/build-angular": "^16.0.0-next.7", + "@angular/cli": "~16.0.0-next.7", + "@angular/compiler-cli": "^16.0.0-next.7", + "@types/jasmine": "~4.3.0", + "jasmine-core": "~4.6.0", + "karma": "~6.4.0", "karma-chrome-launcher": "~3.1.0", - "karma-coverage": "~2.0.3", - "karma-jasmine": "~4.0.0", - "karma-jasmine-html-reporter": "~1.7.0", + "karma-coverage": "~2.2.0", + "karma-jasmine": "~5.1.0", + "karma-jasmine-html-reporter": "~2.0.0", "typescript": "file:../../node_modules/typescript" } } diff --git a/integration/ng-add-standalone/src/app/app-routing.module.ts b/integration/ng-add-standalone/src/app/app-routing.module.ts deleted file mode 100644 index b504a39f6735..000000000000 --- a/integration/ng-add-standalone/src/app/app-routing.module.ts +++ /dev/null @@ -1,10 +0,0 @@ -import {NgModule} from '@angular/core'; -import {RouterModule, Routes} from '@angular/router'; - -const routes: Routes = []; - -@NgModule({ - imports: [RouterModule.forRoot(routes)], - exports: [RouterModule], -}) -export class AppRoutingModule {} diff --git a/integration/ng-add-standalone/src/app/app.component.html b/integration/ng-add-standalone/src/app/app.component.html index c28b6887ebdd..2a0fbf18f851 100644 --- a/integration/ng-add-standalone/src/app/app.component.html +++ b/integration/ng-add-standalone/src/app/app.component.html @@ -366,6 +366,12 @@