Skip to content

Commit

Permalink
feat: update to angular 16
Browse files Browse the repository at this point in the history
  • Loading branch information
billyjov committed Oct 5, 2023
1 parent 29aa89a commit 7870caa
Show file tree
Hide file tree
Showing 23 changed files with 25,172 additions and 31,187 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
8 changes: 4 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"root": true,
"ignorePatterns": ["**/*"],
"plugins": ["@nrwl/nx"],
"plugins": ["@nx"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@nrwl/nx/enforce-module-boundaries": [
"@nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
Expand All @@ -23,12 +23,12 @@
},
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nrwl/nx/typescript"],
"extends": ["plugin:@nx/typescript"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nrwl/nx/javascript"],
"extends": ["plugin:@nx/javascript"],
"rules": {}
}
]
Expand Down
168 changes: 0 additions & 168 deletions angular.json

This file was deleted.

4 changes: 2 additions & 2 deletions apps/demos/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
"no-underscore-dangle": "off"
},
"extends": [
"plugin:@nrwl/nx/angular",
"plugin:@nx/angular",
"plugin:@angular-eslint/template/process-inline-templates"
]
},
{
"files": ["*.html"],
"rules": {},
"extends": [
"plugin:@nrwl/nx/angular-template",
"plugin:@nx/angular-template",
"plugin:@angular-eslint/template/recommended"
]
}
Expand Down
16 changes: 9 additions & 7 deletions apps/demos/jest.config.js → apps/demos/jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
/* eslint-disable */
module.exports = {
displayName: 'demos',
preset: '../../jest.preset.js',
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
globals: {
'ts-jest': {
tsconfig: '<rootDir>/tsconfig.spec.json',
stringifyContentPathRegex: '\\.(html|svg)$',
},
},
globals: {},
coverageDirectory: '../../coverage/apps/demos',
transform: {
'^.+\\.(ts|mjs|js|html)$': 'jest-preset-angular',
'^.+\\.(ts|mjs|js|html)$': [
'jest-preset-angular',
{
tsconfig: '<rootDir>/tsconfig.spec.json',
stringifyContentPathRegex: '\\.(html|svg)$',
},
],
},
transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'],
snapshotSerializers: [
Expand Down
142 changes: 142 additions & 0 deletions apps/demos/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
{
"name": "demos",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/demos/src",
"projectType": "application",
"targets": {
"build": {
"executor": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/apps/demos",
"index": "apps/demos/src/index.html",
"main": "apps/demos/src/main.ts",
"polyfills": "apps/demos/src/polyfills.ts",
"tsConfig": "apps/demos/tsconfig.app.json",
"assets": [
"apps/demos/src/favicon.ico",
"apps/demos/src/assets",
"apps/demos/src/assets/images",
"apps/demos/src/assets/fontawesome"
],
"styles": ["apps/demos/src/styles.scss"],
"stylePreprocessorOptions": {
"includePaths": ["./node_modules"]
},
"scripts": [],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true,
"aot": false
},
"configurations": {
"production": {
"budgets": [
{
"type": "anyComponentStyle",
"maximumWarning": "6kb"
}
],
"fileReplacements": [
{
"replace": "apps/demos/src/environments/environment.ts",
"with": "apps/demos/src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true
},
"test": {
"budgets": [
{
"type": "anyComponentStyle",
"maximumWarning": "6kb"
}
],
"fileReplacements": [
{
"replace": "apps/demos/src/environments/environment.ts",
"with": "apps/demos/src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true
},
"development": {
"budgets": [
{
"type": "anyComponentStyle",
"maximumWarning": "6kb"
}
],
"fileReplacements": [
{
"replace": "libs/environments/src/environment.ts",
"with": "libs/environments/src/environment.dev.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true
}
}
},
"serve": {
"executor": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "demos:build"
},
"configurations": {
"production": {
"browserTarget": "demos:build:production"
},
"test": {
"browserTarget": "demos:build:test"
},
"development": {
"browserTarget": "demos:build:development"
}
}
},
"extract-i18n": {
"executor": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "demos:build"
}
},
"test": {
"executor": "@nx/jest:jest",
"options": {
"jestConfig": "apps/demos/jest.config.ts",
"passWithNoTests": true,
"codeCoverage": true
}
},
"lint": {
"executor": "@nx/linter:eslint",
"options": {
"lintFilePatterns": ["apps/demos/**/*.ts", "apps/demos/**/*.html"]
}
}
},
"tags": []
}
Loading

0 comments on commit 7870caa

Please sign in to comment.