File: Makefile

package info (click to toggle)
node-assertion-error 1.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 216 kB
  • sloc: javascript: 129; makefile: 24
file content (41 lines) | stat: -rw-r--r-- 659 bytes parent folder | download | duplicates (2)
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

#
# Tests
# 

test: test-node test-typescript

test-node: 
	@printf "\n  ==> [Node.js]\n"
	@NODE_ENV=test nodejs ./test/index.js

test-browser:
	@printf "\n  ==> [Browser]\n"
	@make build
	@printf "\n\n  Open 'test/index.html' in your browser to test.\n\n"

test-typescript:
	@./node_modules/.bin/tsc test/typings.ts index.d.ts --noEmit

#
# Components
# 

build: components
	@./node_modules/.bin/component-build --dev

components: component.json
	@./node_modules/.bin/component-install --dev

#
# Clean up
# 

clean: clean-components 

clean-components:
	@rm -rf build
	@rm -rf components

.PHONY: test test-node test-browser
.PHONY: clean clean-components