Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Introducing nx for caching (#4766)
* initial work * fixing typecheck output * fixing outputs * adjusting pr.yml workflow * changing the root build to use dependOn * working on test caching... * adding inputs for example build tasks * fixing example build caching * adding a pr script * fixing typo in pr.yml * adding dependency test:ci > build-js to fix pipeline error
- Loading branch information
1 parent
e8df7af
commit 17cea29
Showing
5 changed files
with
1,513 additions
and
991 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"tasksRunnerOptions": { | ||
"default": { | ||
"runner": "nx/tasks-runners/default", | ||
"options": { | ||
"cacheableOperations": ["build", "build-js", "test:ci", "typecheck"] | ||
} | ||
} | ||
}, | ||
"defaultBase": "main", | ||
"namedInputs": { | ||
"packageSources": [ | ||
"{workspaceRoot}/packages/**/src/**/*.ts", | ||
"{workspaceRoot}/packages/**/tsconfig.json" | ||
], | ||
"buildDeps": ["{projectRoot}/**/*", "!{projectRoot}/__tests__/**/*"] | ||
}, | ||
"targetDefaults": { | ||
"build": { | ||
"outputs": ["{projectRoot}/build"], | ||
"inputs": ["buildDeps", "^buildDeps"] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"name": "root", | ||
"targets": { | ||
"build-js": { | ||
"command": "rollup --config rollup.config.js", | ||
"inputs": ["packageSources"], | ||
"outputs": [ | ||
"{workspaceRoot}/packages/*/build/stats*", | ||
"{workspaceRoot}/packages/*/build/**/*.(cjs|mjs|js)*" | ||
] | ||
}, | ||
"typecheck": { | ||
"command": "tsc -b", | ||
"inputs": ["packageSources"], | ||
"outputs": [ | ||
"{workspaceRoot}/packages/*/build/**/*d.ts", | ||
"{workspaceRoot}/packages/*/build/.tsbuildinfo" | ||
] | ||
}, | ||
"build": { | ||
"command": "echo \" @tanstack/table > All packages built! 馃摝\"", | ||
"dependsOn": ["build-js", "typecheck"], | ||
"inputs": ["packageSources"] | ||
}, | ||
"test:ci": { | ||
"command": "vitest", | ||
"inputs": ["packageSources", "{workspaceRoot}/packages/*/__tests__/**/*"], | ||
"dependsOn": ["build-js"] | ||
} | ||
} | ||
} |
Oops, something went wrong.