blob: 608e3e2ed2d68bfa694b0bc47b3730740dfc2d4a [file] [log] [blame]
# The "all" target is invoked from the "all" target in the Makefile in the repo's root directory,
# which is in turn invoked by the Infra-PerCommit-Build task to build various Skia Infrastructure
# apps. Since some of those apps depend on infra-sk, we first need to install the npm dependencies
# and make sure infra-sk actually builds.
all:
npm ci
npx webpack --mode=production
default: package-lock.json
npx webpack --mode=development
release: package-lock.json
npx webpack --mode=production
serve: package-lock.json
npx webpack-dev-server --mode=development --content-base ./dist --watch-poll
test:
# Run the generated tests just once under Xvfb.
xvfb-run --auto-servernum --server-args "-screen 0 1280x1024x24" npx karma start --single-run
docs: package-lock.json
npx jsdoc -c jsdoc.config.js
package-lock.json: package.json
npm install