Skip to content

Commit

Permalink
feat: swap angular build of app to esbuild and start using pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
nacho-vazquez committed May 28, 2024
1 parent c0fa635 commit 1b4d37a
Show file tree
Hide file tree
Showing 7 changed files with 19,809 additions and 18,186 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,5 @@ migrations.json
.docusaurus/
.cache-loader/

.nx/cache
.nx/cache
.angular
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
# Generated files
packages/**/CHANGELOG.md

/.nx/cache
/.nx/cache
.angular
11 changes: 8 additions & 3 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
},
"generators": {
"@nx/angular:application": {
"style": "scss",
"e2eTestRunner": "cypress",
"linter": "eslint",
"unitTestRunner": "jest",
"e2eTestRunner": "cypress"
"style": "scss",
"unitTestRunner": "jest"
},
"@nx/angular:library": {
"linter": "eslint",
Expand Down Expand Up @@ -54,6 +54,11 @@
"inputs": ["default", "{workspaceRoot}/.eslintrc.json"],
"cache": true,
"outputs": ["{options.outputFile}"]
},
"@angular-devkit/build-angular:application": {
"cache": true,
"dependsOn": ["^build"],
"inputs": ["production", "^production"]
}
},
"workspaceLayout": {
Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,13 @@
"@nx/eslint": "19.1.0",
"@nx/eslint-plugin": "19.1.0",
"@nx/jest": "19.1.0",
"@nx/js": "19.1.0",
"@nx/web": "19.1.0",
"@nx/workspace": "19.1.0",
"@schematics/angular": "18.0.1",
"@swc-node/register": "~1.8.0",
"@swc/core": "~1.3.85",
"@swc/helpers": "~0.5.2",
"@tsconfig/docusaurus": "^1.0.6",
"@types/copy": "0.3.2",
"@types/jest": "29.4.4",
Expand Down
34 changes: 20 additions & 14 deletions packages/examples/lumberjack-app/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,22 @@
"tags": ["scope:internal", "type:app"],
"targets": {
"build": {
"executor": "@angular-devkit/build-angular:browser",
"executor": "@angular-devkit/build-angular:application",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/packages/examples/lumberjack-app",
"index": "packages/examples/lumberjack-app/src/index.html",
"main": "packages/examples/lumberjack-app/src/main.ts",
"browser": "packages/examples/lumberjack-app/src/main.ts",
"polyfills": ["zone.js"],
"tsConfig": "packages/examples/lumberjack-app/tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": ["packages/examples/lumberjack-app/src/favicon.ico", "packages/examples/lumberjack-app/src/assets"],
"styles": ["packages/examples/lumberjack-app/src/styles.scss"],
"assets": [
{
"glob": "**/*",
"input": "packages/examples/lumberjack-app"
}
],
"scripts": []
},
"configurations": {
Expand All @@ -37,12 +42,11 @@
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
"namedChunks": true,
"sourceMap": true
}
},
"defaultConfiguration": "production"
Expand Down Expand Up @@ -72,14 +76,7 @@
}
},
"lint": {
"executor": "@nx/eslint:lint",
"configurations": {
"report": {
"format": "json",
"force": true,
"outputFile": "reports/packages/examples/lumberjack-app/lint/report.json"
}
}
"executor": "@nx/eslint:lint"
},
"test": {
"executor": "@nx/jest:jest",
Expand All @@ -95,6 +92,15 @@
"coverageReporters": ["lcovonly", "text-summary"]
}
}
},
"serve-static": {
"executor": "@nx/web:file-server",
"options": {
"buildTarget": "test:build",
"port": 4200,
"staticFilePath": "dist/examples/test/browser",
"spa": true
}
}
}
}
Loading

0 comments on commit 1b4d37a

Please sign in to comment.