forked from corpix/material-ui-upload
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
42 lines (33 loc) · 846 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
.DEFAULT_GOAL := all
name := material-ui-upload
modules := ./node_modules
bin := $(modules)/.bin
src := ./src
scripts := ./scripts
PATH := $(scripts):$(bin):$(PATH)
export PATH
.PHONY: all
all: build
.PHONY: build
build: $(modules) $(src)
$(scripts)/ensure-emacs-modes
$(scripts)/build $(src)
.PHONY: test
test: $(modules) lint build
$(bin)/jest --config .jest.json
.PHONY: $(modules) lint
lint:
$(bin)/eslint .
package-lock.json $(modules): package.json
npm install --ignore-scripts
touch package-lock.json $(modules)
.PHONY: tag
tag:
git tag $(shell jq -r .version package.json)
.PHONY: storybook-server
storybook-server: build $(modules)
if [ ! -e $(modules)/$(name) ]; \
then \
ln -s $(PWD) $(modules)/$(name); \
fi
$(bin)/start-storybook -p 9001 -c .storybook