forked from Kong/docs.konghq.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (32 loc) · 860 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
35
36
37
38
39
40
install-prerequisites:
npm install -g yarn
npm install -g gulp
install:
-mkdir node_modules
chmod 777 node_modules
npm install
bundle install
yarn --ignore-engines
yarn upgrade
touch install
run: install
-chmod -R 777 dist
gulp
develop:
docker-compose up
clean:
-docker-compose stop
-docker-compose rm -f
-rm -rf dist
-rm yarn.lock
-rm -rf node_modules
-rm install
test: install
npm test
background-docker-up:
docker-compose up -d
-while [ `curl -s -o /dev/null -w ''%{http_code}'' localhost:3000` != 200 ]; do echo "waiting"; docker-compose logs --tail=10 jekyll; sleep 45; done
docker-test: background-docker-up
docker-compose exec -T jekyll npm test
check-links: background-docker-up
docker-compose exec -T jekyll yarn blc http://localhost:3000 -efr --exclude careers --exclude hub --exclude request-demo --exclude kong-cloud