https://github.com/push-based/pb-workshops
https://github.com/push-based/pb-workshops
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/push-based/pb-workshops
- Owner: push-based
- Created: 2021-10-21T22:56:35.000Z (over 4 years ago)
- Default Branch: workshop-setup
- Last Pushed: 2021-10-29T13:11:30.000Z (over 4 years ago)
- Last Synced: 2025-07-23T16:08:09.005Z (8 months ago)
- Language: TypeScript
- Size: 1.73 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NX Intro
## Prepare
```shell
yarn install
```
## Create Libs
### Models
create models lib:
```shell
yarn nx g @nrwl/workspace:lib models --directory=shared
```
find & replace:
from: `from.*model.*` to: `from '@movies/shared/model';`
fix `libs/shared/models/index.ts`:
### Util
create util lib:
```shell
yarn nx g @nrwl/angular:lib util --directory=shared
```
from: `from.*utils.*` to: `from '@movies/shared/util'`
fix `libs/shared/util/index.ts`:
### data-access
create data-access lib:
```shell
yarn nx g @nrwl/angular:lib data-access --directory=shared
```
find & replace:
from: `from.*data-access.*` to: `from '@movies/shared/data-access';`
fix `libs/shared/data-access/index.ts`: