Skip to content

Commit

Permalink
Bump to Angular 16
Browse files Browse the repository at this point in the history
  • Loading branch information
amitdahan committed Jul 11, 2023
1 parent f485155 commit 3919eaa
Show file tree
Hide file tree
Showing 28 changed files with 2,796 additions and 3,843 deletions.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@
"test:all": "yarn workspaces foreach -pv run test:ci",
"lint:all": "yarn workspaces foreach -pv run lint"
},
"packageManager": "[email protected]"
"packageManager": "[email protected]",
"devDependencies": {
"@angular/cli": "^16.1.4"
}
}
16 changes: 0 additions & 16 deletions packages/ngx-filesize-demo/.browserslistrc

This file was deleted.

3 changes: 3 additions & 0 deletions packages/ngx-filesize-demo/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"root": true,
"ignorePatterns": [
"projects/**/*"
],
"overrides": [
{
"files": [
Expand Down
26 changes: 13 additions & 13 deletions packages/ngx-filesize-demo/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
"$schema": "../../node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"cli": {
"packageManager": "yarn"
"packageManager": "yarn",
"schematicCollections": [
"@angular-eslint/schematics"
]
},
"newProjectRoot": "projects",
"projects": {
Expand All @@ -19,7 +22,9 @@
"outputPath": "dist/ngx-filesize-demo",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"polyfills": [
"zone.js"
],
"tsConfig": "tsconfig.app.json",
"assets": [
"src/favicon.ico",
Expand All @@ -44,12 +49,6 @@
"maximumError": "4kb"
}
],
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"outputHashing": "all"
},
"development": {
Expand Down Expand Up @@ -84,10 +83,11 @@
"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",
"assets": [
"src/favicon.ico",
"src/assets"
Expand All @@ -102,8 +102,8 @@
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"**/*.ts",
"**/*.html"
"src/**/*.ts",
"src/**/*.html"
]
}
}
Expand Down
44 changes: 0 additions & 44 deletions packages/ngx-filesize-demo/karma.conf.js

This file was deleted.

31 changes: 20 additions & 11 deletions packages/ngx-filesize-demo/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "ngx-filesize-demo",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
Expand All @@ -11,28 +12,36 @@
},
"private": true,
"dependencies": {
"@angular/common": "^14.2.7",
"@angular/compiler": "^14.2.7",
"@angular/core": "^14.2.7",
"@angular/platform-browser": "^14.2.7",
"@angular/platform-browser-dynamic": "^14.2.7",
"@angular/common": "^16.1.0",
"@angular/compiler": "^16.1.0",
"@angular/core": "^16.1.0",
"@angular/platform-browser": "^16.1.0",
"@angular/platform-browser-dynamic": "^16.1.0",
"filesize": "^9.0.11",
"ngx-filesize": "workspace:*",
"rxjs": "~7.8.0",
"tslib": "^2.4.0",
"tslib": "^2.3.0",
"zone.js": "~0.13.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "^14.2.6",
"@angular/cli": "~14.2.6",
"@angular/compiler-cli": "^14.2.7",
"@angular-devkit/build-angular": "^16.1.4",
"@angular-eslint/builder": "14.4.0",
"@angular-eslint/eslint-plugin": "14.4.0",
"@angular-eslint/eslint-plugin-template": "14.4.0",
"@angular-eslint/schematics": "14.4.0",
"@angular-eslint/template-parser": "14.4.0",
"@angular/cli": "~16.1.4",
"@angular/compiler-cli": "^16.1.0",
"@types/jasmine": "~4.3.0",
"@typescript-eslint/eslint-plugin": "5.43.0",
"@typescript-eslint/parser": "5.43.0",
"eslint": "^8.28.0",
"jasmine-core": "~4.6.0",
"karma": "~6.4.1",
"karma": "~6.4.0",
"karma-chrome-launcher": "~3.2.0",
"karma-coverage": "~2.2.0",
"karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "~2.1.0",
"typescript": "~4.8.0"
"typescript": "~5.1.3"
}
}
41 changes: 0 additions & 41 deletions packages/ngx-filesize-demo/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,40 +8,10 @@
-moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
margin: 8px 0;
}

p {
margin: 0;
}

.spacer {
flex: 1;
}

.toolbar {
position: absolute;
top: 0;
left: 0;
right: 0;
height: 60px;
display: flex;
align-items: center;
background-color: #1976d2;
color: white;
font-weight: 600;
}

.toolbar img {
margin: 0 16px;
}

.content {
display: flex;
margin: 82px auto 32px;
Expand All @@ -50,17 +20,6 @@
flex-direction: column;
align-items: center;
}

a,
a:visited,
a:hover {
color: #1976d2;
text-decoration: none;
}

a:hover {
color: #125699;
}
</style>

<!-- Toolbar -->
Expand Down
14 changes: 4 additions & 10 deletions packages/ngx-filesize-demo/src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,10 @@ import { NgxFilesizeModule } from 'ngx-filesize';
import filesize from 'filesize';

describe('AppComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [
AppComponent
],
imports: [
NgxFilesizeModule
],
}).compileComponents();
});
beforeEach(() => TestBed.configureTestingModule({
declarations: [AppComponent],
imports: [NgxFilesizeModule],
}));

it('should create the app', () => {
const fixture = TestBed.createComponent(AppComponent);
Expand Down
4 changes: 2 additions & 2 deletions packages/ngx-filesize-demo/src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { NgxFilesizeModule } from 'ngx-filesize';

import { AppComponent } from './app.component';
import { NgxFilesizeModule } from 'ngx-filesize';

@NgModule({
declarations: [
Expand Down

This file was deleted.

16 changes: 0 additions & 16 deletions packages/ngx-filesize-demo/src/environments/environment.ts

This file was deleted.

5 changes: 0 additions & 5 deletions packages/ngx-filesize-demo/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';

import { AppModule } from './app/app.module';
import { environment } from './environments/environment';

if (environment.production) {
enableProdMode();
}

platformBrowserDynamic().bootstrapModule(AppModule)
.catch(err => console.error(err));
53 changes: 0 additions & 53 deletions packages/ngx-filesize-demo/src/polyfills.ts

This file was deleted.

Loading

0 comments on commit 3919eaa

Please sign in to comment.