-
-
Notifications
You must be signed in to change notification settings - Fork 371
/
Makefile
52 lines (42 loc) · 2.32 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
50
51
52
SHELL=/bin/bash -euo pipefail
export GO111MODULE := on
export PATH := .bin:${PATH}
.PHONY: format
format: node_modules
npm exec -- prettier --write .
.PHONY: format-licenses
format-licenses: .bin/ory
.bin/ory dev headers copyright --type=open-source --exclude=src/plugins
.PHONY: install
install: code-examples/protect-page-login/nextjs-12/package-lock.json 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-12 && npm i
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-12 && npm run build
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
cd code-examples/protect-page-login/dotnet && docker build --build-arg APP_DIR=01-basic -t dotnet-01-basic .
licenses: .bin/licenses node_modules # checks open-source licenses
.bin/licenses
.PHONY: test
test: install build-examples .bin/ory
./src/scripts/test.sh
.bin/licenses: Makefile
curl https://raw.githubusercontent.com/ory/ci/master/licenses/install | sh
.bin/ory: Makefile
curl https://raw.githubusercontent.com/ory/meta/master/install.sh | bash -s -- -b .bin ory v0.2.1
touch .bin/ory
node_modules: package.json package-lock.json
npm ci
touch node_modules