65 lines
1.3 KiB
JSON
65 lines
1.3 KiB
JSON
{
|
|
"$schema": "./node_modules/nx/schemas/nx-schema.json",
|
|
"plugins": ["@nx-extend/pulumi"],
|
|
"neverConnectToCloud": true,
|
|
"tasksRunnerOptions": {
|
|
"default": {
|
|
"runner": "nx/tasks-runners/default",
|
|
"options": {
|
|
"useDaemonProcess": false
|
|
}
|
|
}
|
|
},
|
|
"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", "{projectRoot}/src/**/*.resi"],
|
|
"outputs": [
|
|
"{projectRoot}/src/**/*.res.js",
|
|
"{projectRoot}/src/**/*.gen.tsx"
|
|
]
|
|
},
|
|
"res:clean": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"commands": ["rescript clean"],
|
|
"cwd": "{projectRoot}"
|
|
}
|
|
},
|
|
"res:format": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"commands": ["rescript format -all"],
|
|
"cwd": "{projectRoot}"
|
|
}
|
|
},
|
|
"res:dev": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"commands": ["rescript build -w"],
|
|
"cwd": "{projectRoot}"
|
|
}
|
|
}
|
|
}
|
|
}
|