68 lines
1.7 KiB
JSON
68 lines
1.7 KiB
JSON
{
|
|
"name": "twenty-zapier",
|
|
"projectType": "application",
|
|
"tags": ["scope:zapier"],
|
|
"targets": {
|
|
"build": {
|
|
"outputs": ["{projectRoot}/lib"],
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"cwd": "{projectRoot}",
|
|
"commands": ["nx run twenty-zapier:clean && tsc"]
|
|
},
|
|
"dependsOn": ["^build"]
|
|
},
|
|
"format": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"cwd": "{projectRoot}",
|
|
"commands": ["prettier . --write \"!build\""]
|
|
}
|
|
},
|
|
"test": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"cwd": "{projectRoot}",
|
|
"commands": ["NODE_ENV=test && nx run twenty-zapier:build && jest --testTimeout 10000 --rootDir ./lib/test"]
|
|
}
|
|
},
|
|
"validate": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"cwd": "{projectRoot}",
|
|
"commands": ["nx run twenty-zapier:build && zapier validate"]
|
|
}
|
|
},
|
|
"versions": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"cwd": "{projectRoot}",
|
|
"commands": ["nx run twenty-zapier:build && zapier versions"]
|
|
}
|
|
},
|
|
"watch":{
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"cwd": "{projectRoot}",
|
|
"commands": ["nx run twenty-zapier:clean && npx tsc --watch"]
|
|
}
|
|
},
|
|
"clean": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"cwd": "{projectRoot}",
|
|
"commands": ["rimraf ./lib ./build"]
|
|
}
|
|
},
|
|
"deploy": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"cwd": "{projectRoot}",
|
|
"commands": [
|
|
"nx run twenty-zapier:build && cp -r ../twenty-shared/ node_modules/twenty-shared && zapier push --skip-npm-install"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|