-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
61 lines (47 loc) · 1.14 KB
/
Makefile
File metadata and controls
61 lines (47 loc) · 1.14 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
MAKEFLAGS = -j1
PATH := $(npm bin):$(PATH)
SHELL := /bin/bash
args = $(filter-out $@, $(MAKECMDGOALS))
export NODE_ENV = test
.PHONY: clean build bootstrap
bootstrap:
lerna bootstrap
build:
fly
ci-test:
make lint
make build
ava
clean:
rm -rf -- packages/*/*dist/
deep-clean:
make clean
rm -rf packages/*/node_modules
rm -rf *.log packages/*/*.log
rm -rf .DS_Store packages/*/.DS_Store
install:
type yarn 2>/dev/null && yarn install || npm install
echo -e "#!/usr/bin/env node\\nrequire('../../packages/docs-helpers-create-test')" > 'node_modules/docs-helpers-create-test/index.js'; \
echo "module.exports = require('../../../packages/docs-helpers-test')" > 'node_modules/docs-helpers-test/dist/index.js'; \
make bootstrap
lint:
eslint 'flyfile.js' 'scripts/**/*' 'packages/*/+(app|public|src|tools)/**/*.js'
publish release:
make clean
make build
make test
lerna publish --npm-tag=latest --force-publish=*
prepublish prerelease:
make clean
make build
make test
lerna publish --npm-tag=prerelease --force-publish=*
reinstall:
rm -rf node_modules
make deep-clean
make install
make build
test:
ava $(args)
watch:
fly watch