File tree 4 files changed +24
-15
lines changed
4 files changed +24
-15
lines changed Original file line number Diff line number Diff line change 2
2
"name" : " example-ipfs-client-add-files" ,
3
3
"version" : " 1.0.0" ,
4
4
"private" : true ,
5
+ "type" : " module" ,
5
6
"description" : " " ,
6
7
"scripts" : {
7
- "clean" : " rimraf ./dist ./.cache ./.parcel-cache " ,
8
- "build" : " parcel build index.html --no-scope-hoist " ,
9
- "serve" : " parcel serve index.html --open -p 8888" ,
8
+ "clean" : " rimraf ./dist ./.cache ./node_modules/.vite " ,
9
+ "build" : " vite build" ,
10
+ "serve" : " vite dev --port 8888" ,
10
11
"start" : " npm run serve" ,
11
12
"test" : " npm run build && playwright test tests"
12
13
},
13
14
"browserslist" : " last 1 Chrome version" ,
14
15
"dependencies" : {
15
- "ipfs-client" : " ^0.7.6 "
16
+ "ipfs-client" : " ^0.8.2 "
16
17
},
17
18
"devDependencies" : {
18
19
"@babel/core" : " ^7.14.8" ,
19
20
"@playwright/test" : " ^1.12.3" ,
20
- "ipfs" : " ^0.62.0" ,
21
- "parcel" : " ^2.3.2" ,
21
+ "ipfs" : " ^0.63.3" ,
22
22
"playwright" : " ^1.12.3" ,
23
23
"process" : " ^0.11.10" ,
24
24
"rimraf" : " ^3.0.2" ,
25
25
"test-util-ipfs-example" : " ^1.0.2" ,
26
- "util" : " ^0.12.4"
26
+ "util" : " ^0.12.4" ,
27
+ "vite" : " ^3.0.0-beta.1"
27
28
}
28
29
}
Original file line number Diff line number Diff line change 1
1
/* eslint-disable no-console */
2
- 'use strict'
3
-
4
2
import { create as ipfsClient } from 'ipfs-client'
5
3
6
4
const App = ( ) => {
Original file line number Diff line number Diff line change 1
- 'use strict'
2
-
3
- const { test , expect } = require ( '@playwright/test' ) ;
4
- const { playwright } = require ( 'test-util- ipfs-example' ) ;
1
+ import { test , expect } from '@playwright/test' ;
2
+ import { playwright } from 'test-util-ipfs-example' ;
3
+ import * as ipfsModule from 'ipfs'
4
+ import * as ipfsClientModule from ' ipfs-client'
5
5
6
6
// Setup
7
7
const play = test . extend ( {
8
8
...playwright . servers ( ) ,
9
9
...playwright . daemons (
10
10
{
11
- ipfsClientModule : require ( 'ipfs-client' ) ,
12
- ipfsBin : require ( 'ipfs' ) . path ( )
11
+ ipfsClientModule,
12
+ ipfsBin : ipfsModule . path ( )
13
13
} ,
14
14
{ } ,
15
15
[
Original file line number Diff line number Diff line change
1
+ export default {
2
+ build : {
3
+ target : 'esnext' ,
4
+ minify : false
5
+ } ,
6
+ define : {
7
+ 'process.env.NODE_DEBUG' : 'false' ,
8
+ 'global' : 'globalThis'
9
+ }
10
+ }
You can’t perform that action at this time.
0 commit comments