-
Notifications
You must be signed in to change notification settings - Fork 76
/
Makefile
30 lines (21 loc) · 914 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
BIN = ./node_modules/.bin
.PHONY: bootstrap bootstrap-js bootstrap-ruby start docs release-docs build;
bootstrap: bootstrap-js bootstrap-ruby
bootstrap-js: package.json
@npm install
bootstrap-ruby: docs/Gemfile
@which bundle > /dev/null || gem install bundler
@cd docs && bundle install
release:
@inc=$(inc) sh ./build/release.sh
build:
@rm -rf dist && mkdir -p dist
@$(BIN)/browserify --bare --transform babelify --plugin bundle-collapser/plugin --require ./marty.js --exclude react --standalone Marty > dist/marty.js
@cat dist/marty.js | $(BIN)/uglifyjs -m -c "comparisons=false,keep_fargs=true,unsafe=true,unsafe_comps=true,warnings=false" -b "ascii_only=true,beautify=false" -o dist/marty.min.js
@gzip --best dist/marty.min.js -c > dist/marty.min.js.gz
docs:
@cd docs && bundle exec jekyll serve -w
release-docs:
@sh ./build/release-docs.sh
prerelease-docs:
@sh ./build/prerelease-docs.sh