-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (26 loc) · 1.61 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
SHELL=/bin/bash -euo pipefail
export GO111MODULE := on
export PATH := .bin:${PATH}
.PHONY: install
install: code-examples/protect-page-login/nextjs/package-lock.json code-examples/protect-page-login/expressjs/package-lock.json package-lock.json code-examples/protect-page-login/go/go.sum code-examples/auth-api/expressjs/package-lock.json code-examples/protect-page-login/vue/package-lock.json code-examples/protect-page-login/flutter_web_redirect/pubspec.lock code-examples/protect-page-login/react/package-lock.json
cd code-examples/protect-page-login/nextjs && npm i
cd code-examples/protect-page-login/expressjs && npm i
npm i
cd code-examples/protect-page-login/flutter_web_redirect && flutter pub get
cd code-examples/protect-page-login/go && go mod download && go build -o server
cd code-examples/protect-page-login/php && composer install
cd code-examples/auth-api/expressjs && npm i
cd code-examples/protect-page-login/vue && npm i
cd code-examples/protect-page-login/react && npm i
.PHONY: build-examples
build-examples:
cd code-examples/protect-page-login/nextjs && npm run build
cd code-examples/protect-page-login/flutter_web_redirect && flutter build web --web-renderer html
cd code-examples/protect-page-login/vue && VUE_APP_API_URL=http://localhost:4007 VUE_APP_ORY_URL=http://localhost:3006 npm run build
cd code-examples/protect-page-login/react && npm run build
.PHONY: test
test: install build-examples .bin/ory
./src/scripts/test.sh
.bin/ory: Makefile
bash <(curl https://raw.githubusercontent.com/ory/meta/master/install.sh) -d -b .bin ory v0.1.33
touch -a -m .bin/ory