Skip to content

Commit 3656ee0

Browse files
committed
realworld: now depends on submodule for assets and tests, so we keep up-to-date, updated links
1 parent e99a131 commit 3656ee0

8 files changed

Lines changed: 19 additions & 1541 deletions

File tree

CLAUDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Commands
44

55
```bash
6+
bun run setup # Init submodules + install deps (run after clone or after realworld submodule update)
67
bun run start # Dev server at localhost:4200
78
bun run test # Unit tests (Vitest)
89
bun run test:e2e # E2E tests (Playwright)

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,20 @@ A global documentation for the project is available at [docs.realworld.show](htt
1212

1313
# Getting started
1414

15-
Make sure you have the [Angular CLI](https://github.com/angular/angular-cli#installation) installed globally. You can `bun install` to resolve all dependencies (should take a couple of seconds).
15+
Requires [Bun](https://bun.sh/docs/installation).
1616

17-
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
17+
```bash
18+
git clone https://github.com/realworld-apps/angular-realworld-example-app.git
19+
cd angular-realworld-example-app
20+
bun run setup # Init submodules + install dependencies
21+
bun run start
22+
```
23+
24+
Run `bun run setup` again after a `git pull` that updates the `realworld` submodule.
1825

1926
### Building the project
2027

21-
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build.
28+
Run `bun run build` to build the project. The build artifacts will be stored in the `dist/` directory.
2229

2330
## Functionality overview
2431

angular.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,18 @@
2121
"tsConfig": "tsconfig.app.json",
2222
"assets": [
2323
"src/favicon.ico",
24-
"src/assets",
24+
{
25+
"glob": "*.svg",
26+
"input": "realworld/assets/media",
27+
"output": "/assets"
28+
},
2529
{
2630
"glob": "_redirects",
2731
"input": "src",
2832
"output": "/"
2933
}
3034
],
31-
"styles": ["src/styles.css"],
35+
"styles": ["realworld/assets/theme/styles.css"],
3236
"scripts": [],
3337
"browser": "src/main.ts"
3438
},

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"license": "MIT",
55
"scripts": {
66
"ng": "ng",
7+
"setup": "git submodule init && git submodule update && bun install",
78
"start": "ng serve",
89
"build": "ng build",
910
"test": "vitest",

src/app/shared/pipes/default-image.pipe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import { Pipe, PipeTransform } from '@angular/core';
33
@Pipe({ name: 'defaultImage', standalone: true })
44
export class DefaultImagePipe implements PipeTransform {
55
transform(image: string | null | undefined): string {
6-
return image || '/assets/images/default-avatar.svg';
6+
return image || '/assets/default-avatar.svg';
77
}
88
}

src/assets/conduit-logo.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/assets/images/default-avatar.svg

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)