notebook/nx.json
Jeremy Tuloup ac3c882a24
Enable lerna caching for build scripts (#6767)
* Enable lerna caching for build scripts

* Fix script definitions

* Lint

* simplify cacheable tasks

* Update to lerna 7

* update config

* cleanup

* Stay on lerna 6 for now

* Revert "cleanup"

This reverts commit c061fc07812e7ae231ff8eeedff8ed75f89e4a35.

* lint

* Skip cache when building prod

* Cache labextension builds

* Update `targetDefaults`

* Update dev command

* Fix dependencies

* Add missing dependency

* fix dep order

* fix script deps

* Update scripts

* Update scripts dependencies

* Add back scripts

* lint

* cache more

* Mention task caching in contributing guide
2023-07-31 15:07:15 +02:00

36 lines
786 B
JSON

{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"tasksRunnerOptions": {
"default": {
"runner": "nx/tasks-runners/default",
"options": {
"cacheableOperations": [
"build",
"build:prod",
"build:lib",
"build:labextension:dev",
"build:labextension"
]
}
}
},
"namedInputs": {
"default": ["{projectRoot}/**/*"]
},
"targetDefaults": {
"build:lib": {
"dependsOn": ["^build:lib"],
"inputs": ["default", "^default"],
"outputs": ["{projectRoot}/lib"]
},
"build": {
"dependsOn": ["^build"],
"inputs": ["default", "^default"]
},
"build:prod": {
"dependsOn": ["^build:prod"],
"inputs": ["default", "^default"]
}
}
}