Skip to content

Commit

Permalink
feat(): upgrade to angular 13 and release v5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Ks89 committed Nov 4, 2021
1 parent 2bb6934 commit 3d07730
Show file tree
Hide file tree
Showing 12 changed files with 7,662 additions and 15,776 deletions.
2 changes: 0 additions & 2 deletions .browserslistrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,3 @@ last 2 Edge major versions
last 2 Safari major versions
last 2 iOS major versions
Firefox ESR
not IE 9-10 # Angular support for IE 9-10 has been deprecated and will be removed as of Angular v11. To opt-in, remove the 'not' prefix on this line.
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,4 @@ testem.log
Thumbs.db
@ks89/
dist/
.angular/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<br>

**Tested only with Angular 12.x.x and angular-cli 12.x.x**
**Tested only with Angular 13.x.x and angular-cli 13.x.x**


## Installation
Expand Down
101 changes: 37 additions & 64 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"schematics": {
"@schematics/angular:component": {
"style": "scss"
},
"@schematics/angular:application": {
"strict": true
}
},
"root": "",
Expand All @@ -22,6 +25,7 @@
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
"src/favicon.ico",
"src/assets"
Expand All @@ -31,31 +35,13 @@
"node_modules/codemirror/lib/codemirror.css",
"node_modules/codemirror/theme/monokai.css"
],
"scripts": [
"scripts": [],
"allowedCommonJsDependencies": [
"node_modules/codemirror/lib/codemirror.js"
],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
]
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
Expand All @@ -67,10 +53,25 @@
"maximumWarning": "6kb",
"maximumError": "10kb"
}
]
],
"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": ""
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
Expand All @@ -80,8 +81,12 @@
"configurations": {
"production": {
"browserTarget": "ngx-codemirror:build:production"
},
"development": {
"browserTarget": "ngx-codemirror:build:development"
}
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
Expand All @@ -96,6 +101,7 @@
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
"inlineStyleLanguage": "scss",
"assets": [
"src/favicon.ico",
"src/assets"
Expand All @@ -105,31 +111,6 @@
],
"scripts": []
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"tsconfig.app.json",
"tsconfig.spec.json",
"e2e/tsconfig.json"
],
"exclude": [
"**/node_modules/**"
]
}
},
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "ngx-codemirror:serve"
},
"configurations": {
"production": {
"devServerTarget": "ngx-codemirror:serve:production"
}
}
}
}
},
Expand All @@ -142,33 +123,25 @@
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"tsConfig": "projects/ks89/ngx-codemirror/tsconfig.lib.json",
"project": "projects/ks89/ngx-codemirror/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "projects/ks89/ngx-codemirror/tsconfig.lib.prod.json"
},
"development": {
"tsConfig": "projects/ks89/ngx-codemirror/tsconfig.lib.json"
}
}
},
"defaultConfiguration": "production"
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/ks89/ngx-codemirror/src/test.ts",
"tsConfig": "projects/ks89/ngx-codemirror/tsconfig.spec.json",
"karmaConfig": "projects/ks89/ngx-codemirror/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/ks89/ngx-codemirror/tsconfig.lib.json",
"projects/ks89/ngx-codemirror/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
"karmaConfig": "projects/ks89/ngx-codemirror/karma.conf.js",
"codeCoverage": true
}
}
}
Expand Down
Loading

0 comments on commit 3d07730

Please sign in to comment.