-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (21 loc) · 818 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# applications
NODE ?= node
NPM ?= $(NODE) $(shell which npm)
# The `install` task is the default rule in the Makefile.
install: node_modules
# ensures that the `node_modules` directory is installed and up-to-date with
# the dependencies listed in the "package.json" file.
node_modules: package.json
@$(NPM) prune
@$(NPM) install
@touch node_modules
project-unit-test: install
node_modules/.bin/mocha css-visual-test/test
# run the component library server, building the public app first
componentlibrary: install
@$(NODE) css-visual-test/component-library-generator.js
@$(NODE) css-visual-test/component-library-server.js
# run the css visual test tool, building the public app first
visualtest: install
@$(NODE) css-visual-test/component-library-server.js &
@$(NODE) css-visual-test/run-visual-tests.js