Skip to content

Commit 5e0e960

Browse files
committed
[nx] replace lerna to nx
1 parent 6cb9c06 commit 5e0e960

14 files changed

Lines changed: 171 additions & 19 deletions

File tree

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ jobs:
1212
- name: Setup Node
1313
uses: actions/setup-node@v4
1414
with:
15-
node-version: '18.x'
15+
node-version: '22.x'
1616

1717
- name: Dependencies
1818
run: |
1919
npm install
2020
npm run bootstrap
2121
2222
- name: Build
23-
run: npx lerna run build --stream
23+
run: npm run build
2424

2525
- name: Tests
26-
run: npx lerna run test --stream
26+
run: npm run test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/node_modules
22
/package-lock.json
3+
/.nx

Makefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@ rebuild-track:
2929
fi; \
3030
done
3131

32+
# Run build in all libs
33+
.PHONY: build
34+
build:
35+
npm run build
36+
3237
# Run tests in all libs
3338
.PHONY: test
3439
test:
35-
@for dir in $(LIBS); do \
36-
echo "Running tests in $$(basename $$dir)..."; \
37-
(cd $$dir && npm test) || echo "Tests failed in $$(basename $$dir)"; \
38-
done
40+
npm run test

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414

1515
### Amazon Linux 2
1616

17-
- [@libphp/amazon-linux-2-v72](libs/amazon-linux-2-v72) - PHP 7.2
18-
- [@libphp/amazon-linux-2-v73](libs/amazon-linux-2-v73) - PHP 7.3
1917
- [@libphp/amazon-linux-2-v74](libs/amazon-linux-2-v74) - PHP 7.4
2018
- [@libphp/amazon-linux-2-v80](libs/amazon-linux-2-v80) - PHP 8.0
2119
- [@libphp/amazon-linux-2-v81](libs/amazon-linux-2-v81) - PHP 8.1
@@ -30,6 +28,12 @@
3028

3129
- [@libphp/almalinux-9-v85](libs/almalinux-9-v85) - PHP 8.5
3230

31+
### Archived Versions
32+
33+
The following versions have been archived and are no longer actively maintained:
34+
- [@libphp/amazon-linux-2-v72](archive/amazon-linux-2-v72) - PHP 7.2 (archived)
35+
- [@libphp/amazon-linux-2-v73](archive/amazon-linux-2-v73) - PHP 7.3 (archived)
36+
3337
## ⚙️ Usage
3438

3539
This repository contains libraries for building PHP layers in clouds (AWS, ...). You can build your package/library based on these libraries.

lerna.json

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "amazon-linux-2-v74",
3+
"sourceRoot": "libs/amazon-linux-2-v74",
4+
"projectType": "library",
5+
"targets": {
6+
"build": {
7+
"executor": "nx:run-commands",
8+
"options": {
9+
"command": "npm run build",
10+
"cwd": "libs/amazon-linux-2-v74"
11+
}
12+
},
13+
"test": {
14+
"executor": "nx:run-commands",
15+
"options": {
16+
"command": "npm test",
17+
"cwd": "libs/amazon-linux-2-v74"
18+
}
19+
}
20+
}
21+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "amazon-linux-2-v80",
3+
"sourceRoot": "libs/amazon-linux-2-v80",
4+
"projectType": "library",
5+
"targets": {
6+
"build": {
7+
"executor": "nx:run-commands",
8+
"options": {
9+
"command": "npm run build",
10+
"cwd": "libs/amazon-linux-2-v80"
11+
}
12+
},
13+
"test": {
14+
"executor": "nx:run-commands",
15+
"options": {
16+
"command": "npm test",
17+
"cwd": "libs/amazon-linux-2-v80"
18+
}
19+
}
20+
}
21+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "amazon-linux-2-v81",
3+
"sourceRoot": "libs/amazon-linux-2-v81",
4+
"projectType": "library",
5+
"targets": {
6+
"build": {
7+
"executor": "nx:run-commands",
8+
"options": {
9+
"command": "npm run build",
10+
"cwd": "libs/amazon-linux-2-v81"
11+
}
12+
},
13+
"test": {
14+
"executor": "nx:run-commands",
15+
"options": {
16+
"command": "npm test",
17+
"cwd": "libs/amazon-linux-2-v81"
18+
}
19+
}
20+
}
21+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "amazon-linux-2-v82",
3+
"sourceRoot": "libs/amazon-linux-2-v82",
4+
"projectType": "library",
5+
"targets": {
6+
"build": {
7+
"executor": "nx:run-commands",
8+
"options": {
9+
"command": "npm run build",
10+
"cwd": "libs/amazon-linux-2-v82"
11+
}
12+
},
13+
"test": {
14+
"executor": "nx:run-commands",
15+
"options": {
16+
"command": "npm test",
17+
"cwd": "libs/amazon-linux-2-v82"
18+
}
19+
}
20+
}
21+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "amazon-linux-2-v83",
3+
"sourceRoot": "libs/amazon-linux-2-v83",
4+
"projectType": "library",
5+
"targets": {
6+
"build": {
7+
"executor": "nx:run-commands",
8+
"options": {
9+
"command": "npm run build",
10+
"cwd": "libs/amazon-linux-2-v83"
11+
}
12+
},
13+
"test": {
14+
"executor": "nx:run-commands",
15+
"options": {
16+
"command": "npm test",
17+
"cwd": "libs/amazon-linux-2-v83"
18+
}
19+
}
20+
}
21+
}

0 commit comments

Comments
 (0)