-
Notifications
You must be signed in to change notification settings - Fork 28
/
scaffold-api.sh
31 lines (24 loc) · 1.73 KB
/
scaffold-api.sh
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
#!/usr/bin/env bash
set -ex
# CORE
yarn nx generate @nrwl/js:library feature --unitTestRunner=jest --directory=api/core --no-interactive
# AUTH
yarn nx generate @nrwl/js:library feature --unitTestRunner=jest --directory=api/auth --no-interactive
yarn nx generate @nrwl/js:library data-access --unitTestRunner=jest --directory=api/auth --no-interactive
yarn nx generate @nrwl/js:library util --unitTestRunner=jest --directory=api/auth --no-interactive
# USERS
yarn nx generate @nrwl/js:library feature --unitTestRunner=jest --directory=api/users --no-interactive
yarn nx generate @nrwl/js:library data-access --unitTestRunner=jest --directory=api/users --no-interactive
yarn nx generate @nrwl/js:library util --unitTestRunner=jest --directory=api/users --no-interactive
# PROFILES
yarn nx generate @nrwl/js:library feature --unitTestRunner=jest --directory=api/profiles --no-interactive
yarn nx generate @nrwl/js:library data-access --unitTestRunner=jest --directory=api/profiles --no-interactive
yarn nx generate @nrwl/js:library util --unitTestRunner=jest --directory=api/profiles --no-interactive
# HISTORY
yarn nx generate @nrwl/js:library feature --unitTestRunner=jest --directory=api/history --no-interactive
yarn nx generate @nrwl/js:library data-access --unitTestRunner=jest --directory=api/history --no-interactive
yarn nx generate @nrwl/js:library util --unitTestRunner=jest --directory=api/history --no-interactive
# EVENTSTORE
yarn nx generate @nrwl/js:library feature --unitTestRunner=jest --directory=api/eventstore --no-interactive
yarn nx generate @nrwl/js:library data-access --unitTestRunner=jest --directory=api/eventstore --no-interactive
yarn nx generate @nrwl/js:library util --unitTestRunner=jest --directory=api/eventstore --no-interactive