forked from guardian/frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
49 lines (36 loc) · 1.02 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
default: help
watch: compile-dev
@./node_modules/grunt-sass/node_modules/node-sass/bin/node-sass -w ./static/src/stylesheets -o ./static/target/stylesheets --source-map=true & \
./node_modules/.bin/gulp --cwd ./dev watch:css & \
./node_modules/browser-sync/bin/browser-sync.js start --config ./dev/bs-config.js
compile:
@grunt compile-assets
compile-dev:
@grunt compile-assets --dev
install:
@echo 'Removing any unused 3rd party dependencies…'
@npm prune
@echo '…done.'
@echo 'Installing 3rd party dependencies…'
@npm install
@echo '…done.'
@node tools/messages.js install
reinstall: uninstall install
uninstall:
@rm -rf node_modules
@echo 'All 3rd party dependencies have been uninstalled.'
test:
@grunt test --dev
validate:
@grunt validate
validate-sass:
@grunt validate:sass
@grunt validate:css
validate-js:
@grunt validate:js
shrinkwrap:
@npm shrinkwrap --dev && node dev/clean-shrinkwrap.js
@node tools/messages.js did-shrinkwrap
# internal targets
help:
@node tools/messages.js describeMakefile