Skip to content

Commit

Permalink
Fix nx format
Browse files Browse the repository at this point in the history
  • Loading branch information
RonanCodes committed May 3, 2024
1 parent e1a1414 commit b0014d8
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 20 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
/coverage
/.nx/cache
.angular
tsconfig.json
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ A simple movie search web application
I chose NX instead of the default Angular application as NX provides more modern tooling along with other benefits such as caching executors, and the usage of NX Cloud with GitHub Actions.

NX provides these defaults:

- Jest (instead of Jasmine & Karma)
- Cypress for e2e
- Prettier setup
Expand All @@ -32,8 +33,8 @@ npx create-nx-workspace@latest movie-search --preset=angular-standalone
```

## Angular Material
> npx nx add @angular/material

> npx nx add @angular/material
# NX Default Readme

Expand Down
23 changes: 6 additions & 17 deletions project.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,15 @@
"targets": {
"build": {
"executor": "@angular-devkit/build-angular:application",
"outputs": [
"{options.outputPath}"
],
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/movie-search",
"index": "./src/index.html",
"browser": "./src/main.ts",
"polyfills": [
"zone.js"
],
"polyfills": ["zone.js"],
"tsConfig": "./tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
"./src/favicon.ico",
"./src/assets"
],
"assets": ["./src/favicon.ico", "./src/assets"],
"styles": [
"@angular/material/prebuilt-themes/purple-green.css",
"./src/styles.scss"
Expand Down Expand Up @@ -81,16 +74,12 @@
"lint": {
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": [
"./src"
]
"lintFilePatterns": ["./src"]
}
},
"test": {
"executor": "@nx/jest:jest",
"outputs": [
"{workspaceRoot}/coverage/{projectName}"
],
"outputs": ["{workspaceRoot}/coverage/{projectName}"],
"options": {
"jestConfig": "jest.config.ts"
}
Expand All @@ -105,4 +94,4 @@
}
}
}
}
}
10 changes: 8 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
"importHelpers": true,
"target": "es2022",
"module": "esnext",
"lib": ["es2020", "dom"],
"lib": [
"es2020",
"dom"
],
"skipLibCheck": true,
"skipDefaultLibCheck": true,
"baseUrl": ".",
Expand Down Expand Up @@ -37,7 +40,10 @@
}
],
"compileOnSave": false,
"exclude": ["node_modules", "tmp"],
"exclude": [
"node_modules",
"tmp"
],
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true,
Expand Down

0 comments on commit b0014d8

Please sign in to comment.