forked from babel/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (26 loc) · 762 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
33
34
.PHONY: build serve
bootstrap:
bundle install
npm install
if [ ! -d ./node_modules ]; \
then npm install; \
fi
if [ ! -d ./_sass/bootstrap ]; \
then cp -r ./node_modules/bootstrap-sass/assets/stylesheets/bootstrap ./_sass/bootstrap; \
fi
./scripts/download-readmes.js
build:
NODE_ENV=production ./node_modules/.bin/webpack -p
JEKYLL_ENV=production bundle exec jekyll build
serve-jekyll:
@if ! which bundle >/dev/null; then \
echo "bundler is not installed, please install it with 'gem install bundler'."; \
exit 1; \
fi
bundle check || bundle install; \
bundle exec jekyll serve --incremental
serve-webpack:
./node_modules/.bin/webpack-dev-server
serve:
# Run both Jekyll and Webpack concurrently.
make -j2 serve-jekyll serve-webpack