forked from jalaali/moment-jalaali
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (23 loc) · 851 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
build/moment-jalaali.js: components index.js builder/before.js builder/after.js
@$(MAKE) lint
@mkdir -p build
@cat builder/before.js components/jalaali/jalaali-js/*/index.js builder/middle.js index.js builder/after.js > build/moment-jalaali.js
MOCHA_CMD = mocha --reporter spec --ui bdd --colors --check-leaks
test: build/moment-jalaali.js
@$(MOCHA_CMD) test.js
dev: build/moment-jalaali.js
@$(MOCHA_CMD) --watch test.js
lint: lint-index lint-test
lint-index: node_modules
@eslint index.js
lint-test: node_modules
@eslint --env mocha --rule 'no-unused-expressions: 0' test.js
components: node_modules component.json
@component install && touch $@
node_modules: package.json
@npm install && touch $@
clean:
@rm -fr build
clean-all: clean
@rm -fr components node_modules
.PHONY: test dev lint lint-index lint-test clean clean-all