File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -33,16 +33,20 @@ Download the chrome extension from ***insert url here*** in order to time travel
33
33
34
34
## Set-Up Examples
35
35
** From the package-react directory:**
36
+ Execute ` package-setup-1 ` to run:
37
+ 1 . ` npm i `
38
+ 1 . Installs all dependencies for the package
36
39
1 . ` npm run install-example `
37
- 1 . Installs all dependencies for the package and both example apps
40
+ 1 . Installs all dependencies for the example app
38
41
2 . ` npm run link-dependencies `
39
42
1 . Installs all peer dependencies in our package to ensure there are no duplicates
40
43
2 . Can see all packages currently linked with * ` npm ls -g --depth=0 --link=tr ` *
41
44
3 . ` npm run watch `
42
45
1 . Starts rollup in watch mode and creates dist folder
43
- 4 . ` npm run link-package `
46
+ In a new shell (still in the package-react directory), execute ` package-setup-2 ` to run:
47
+ 1 . ` npm run link-package `
44
48
1 . Links React Query Rewind
45
- 5 . ` npm run example `
49
+ 2 . ` npm run example `
46
50
1 . Starts the example server with webpack. Note: this is a hot reload, but it does not always pick up changes to the npm package
47
51
48
52
# Publishing
Original file line number Diff line number Diff line change 48
48
"link-package" : " npm link && (cd example/client && npm link react-query-rewind)" ,
49
49
"link-dependencies" : " npm link example/client/node_modules/react example/client/node_modules/react-dom example/client/node_modules/@tanstack/react-query" ,
50
50
"unlink-package" : " (cd example/client && npm unlink react-query-rewind) && npm unlink" ,
51
- "package" : " npm i && npm run install-example && npm run link-dependencies && npm run watch && npm run link-package && npm run example"
51
+ "package-setup-1" : " npm i && npm run install-example && npm run link-dependencies && npm run watch" ,
52
+ "package-setup-2" : " npm run link-package && npm run example"
53
+
52
54
},
53
55
"license" : " MIT" ,
54
56
"peerDependencies" : {
You can’t perform that action at this time.
0 commit comments