File tree Expand file tree Collapse file tree 6 files changed +130
-15
lines changed Expand file tree Collapse file tree 6 files changed +130
-15
lines changed Original file line number Diff line number Diff line change @@ -103,14 +103,13 @@ jobs:
103
103
if : steps.changes.outputs.changed == 'true'
104
104
run : pnpm run test:artifact
105
105
106
- - name : E2E Test (Playwright)
106
+ - name : Examples Test
107
107
if : steps.changes.outputs.changed == 'true'
108
- run : pnpm run test:e2e
108
+ run : pnpm run build:examples
109
109
110
- - name : Examples Test
110
+ - name : E2E Test (Playwright)
111
111
if : steps.changes.outputs.changed == 'true'
112
- run : |
113
- pnpm run build:examples
112
+ run : pnpm run test:e2e
114
113
115
114
- name : Run benchmarks
116
115
uses : CodSpeedHQ/action@v3
Original file line number Diff line number Diff line change @@ -112,10 +112,10 @@ jobs:
112
112
if : steps.changes.outputs.changed == 'true'
113
113
run : pnpm run test:artifact
114
114
115
- - name : E2E Test (Playwright)
116
- if : steps.changes.outputs.changed == 'true'
117
- run : pnpm run test:e2e
118
-
119
115
- name : Examples Test
120
116
if : steps.changes.outputs.changed == 'true'
121
117
run : pnpm run build:examples
118
+
119
+ - name : E2E Test (Playwright)
120
+ if : steps.changes.outputs.changed == 'true'
121
+ run : pnpm run test:e2e
Original file line number Diff line number Diff line change 1
1
import { bench , describe } from 'vitest' ;
2
2
import { getCwdByExample , rslibBuild } from './utils' ;
3
3
4
- describe ( 'express-plugin ' , ( ) => {
4
+ describe ( 'run rslib in examples ' , ( ) => {
5
5
bench (
6
- 'rslib build ' ,
6
+ 'examples/express-plugin ' ,
7
7
async ( ) => {
8
8
const cwd = getCwdByExample ( 'express-plugin' ) ;
9
9
await rslibBuild ( cwd ) ;
10
10
} ,
11
- { time : 10 } ,
11
+ { time : 5 } ,
12
+ ) ;
13
+ bench (
14
+ 'examples/react-component' ,
15
+ async ( ) => {
16
+ const cwd = getCwdByExample ( 'react-component' ) ;
17
+ await rslibBuild ( cwd ) ;
18
+ } ,
19
+ { time : 5 } ,
12
20
) ;
13
21
} ) ;
Original file line number Diff line number Diff line change 5
5
"scripts" : {
6
6
"benchmark" : " vitest bench"
7
7
},
8
- "dependencies" : {
9
- "react" : " ^18.3.1"
10
- },
11
8
"devDependencies" : {
12
9
"@codspeed/vitest-plugin" : " ^3.1.1" ,
13
10
"@e2e/helper" : " workspace:*" ,
11
+ "@rslib/tsconfig" : " workspace:*" ,
14
12
"typescript" : " ^5.6.2" ,
15
13
"vitest" : " ^2.0.5"
16
14
}
Original file line number Diff line number Diff line change
1
+ {
2
+ "extends" : " @rslib/tsconfig/base" ,
3
+ "compilerOptions" : {
4
+ "outDir" : " ./dist" ,
5
+ "baseUrl" : " ./" ,
6
+ "rootDir" : " src" ,
7
+ "declaration" : true ,
8
+ "isolatedDeclarations" : true ,
9
+ "composite" : true ,
10
+ "module" : " ESNext" ,
11
+ "moduleResolution" : " Bundler"
12
+ },
13
+ "include" : [" src" ],
14
+ "exclude" : [" **/node_modules" ]
15
+ }
You can’t perform that action at this time.
0 commit comments