-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
69 lines (50 loc) · 1.46 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
PWSH = pwsh
BUMP = minor
.PHONY: build
build: setup
npx spago build
.PHONY: setup
setup: node_modules .spago
node_modules: package.json package-lock.json
npm install
.spago: node_modules packages.dhall spago.dhall
npx spago build --deps-only
.PHONY: repl
repl: .spago
npx spago repl
.PHONY: test
test: test-purs test-ts
.PHONY: test-purs
test-purs: .spago
npx spago test
.PHONY: test-ts
test-ts: node_modules jest.config.js output/bundle.js
npx jest
.PHONY: bundle
bundle: output/bundle.js
output/bundle.js: build
npx spago bundle-module --no-build --main ElmLicenseChecker.Bundle --to output/bundle.js
.PHONY: pack
pack: elm-license-checker-2.4.0.tgz
elm-license-checker-2.4.0.tgz: bin/elm-license-checker src/js/index.js src/js/index.d.ts output/bundle.js
npm pack
.PHONY: format
format:
$(PWSH) -Command "& { Get-ChildItem -Filter '*.purs' -Recurse src, test | ForEach-Object { npx purty --write $$_.FullName } }"
.PHONY: bump-version
bump-version:
npx spago bump-version --no-dry-run $(BUMP)
.PHONY: publish-npm
publish-npm: output/bundle.js
npm publish
.PHONY: publish-pulp
publish-pulp: bower_components
npx pulp publish
bower_components: bower.json
npx bower install
.PHONY: clean
clean:
- $(PWSH) -Command "& { Remove-Item -Recurse -Force output -ErrorAction Ignore }"
.PHONY: clean-full
clean-full: clean
- $(PWSH) -Command "& { Remove-Item -Recurse -Force .psci_modules, .pulp-cache, .spago, bower_components, node_modules -ErrorAction Ignore }"