Skip to content

Commit 6c15f0f

Browse files
authored
Create README.md
1 parent ae8d129 commit 6c15f0f

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

300/400/README.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# 400 - Building the New React Monorepo
2+
3+
## 100 - Test the Built Application
4+
5+
First, let's serve the application:
6+
7+
```
8+
npx nx serve hatch_project
9+
```
10+
11+
This will:
12+
- Start a development server
13+
- Usually on http://localhost:4200
14+
- Auto-reload on changes
15+
16+
## 200 - Set up Continuous Integration
17+
18+
To set up CI with GitHub Actions:
19+
20+
a. Create the workflow file:
21+
22+
```
23+
mkdir -p .github/workflows
24+
```
25+
26+
b. Create the CI configuration:
27+
28+
```
29+
name: CI
30+
on:
31+
push:
32+
branches:
33+
- main
34+
pull_request:
35+
36+
jobs:
37+
main:
38+
runs-on: ubuntu-latest
39+
steps:
40+
- uses: actions/checkout@v4
41+
- uses: actions/setup-node@v3
42+
with:
43+
node-version: 20
44+
cache: 'npm'
45+
- run: npm cache clean --force
46+
- run: npm ci
47+
- run: npm install -g @nrwl/cli
48+
- run: |
49+
npm install --save-dev @swc-node/register @swc/core \
50+
@nx/webpack webpack-cli \
51+
@nx/eslint-plugin eslint-plugin-playwright \
52+
@playwright/test jest \
53+
@nx/jest @nx/react @nx/eslint @nx/playwright
54+
- run: npx nx run-many -t build --verbose
55+
- run: npx nx run-many -t test
56+
```
57+
.github/workflows/ci.yml
58+
59+
60+
MORE...

0 commit comments

Comments
 (0)