gui/cmd/examples/core-task-change/tasks/node.yml

25 lines
539 B
YAML
Raw Permalink Normal View History

version: '3'
tasks:
install:
desc: "Install npm dependencies for the frontend."
dir: '{{.PUBLIC_DIR}}'
sources:
- package.json
- package-lock.json
generates:
- node_modules/*
preconditions:
- sh: npm version
msg: "Looks like npm isn't installed. Npm is part of the Node installer: https://nodejs.org/en/download/"
cmds:
- npm install
build:
desc: "Build the frontend assets."
dir: '{{.PUBLIC_DIR}}'
deps:
- task: install
cmds:
- npm run build