Skip to content

Commit

Permalink
fix: cleanup package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryT-CG committed Jan 11, 2024
1 parent 2bc5221 commit b73f2e6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 16 deletions.
3 changes: 2 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@
"karmaConfig": "karma.conf.js",
"assets": ["src/favicon.ico", "src/assets"],
"styles": ["src/styles.scss"],
"scripts": []
"scripts": [],
"codeCoverageExclude": ["src/app/test/**", "src/app/generated/**"]
}
},
"lint": {
Expand Down
16 changes: 2 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
"start": "ng serve --configuration=development --proxy-config=proxy.conf.js",
"prepare": "husky install",
"lint": "ng lint",
"eslint": "eslint --quiet --ext .js,.ts src/**",
"eslint": "eslint --quiet --ext .js,.ts src",
"format": "ng lint --fix",
"browsers": "npx browserslist",
"test": "ng test",
"test:ci": "ng test --watch=false --browsers=ChromeHeadless --code-coverage",
"karma": "rm -rf reports && npm run test:ci",
"sonar": "npx sonarqube-scanner -Dproject.settings=sonar-local-project.properties",
"sonar": "npx sonarqube-scanner -Dproject.settings=sonar-project.properties",
"apigen-cleanup": "rm -rf $npm_package_config_openapiOutput",
"apigen-format": "npx prettier $npm_package_config_openapiYaml --write && npx prettier $npm_package_config_openapiOutput/**/* --write",
"apigen-generate": "openapi-generator-cli generate -i $npm_package_config_openapiYaml -g typescript-angular -c apigen.yaml -o $npm_package_config_openapiOutput --type-mappings=AnyType=object,set=Array",
Expand All @@ -34,18 +34,6 @@
"pre-commit": "pretty-quick --staged"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
"codeCoverageExclude": [
"src/app/generated/**/*"
]
}
},
"dependencies": {
"@angular-architects/module-federation": "15.0.0",
"@angular/animations": "15.2.7",
Expand Down
2 changes: 1 addition & 1 deletion src/app/theme/theme-import/theme-import.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class ThemeImportComponent implements OnInit {
}
this.checkThemeExistence()
} else {
console.error('Theme Import Error: not valid data ')
console.error('Theme Import Error: not valid data')
this.themeImportError = true
}
} catch (err) {
Expand Down

0 comments on commit b73f2e6

Please sign in to comment.