feat(preset): add build and publish tasks
This commit is contained in:
@@ -13,6 +13,14 @@ commands = ["npm install --legacy-peer-deps"]
|
||||
conditions = ["file(node_modules/jest)"]
|
||||
commands = ["npx jest"]
|
||||
|
||||
[presets.nodejs.tasks.build.npm]
|
||||
conditions = ["file(package.json) | get(scripts.build)"]
|
||||
commands = ["npm run build"]
|
||||
|
||||
[presets.nodejs.tasks.publish.npm]
|
||||
conditions = ["file(package.json) | get(scripts.publish)"]
|
||||
commands = ["npm run publish"]
|
||||
|
||||
[presets.nodejs.tasks.clean.node_modules]
|
||||
conditions = ["file(node_modules)"]
|
||||
commands = ["rm -rf node_modules"]
|
||||
|
||||
Reference in New Issue
Block a user