-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
46 lines (36 loc) · 1014 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
NODE=16
install:
docker run -i --rm --name install-daisy -v `pwd`:/usr/src/app -w /usr/src/app node:${NODE} npm install ${PCKG}
install-dev:
docker run -i --rm --name install-daisy -v `pwd`:/usr/src/app -w /usr/src/app node:${NODE} npm install ${PCKG} --save-dev
down:
docker-compose down
up:
docker-compose up
run: down install up
test: install unit-tests run-linting
test-fast: unit-tests run-linting
unit-tests:
docker run -i --rm \
--name daisy-ui-test \
-p "9199:9200" \
-v `pwd`:/usr/src/app \
-w /usr/src/app node:${NODE} \
npm test $(TEST) -- --coverage
run-linting:
docker run -i --rm \
--name daisy-ui-linting \
-v `pwd`:/usr/src/app \
-w /usr/src/app node:${NODE} \
npm run lint
run-linting-fix:
docker run -i --rm \
--name daisy-ui-linting \
-v `pwd`:/usr/src/app \
-w /usr/src/app node:${NODE} \
npm run lint:fix
publish-ci: install
docker run -i --rm -p "9198:1337" \
-v `pwd`:/usr/src/app -w /usr/src/app \
-e NPM_TOKEN=$(NPM_TOKEN) \
node:${NODE} bin/publish-ci.js