nx/nx-dev/tutorial/project.json
Isaac Mann 0e16f98c27
feat(nx-dev): tutorial landing page and improvements (#30757)
Updates the online tutorial experience

- Adds a landing page at
[/tutorials](https://nx-dev-git-docs-tutorial-landing-page-nrwl.vercel.app/tutorials)
- Terminal code blocks get a "run in terminal" button
- Code blocks get an "Apply file changes" button
- The apply file changes button currently only works for code blocks
that are showing the new file results (not showing the old file with
lines marked for deletion). There is nothing technical blocking this,
just time.
- Previous and next buttons do not go between tutorials
- The preview panel can be completely minimized
- Git is stubbed out
2025-04-23 15:08:51 -04:00

31 lines
875 B
JSON

{
"name": "tutorial",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "nx-dev/tutorial/src",
"projectType": "library",
"tags": [],
"// targets": "to see all targets run: nx show project tutorial --web",
"targets": {
"build-code-block-button": {
"command": "node ./compile-js-module.mjs",
"inputs": [
"{projectRoot}/src/code-block-button/compile-js-module.mjs",
"{projectRoot}/src/code-block-button/js-module.ts",
{ "externalDependencies": ["esbuild"] }
],
"outputs": ["{projectRoot}/src/code-block-button/js-module.min.ts"],
"options": {
"cwd": "{projectRoot}"
}
},
"build": {
"inputs": ["{projectRoot}/src/**/**"],
"outputs": ["{projectRoot}/dist"]
},
"lint": {
"command": "echo no linting",
"cache": true
}
}
}