91 lines
2.1 KiB
JSON
91 lines
2.1 KiB
JSON
{
|
|
"name": "twenty-zapier",
|
|
"projectType": "application",
|
|
"tags": ["scope:zapier"],
|
|
"targets": {
|
|
"build": {
|
|
"outputs": ["{projectRoot}/lib"],
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"cwd": "{projectRoot}",
|
|
"commands": ["npx vite build"]
|
|
},
|
|
"dependsOn": ["clean", "^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 jest --testTimeout 10000"
|
|
]
|
|
}
|
|
},
|
|
"lint": {
|
|
"options": {
|
|
"lintFilePatterns": ["{projectRoot}/src/**/*.{ts,json}"],
|
|
"maxWarnings": 0
|
|
},
|
|
"configurations": {
|
|
"ci": { "lintFilePatterns": ["{projectRoot}/**/*.{ts,json}"] },
|
|
"fix": {}
|
|
}
|
|
},
|
|
"typecheck": {},
|
|
"validate": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"cwd": "{projectRoot}",
|
|
"commands": ["zapier validate"]
|
|
},
|
|
"dependsOn": ["build"]
|
|
},
|
|
"versions": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"cwd": "{projectRoot}",
|
|
"commands": ["zapier versions"]
|
|
},
|
|
"dependsOn": ["build"]
|
|
},
|
|
"watch": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"cwd": "{projectRoot}",
|
|
"commands": ["nx run twenty-zapier:clean && npx tsc --watch"]
|
|
},
|
|
"dependsOn": ["build"]
|
|
},
|
|
"clean": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"cwd": "{projectRoot}",
|
|
"commands": ["rimraf ./lib"]
|
|
}
|
|
},
|
|
"deploy": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"cwd": "{projectRoot}",
|
|
"commands": ["zapier push --disable-dependency-detection"]
|
|
},
|
|
"dependsOn": ["build"]
|
|
},
|
|
"promote": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"cwd": "{projectRoot}",
|
|
"commands": ["zapier promote"]
|
|
},
|
|
"dependsOn": ["build"]
|
|
}
|
|
}
|
|
}
|