-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
38 lines (27 loc) · 939 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
.PHONY: clean dev dist doc lint node_modules publish-api publish-npm release test watch
node_modules:
@cd packages/bulb; npm install
@cd packages/bulb-input; npm install
dev:
@cd packages/bulb; npx rollup -c -w
dist:
@rm -rf packages/bulb/dist packages/bulb-input/dist
@cd packages/bulb; npx rollup -c
@cd packages/bulb-input; npx rollup -c
test:
@cd packages/bulb; npx jest
watch:
@cd packages/bulb; npx jest --watch
lint:
@cd packages/bulb; npx standard "src/**/*.js"
@cd packages/bulb-input; npx standard "src/**/*.js"
release: dist doc publish-api publish-npm
doc:
@cd packages/bulb; npx documentation build src/** -f html -o docs
publish-api:
@aws s3 sync ./packages/bulb/docs/ s3://bulb.joshbassett.info/ --acl public-read --delete --cache-control 'max-age=300'
publish-npm:
@cd packages/bulb; npm publish
@cd packages/bulb-input; npm publish
clean:
@rm -rf packages/bulb/dist packages/bulb-input/dist docs