-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
32 lines (23 loc) · 936 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
clean:
@rm -rf ./node_modules/.bin
@rm -rf ./node_modules/*
build: clean node
develop:
@nix-shell dispatcher.nix --argstr action env --command "nw ."
test:
@nix-shell dispatcher.nix --argstr action env --command "cd ./src && ../node_modules/.bin/mocha --reporter list"
bower: bower.json
@rm -rf ./bower_components/*
nix-shell dispatcher.nix --argstr action env --command "./node_modules/bower/bin/bower install"
node: package.json
nix-shell dispatcher.nix --argstr action env --command "npm install"
nix-shell dispatcher.nix --argstr action env --command "npm install bower"
generate-node: package.json
rm node.nix
rm default.nix
nix-shell dispatcher.nix --argstr action env --command "npm2nix package.json node.nix"
just-run-it:
`nix-build dispatcher.nix --argstr action package --no-out-link`/bin/nixui
package:
nix-env -f ./dispatcher.nix -i --argstr action package
.PHONY: test develop build clean just-run-it