Skip to content

Commit

Permalink
feat: Angular 14 (#93)
Browse files Browse the repository at this point in the history
* chore: prepare for CI/CD

remove a bunch of extraneous code and tests

* chore fix test errors

* chore: add CI/CD

* chore: fix build warnings

* chore: add symbol upload secrets

* chore: fix secrets

* chore: ran npm i

* chore: ran ng update

* chore: remove deprecated defaultProject option

* chore: update package version to 13

* chore: fix linting issues

* chore: silence ts test errors

* chore: squash more ts test errors

* refactore: add semi

* feat: use bugsplatJs to keep track of desc, key, email, user

* chore: fix lib build

* chore: fix sample

* chore: add tests for bugsplat-js setDefaults

* chore: fix weird missing .eslintrc.json

* chore: add lint rule for single quotes

* chore: remove todo

* fix: fix semantic release committing wrong version info

BREAKING CHANGE: Description, key, email, and user are now set only properties. Updates to package version to stay in sync with Angular versions.
  • Loading branch information
bobbyg603 committed Aug 2, 2022
1 parent 7729507 commit c8abb02
Show file tree
Hide file tree
Showing 23 changed files with 7,729 additions and 10,272 deletions.
63 changes: 63 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"root": true,
// Additional projects are linted separately
"ignorePatterns": [
"projects/**/*"
],
"overrides": [
{
"files": [
"*.ts"
],
"parserOptions": {
"project": [
"tsconfig.app.json",
"tsconfig.spec.json"
],
"createDefaultProgram": true
},
"extends": [
"plugin:@angular-eslint/ng-cli-compat",
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "app",
"style": "camelCase"
}
],
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "app",
"style": "kebab-case"
}
],
"@typescript-eslint/quotes": [
"error",
"single",
{
"allowTemplateLiterals": true
}
]
}
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended"
],
"rules": {
"max-len": [
"off"
]
}
}
]
}
6 changes: 3 additions & 3 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
"plugins": [
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/git",
"@semantic-release/github",
[
"@semantic-release/npm",
{
"pkgRoot": "dist/bugsplat-ng"
}
]
],
"@semantic-release/git",
"@semantic-release/github"
]
}
24 changes: 18 additions & 6 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,15 @@
"projects/my-angular-crasher/src/assets"
]
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"projects/my-angular-crasher/**/*.ts",
"projects/my-angular-crasher/**/*.html"
]
}
}
}
},
Expand All @@ -100,17 +109,19 @@
"prefix": "bug",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"tsConfig": "projects/bugsplat-ng/tsconfig.lib.json",
"project": "projects/bugsplat-ng/ng-package.json"
},
"configurations": {
"production": {
"project": "projects/bugsplat-ng/ng-package.prod.json",
"tsConfig": "projects/bugsplat-ng/tsconfig.lib.prod.json"
},
"development": {
"tsConfig": "projects/bugsplat-ng/tsconfig.lib.json"
}
}
},
"defaultConfiguration": "production"
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
Expand All @@ -132,9 +143,10 @@
}
}
},
"defaultProject": "my-angular-crasher",
"cli": {
"analytics": "05c6acf5-d643-470e-b261-021c03f97339",
"defaultCollection": "@angular-eslint/schematics"
"schematicCollections": [
"@angular-eslint/schematics"
]
}
}
Loading

0 comments on commit c8abb02

Please sign in to comment.