Skip to content

Commit

Permalink
fix(content): adjust project config (#1122)
Browse files Browse the repository at this point in the history
  • Loading branch information
nartc authored May 29, 2024
1 parent 9f750ae commit 2570d65
Show file tree
Hide file tree
Showing 28 changed files with 76 additions and 72 deletions.
6 changes: 3 additions & 3 deletions apps/analog-app-e2e-cypress/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/analog-app-e2e-cypress/src",
"projectType": "application",
"tags": [],
"implicitDependencies": ["analog-app"],
"targets": {
"e2e": {
"executor": "@nx/cypress:cypress",
Expand All @@ -22,7 +24,5 @@
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"]
}
},
"tags": [],
"implicitDependencies": ["analog-app"]
}
}
6 changes: 3 additions & 3 deletions apps/analog-app-e2e-playwright/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/analog-app-e2e-playwright/src",
"projectType": "application",
"tags": [],
"implicitDependencies": ["analog-app"],
"targets": {
"vitest": {
"executor": "@nx/vite:test"
Expand All @@ -18,7 +20,5 @@
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"]
}
},
"tags": [],
"implicitDependencies": ["analog-app"]
}
}
4 changes: 2 additions & 2 deletions apps/analog-app/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"projectType": "application",
"sourceRoot": "apps/analog-app/src",
"prefix": "analogjs",
"tags": [],
"targets": {
"build": {
"executor": "@nx/vite:build",
Expand Down Expand Up @@ -66,6 +67,5 @@
"executor": "@nx/vite:test",
"outputs": ["{projectRoot}/coverage"]
}
},
"tags": []
}
}
6 changes: 3 additions & 3 deletions apps/analog-preset-e2e/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "application",
"sourceRoot": "apps/analog-preset-e2e/src",
"tags": [],
"implicitDependencies": ["platform"],
"targets": {
"e2e": {
"executor": "@nx/vite:test"
}
},
"tags": [],
"implicitDependencies": ["platform"]
}
}
6 changes: 3 additions & 3 deletions apps/astro-app-e2e-playwright/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/astro-app-e2e-playwright/src",
"projectType": "application",
"tags": [],
"implicitDependencies": ["astro-app"],
"targets": {
"vitest": {
"executor": "@nx/vite:test"
Expand All @@ -18,7 +20,5 @@
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"]
}
},
"tags": [],
"implicitDependencies": ["astro-app"]
}
}
6 changes: 3 additions & 3 deletions apps/astro-app/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "application",
"sourceRoot": "apps/astro-app/src",
"tags": [],
"implicitDependencies": ["astro-angular"],
"targets": {
"serve": {
"command": "astro dev --root apps/astro-app"
Expand All @@ -13,7 +15,5 @@
"preview": {
"command": "astro preview --root apps/astro-app"
}
},
"tags": [],
"implicitDependencies": ["astro-angular"]
}
}
6 changes: 3 additions & 3 deletions apps/blog-app-e2e-cypress/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/blog-app-e2e-cypress/src",
"projectType": "application",
"tags": [],
"implicitDependencies": ["blog-app"],
"targets": {
"e2e": {
"executor": "@nx/cypress:cypress",
Expand All @@ -21,7 +23,5 @@
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"]
}
},
"tags": [],
"implicitDependencies": ["blog-app"]
}
}
4 changes: 2 additions & 2 deletions apps/blog-app/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"projectType": "application",
"sourceRoot": "apps/blog-app/src",
"prefix": "blog",
"tags": [],
"targets": {
"build": {
"executor": "@nx/vite:build",
Expand Down Expand Up @@ -54,6 +55,5 @@
"staticFilePath": "dist/apps/blog-app/analog/public"
}
}
},
"tags": []
}
}
6 changes: 3 additions & 3 deletions apps/create-analog-e2e/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "application",
"sourceRoot": "apps/create-analog-e2e/src",
"tags": [],
"implicitDependencies": ["create-analog"],
"targets": {
"e2e": {
"executor": "@nx/vite:test"
}
},
"tags": [],
"implicitDependencies": ["create-analog"]
}
}
14 changes: 7 additions & 7 deletions apps/docs-app/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,19 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "application",
"sourceRoot": "apps/docs-app/src",
"tags": [],
"namedInputs": {
"projectSpecificFiles": ["{workspaceRoot}/CONTRIBUTING.md"]
},
"targets": {
"build": {
"executor": "nx:run-commands",
"options": {
"cwd": "apps/docs-app",
"command": "docusaurus build --out-dir={args.out-dir}",
"out-dir": "../../dist/apps/docs-app",
"outputPath": "dist/apps/docs-app"
}
"out-dir": "../../dist/apps/docs-app"
},
"outputs": ["{workspaceRoot}/dist/apps/docs-app"]
},
"serve": {
"executor": "nx:run-commands",
Expand Down Expand Up @@ -44,9 +48,5 @@
"command": "docusaurus write-translations --locale={args.locale}"
}
}
},
"tags": [],
"namedInputs": {
"projectSpecificFiles": ["{workspaceRoot}/CONTRIBUTING.md"]
}
}
6 changes: 3 additions & 3 deletions apps/nx-plugin-e2e/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "application",
"sourceRoot": "apps/nx-plugin-e2e/src",
"tags": [],
"implicitDependencies": ["platform", "trpc", "content"],
"targets": {
"e2e": {
"executor": "@nx/vite:test"
}
},
"tags": [],
"implicitDependencies": ["platform", "trpc", "content"]
}
}
6 changes: 3 additions & 3 deletions apps/trpc-app-e2e-playwright/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/trpc-app-e2e-playwright/src",
"projectType": "application",
"tags": [],
"implicitDependencies": ["trpc-app"],
"targets": {
"vitest": {
"executor": "@nx/vite:test"
Expand All @@ -18,7 +20,5 @@
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"]
}
},
"tags": [],
"implicitDependencies": ["trpc-app"]
}
}
6 changes: 3 additions & 3 deletions apps/trpc-app/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "application",
"sourceRoot": "apps/trpc-app/src",
"tags": [],
"implicitDependencies": ["trpc"],
"targets": {
"build": {
"dependsOn": ["^build"],
Expand Down Expand Up @@ -67,7 +69,5 @@
"executor": "@nx/vite:test",
"outputs": ["{projectRoot}/coverage"]
}
},
"tags": [],
"implicitDependencies": ["trpc"]
}
}
6 changes: 3 additions & 3 deletions libs/card/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "libs/card/src",
"prefix": "lib",
"tags": [],
"projectType": "library",
"tags": [],
"implicitDependencies": ["vite-plugin-angular"],
"targets": {
"test": {
"executor": "@nx/vite:test"
Expand All @@ -13,6 +14,5 @@
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"]
}
},
"implicitDependencies": ["vite-plugin-angular"]
}
}
4 changes: 2 additions & 2 deletions libs/top-bar/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"projectType": "library",
"sourceRoot": "libs/top-bar/src",
"prefix": "analogjs",
"tags": [],
"targets": {
"test": {
"executor": "@nx/vite:test"
Expand All @@ -12,6 +13,5 @@
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"]
}
},
"tags": []
}
}
5 changes: 0 additions & 5 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@
"@nx/eslint:lint": {
"inputs": ["default", "{workspaceRoot}/.eslintrc.json"],
"cache": true
},
"@nx/js:tsc": {
"cache": true,
"dependsOn": ["^build"],
"inputs": ["production", "^production"]
}
},
"generators": {
Expand Down
4 changes: 2 additions & 2 deletions packages/astro-angular/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "packages/astro-angular/src",
"projectType": "library",
"tags": [],
"targets": {
"build": {
"executor": "@nx/js:tsc",
Expand Down Expand Up @@ -43,6 +44,5 @@
"tagPrefix": "astro-angular@"
}
}
},
"tags": []
}
}
3 changes: 2 additions & 1 deletion packages/content-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "content-plugin",
"version": "0.0.1",
"main": "./src/index.js"
"main": "./src/index.js",
"type": "commonjs"
}
2 changes: 1 addition & 1 deletion packages/content-plugin/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"module": "commonjs"
"module": "CommonJS"
},
"files": [],
"include": [],
Expand Down
1 change: 0 additions & 1 deletion packages/content/ng-package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../node_modules/@analogjs/content",
"assets": ["migrations/migration.json"],
"lib": {
"entryFile": "src/index.ts"
}
Expand Down
13 changes: 11 additions & 2 deletions packages/content/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,18 @@
"projectType": "library",
"sourceRoot": "packages/content/src",
"prefix": "analogjs",
"tags": [],
"targets": {
"build": {
"executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/node_modules/@analogjs/content"],
"options": {
"commands": ["nx build-package content", "nx build content-plugin"],
"parallel": false
},
"dependsOn": ["^build"]
},
"build-package": {
"executor": "@angular-devkit/build-angular:ng-packagr",
"outputs": ["{workspaceRoot}/node_modules/@analogjs/content"],
"options": {
Expand Down Expand Up @@ -36,6 +46,5 @@
"tagPrefix": "content@"
}
}
},
"tags": []
}
}
4 changes: 2 additions & 2 deletions packages/create-analog/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "packages/vite-plugin-angular/src",
"projectType": "library",
"tags": [],
"targets": {
"build": {
"executor": "nx:run-commands",
Expand All @@ -21,6 +22,5 @@
"tagPrefix": "create-analog@"
}
}
},
"tags": []
}
}
4 changes: 2 additions & 2 deletions packages/nx-plugin/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "packages/nx-plugin/src",
"projectType": "library",
"tags": [],
"targets": {
"build": {
"executor": "@nx/js:tsc",
Expand Down Expand Up @@ -43,6 +44,5 @@
"test": {
"executor": "@nx/vite:test"
}
},
"tags": []
}
}
Loading

0 comments on commit 2570d65

Please sign in to comment.