Skip to content

Commit 2692b99

Browse files
committed
chore(misc): clean up nx-dev targets
1 parent 1ea82e7 commit 2692b99

File tree

5 files changed

+659
-539
lines changed

5 files changed

+659
-539
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ jest.debug.config.js
2525
/nx-dev/nx-dev/public/documentation
2626
/nx-dev/nx-dev/public/tutorials
2727
/nx-dev/nx-dev/public/images/open-graph
28+
/nx-dev/nx-dev/public/robots.txt
29+
/nx-dev/nx-dev/public/sitemap-0.xml
30+
/nx-dev/nx-dev/public/sitemap.xml
2831

2932
# Banner JSON files are generated during static builds
3033
/nx-dev/nx-dev/lib/banner.json

nx-dev/nx-dev/next.config.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,6 @@ module.exports = withNx({
146146
'@nx/nx-dev-ui-video-courses',
147147
'@nx/nx-dev-util-ai',
148148
],
149-
// For both client and server
150-
env: {
151-
VERCEL: process.env.VERCEL,
152-
},
153149
async headers() {
154150
return [
155151
{

nx-dev/nx-dev/package.json

Lines changed: 47 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,60 @@
44
"type": "commonjs",
55
"private": true,
66
"dependencies": {
7-
"ai": "3.0.19",
8-
"@nx/nx-dev-data-access-documents": "workspace:*",
7+
"@docsearch/react": "3.9.0",
8+
"@grafana/faro-web-sdk": "1.19.0",
9+
"@headlessui/react": "2.2.4",
10+
"@heroicons/react": "2.2.0",
11+
"@markdoc/markdoc": "0.2.2",
12+
"@nx/graph": "1.0.5",
13+
"@nx/nx-darwin-arm64": "21.6.2",
914
"@nx/nx-dev-data-access-courses": "workspace:*",
15+
"@nx/nx-dev-data-access-documents": "workspace:*",
16+
"@nx/nx-dev-feature-ai": "workspace:*",
17+
"@nx/nx-dev-feature-analytics": "workspace:*",
18+
"@nx/nx-dev-feature-feedback": "workspace:*",
19+
"@nx/nx-dev-feature-search": "workspace:*",
20+
"@nx/nx-dev-ui-animations": "workspace:*",
21+
"@nx/nx-dev-ui-blog": "workspace:*",
1022
"@nx/nx-dev-ui-common": "workspace:*",
1123
"@nx/nx-dev-ui-courses": "workspace:*",
24+
"@nx/nx-dev-ui-fence": "workspace:*",
1225
"@nx/nx-dev-ui-icons": "workspace:*",
13-
"@nx/nx-dev-util-ai": "workspace:*",
1426
"@nx/nx-dev-ui-markdoc": "workspace:*",
15-
"@nx/nx-dev-feature-analytics": "workspace:*",
27+
"@nx/nx-dev-ui-podcast": "workspace:*",
28+
"@nx/nx-dev-ui-pricing": "workspace:*",
1629
"@nx/nx-dev-ui-primitives": "workspace:*",
17-
"@nx/nx-dev-feature-feedback": "workspace:*",
18-
"@nx/nx-dev-ui-theme": "workspace:*",
19-
"@nx/nx-dev-feature-ai": "workspace:*",
20-
"@nx/nx-dev-ui-animations": "workspace:*",
21-
"@nx/nx-dev-feature-search": "workspace:*",
2230
"@nx/nx-dev-ui-references": "workspace:*",
23-
"@nx/nx-dev-ui-fence": "workspace:*",
24-
"@nx/nx-dev-ui-blog": "workspace:*",
2531
"@nx/nx-dev-ui-resources": "workspace:*",
26-
"@nx/nx-dev-ui-podcast": "workspace:*",
27-
"@nx/nx-dev-ui-pricing": "workspace:*",
28-
"@nx/nx-dev-ui-video-courses": "workspace:*"
32+
"@nx/nx-dev-ui-theme": "workspace:*",
33+
"@nx/nx-dev-ui-video-courses": "workspace:*",
34+
"@nx/nx-dev-util-ai": "workspace:*",
35+
"@tailwindcss/aspect-ratio": "0.4.2",
36+
"@tailwindcss/forms": "0.5.10",
37+
"@tailwindcss/typography": "0.5.13",
38+
"@yarnpkg/lockfile": "1.1.0",
39+
"@yarnpkg/parsers": "3.0.2",
40+
"ai": "3.0.19",
41+
"axios": "1.12.0",
42+
"classnames": "2.5.1",
43+
"cliui": "8.0.1",
44+
"enquirer": "2.3.6",
45+
"framer-motion": "11.18.2",
46+
"front-matter": "4.0.2",
47+
"ignore": "7.0.5",
48+
"next": "14.2.35",
49+
"next-seo": "5.15.0",
50+
"node-machine-id": "1.1.12",
51+
"npm-run-path": "4.0.1",
52+
"react": "18.3.1",
53+
"react-copy-to-clipboard": "5.1.0",
54+
"react-dom": "18.3.1",
55+
"react-syntax-highlighter": "15.6.1",
56+
"sharp": "0.33.5",
57+
"string-width": "4.2.3",
58+
"tailwind-merge": "2.6.0",
59+
"tailwindcss": "3.4.4",
60+
"tslib": "2.8.1",
61+
"typescript": "5.9.2"
2962
}
3063
}

nx-dev/nx-dev/project.json

Lines changed: 27 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,6 @@
1010
"production",
1111
"^production",
1212
"{projectRoot}/lib/banner.json",
13-
{ "env": "NEXT_PUBLIC_ASTRO_URL" }
14-
]
15-
},
16-
"build": {
17-
"dependsOn": ["copy-docs", "prebuild-banner"],
18-
"executor": "nx:run-commands",
19-
"options": {
20-
"commands": [
21-
{ "command": "next build", "description": "Build Next.js app" },
22-
{
23-
"command": "pnpm next-sitemap --config ./next-sitemap.config.js && node ./scripts/patch-sitemap-index.mjs",
24-
"description": "Generate sitemap"
25-
}
26-
],
27-
"cwd": "nx-dev/nx-dev",
28-
"parallel": false
29-
},
30-
"inputs": [
31-
"production",
32-
"^production",
33-
"{projectRoot}/lib/banner.json",
34-
"{projectRoot}/next-sitemap.config.js",
3513
{ "env": "NEXT_PUBLIC_ASTRO_URL" },
3614
{ "env": "NX_DEV_URL" },
3715
{ "env": "NEXT_PUBLIC_NO_INDEX" }
@@ -42,44 +20,26 @@
4220
"{workspaceRoot}/nx-dev/nx-dev/public/robots.txt"
4321
]
4422
},
45-
"check-links": {
46-
"cache": true,
47-
"dependsOn": ["nx-dev:build", "astro-docs:build"],
48-
"executor": "nx:run-commands",
49-
"options": {
50-
"command": "ts-node -P ./scripts/tsconfig.scripts.json ./scripts/documentation/internal-link-checker.ts"
51-
},
52-
"inputs": [
53-
"{workspaceRoot}/docs/**/*",
54-
{ "dependentTasksOutputFiles": "**/sitemap*.xml" },
55-
"{workspaceRoot}/scripts/tsconfig.scripts.json",
56-
"{workspaceRoot}/scripts/documentation/internal-link-checker.ts"
57-
]
58-
},
59-
"test": {
60-
"dependsOn": ["check-links"]
61-
},
6223
"sitemap": {
63-
"dependsOn": ["build"],
64-
"executor": "nx:run-commands",
24+
"dependsOn": ["nx-dev:next:build"],
6525
"inputs": [
6626
"{workspaceRoot}/docs/**/*",
6727
"production",
6828
"{projectRoot}/next-sitemap.config.js",
6929
{ "env": "NX_DEV_URL" },
7030
{ "env": "NEXT_PUBLIC_NO_INDEX" }
7131
],
72-
"outputs": ["{workspaceRoot}/nx-dev/nx-dev/public"],
32+
"outputs": ["{workspaceRoot}/nx-dev/nx-dev/public/sitemap*.xml"],
33+
"command": "pnpm next-sitemap --config ./next-sitemap.config.js && node ./scripts/patch-sitemap-index.mjs",
7334
"options": {
74-
"command": "pnpm next-sitemap --config ./nx-dev/nx-dev/next-sitemap.config.js && node ./nx-dev/nx-dev/scripts/patch-sitemap-index.mjs"
35+
"cwd": "nx-dev/nx-dev"
7536
}
7637
},
7738
"prebuild-banner": {
78-
"executor": "nx:run-commands",
7939
"cache": false,
8040
"outputs": ["{projectRoot}/lib/banner.json"],
41+
"command": "node ../../scripts/documentation/prebuild-banner.mjs",
8142
"options": {
82-
"command": "node ../../scripts/documentation/prebuild-banner.mjs",
8343
"cwd": "nx-dev/nx-dev",
8444
"env": {
8545
"BANNER_OUTPUT_PATH": "lib/banner.json"
@@ -94,56 +54,32 @@
9454
"cwd": "nx-dev/nx-dev"
9555
}
9656
},
97-
"serve": {
98-
"dependsOn": ["copy-docs", "prebuild-banner"],
99-
"command": "next dev",
100-
"options": {
101-
"cwd": "nx-dev/nx-dev"
102-
}
57+
"copy-redirects": {
58+
"dependsOn": ["nx-dev:next:build"],
59+
"inputs": ["{projectRoot}/_redirects"],
60+
"outputs": ["{projectRoot}/.next/_redirects"],
61+
"command": "cp nx-dev/nx-dev/_redirects nx-dev/nx-dev/.next/_redirects"
10362
},
104-
"serve-docs": {
105-
"executor": "nx:run-commands",
106-
"options": {
107-
"commands": [
108-
"nx watch --projects=docs -- nx run-many -t=copy-docs -p nx-dev",
109-
"nx run nx-dev:serve"
110-
],
111-
"parallel": true
112-
}
63+
"deploy-build": {
64+
"dependsOn": ["sitemap", "copy-redirects"],
65+
"outputs": ["{projectRoot}/.next"]
11366
},
11467
"start": {
115-
"dependsOn": ["build"],
116-
"command": "next start",
117-
"options": {
118-
"cwd": "nx-dev/nx-dev"
119-
}
68+
"command": "nx next:start nx-dev"
12069
},
121-
"deploy-build": {
122-
"executor": "nx:run-commands",
123-
"outputs": ["{projectRoot}/public/documentation"],
124-
"options": {
125-
"commands": [
126-
{
127-
"command": "nx run nx-dev:build",
128-
"description": "NextJs build step"
129-
}
130-
],
131-
"color": true,
132-
"parallel": false,
133-
"env": {
134-
"NODE_OPTIONS": "--max-old-space-size=4096"
135-
}
136-
},
137-
"configurations": {
138-
"netlify": {
139-
"commands": [
140-
{
141-
"command": "nx run nx-dev:build && cp nx-dev/nx-dev/_redirects nx-dev/nx-dev/.next/_redirects",
142-
"description": "NextJs build for Netlify"
143-
}
144-
]
145-
}
146-
}
70+
"check-links": {
71+
"cache": true,
72+
"dependsOn": ["nx-dev:next:build", "astro-docs:build"],
73+
"command": "ts-node -P ./scripts/tsconfig.scripts.json ./scripts/documentation/internal-link-checker.ts",
74+
"inputs": [
75+
"{workspaceRoot}/docs/**/*",
76+
{ "dependentTasksOutputFiles": "**/sitemap*.xml" },
77+
"{workspaceRoot}/scripts/tsconfig.scripts.json",
78+
"{workspaceRoot}/scripts/documentation/internal-link-checker.ts"
79+
]
80+
},
81+
"test": {
82+
"dependsOn": ["check-links"]
14783
}
14884
},
14985
"tags": ["scope:nx-dev", "type:app"],

0 commit comments

Comments
 (0)