infra/nx.json

65 lines
1.1 KiB
JSON
Raw Normal View History

{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"plugins": [
"@nx-extend/pulumi"
],
"targetDefaults": {
"preview": {
"executor": "@nx-extend/pulumi:preview",
"dependsOn": [
"res:build"
]
},
"up": {
"executor": "@nx-extend/pulumi:up",
"dependsOn": [
"res:build"
]
},
"refresh": {
"executor": "@nx-extend/pulumi:refresh",
"options": {
"yes": true
}
},
"res:build": {
"cache": true,
"executor": "nx:run-commands",
"dependsOn": [
"^res:build"
],
"options": {
"commands": [
"rescript build"
],
"cwd": "{projectRoot}"
},
"inputs": [
"{projectRoot}/src/**/*.res"
],
"outputs": [
"{projectRoot}/src/**/*.res.js",
"{projectRoot}/src/**/*.gen.tsx"
]
},
"res:clean": {
"executor": "nx:run-commands",
"options": {
"commands": [
"rescript clean"
],
"cwd": "{projectRoot}"
}
},
"res:dev": {
"executor": "nx:run-commands",
"options": {
"commands": [
"rescript -w"
],
"cwd": "{projectRoot}"
}
}
}
}