Skip to content

Commit ba1c933

Browse files
authored
chore: use utoo (#127)
1 parent 3ae61c2 commit ba1c933

File tree

6 files changed

+15
-10
lines changed

6 files changed

+15
-10
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ jobs:
2929
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6
3030
with:
3131
node-version: ${{ matrix.node }}
32+
33+
- uses: utooland/setup-utoo@v1
3234

3335
- name: Install dependencies
34-
run: npm i -g npminstall && npminstall
36+
run: ut
3537

3638
- name: Test
37-
run: npm run ci
39+
run: ut ci

bin/test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ test() {
77
cd "$1"
88
pwd
99
rm -rf node_modules package-lock.json
10-
npmupdate -c
11-
npm run ci
10+
ut
11+
ut ci
1212
cd ..
1313
}
1414

body-parser-example/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
},
88
"devDependencies": {
99
"@eggjs/bin": "beta",
10-
"@eggjs/mock": "beta"
10+
"@eggjs/mock": "beta",
11+
"koa-compose": "4.1.0"
1112
},
1213
"scripts": {
1314
"dev": "egg-bin dev",

hello-tegg/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
"@eggjs/mock": "beta",
3838
"eslint": "8",
3939
"eslint-config-egg": "14",
40-
"typescript": "5"
40+
"typescript": "5",
41+
"koa-compose": "4.1.0"
4142
},
4243
"repository": "git@github.com:eggjs/examples.git",
4344
"engines": {

helloworld/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"@types/node": "22",
1515
"eslint": "8",
1616
"eslint-config-egg": "14",
17-
"typescript": "5"
17+
"typescript": "5",
18+
"koa-compose": "4.1.0"
1819
},
1920
"scripts": {
2021
"start": "eggctl start --daemon",

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
"globby": "^6.1.0",
1313
"runscript": "^1.5.3",
1414
"semver": "^5.3.0",
15-
"npminstall": "^7.12.0"
15+
"koa-compose": "4.1.0"
1616
},
1717
"scripts": {
1818
"lint": "echo 'ignore'",
1919
"test": "./bin/test.sh",
2020
"test-cn": "./example.js test -c",
21-
"ci": "npm test",
21+
"ci": "npm run test",
2222
"list": "./example.js list"
2323
},
2424
"homepage": "https://github.com/eggjs/examples",
@@ -34,4 +34,4 @@
3434
},
3535
"license": "MIT",
3636
"private": true
37-
}
37+
}

0 commit comments

Comments
 (0)