Skip to content

Commit

Permalink
feat: run relay:watch with nodemon (#2097)
Browse files Browse the repository at this point in the history
  • Loading branch information
yomybaby authored Dec 19, 2023
1 parent 8738202 commit eee3ad2
Show file tree
Hide file tree
Showing 3 changed files with 104 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"server:p": "npm run patchLib && serve build/rollup",
"server:d": "npm run patchLib && cd react && npm start",
"server:d-ie11": "npm run patchLib && npx web-dev-server --node-resolve --open --watch --port 3081 --hostname 127.0.0.1 --esbuild-target auto --app-index demo/index.html --file-extensions .ts",
"build:d": "npm run patchLib && npx concurrently -c \"auto\" --names \"webcomponent,react-relay,webdev\" \"./node_modules/typescript/bin/tsc --watch\" \"cd react && npm run relay -- --watch\" \"npx web-dev-server --node-resolve --port 3081 --hostname 127.0.0.1 --esbuild-target auto --app-index index.html --file-extensions .ts\"",
"build:d": "npm run patchLib && npx concurrently -c \"auto\" --names \"webcomponent,react-relay,webdev\" \"./node_modules/typescript/bin/tsc --watch\" \"cd react && npm run relay:watch\" \"npx web-dev-server --node-resolve --port 3081 --hostname 127.0.0.1 --esbuild-target auto --app-index index.html --file-extensions .ts\"",
"electron:d": "npx electron . --dev",
"copywc": "mkdir -p build/rollup/src/lib && cp -r node_modules/@webcomponents/webcomponentsjs/bundles build/rollup/src/lib && cp -r node_modules/@webcomponents/webcomponentsjs/bundles src/lib && cp node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js build/rollup/src/lib && cp -r node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js src/lib",
"copywa": "mkdir -p build/rollup/src/lib/web-animations-js && mkdir -p src/lib/web-animations-js && cp node_modules/web-animations-js/web-animations-next-lite.min.js src/lib/web-animations-js && cp src/lib/web-animations-js/web-animations-next-lite.min.js build/rollup/src/lib/web-animations-js",
Expand Down
101 changes: 101 additions & 0 deletions react/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"test": "craco test",
"eject": "react-scripts eject",
"relay": "relay-compiler",
"relay:watch": "nodemon --watch schema.graphql --watch client-directives.graphql --exec 'npm run relay -- --watch'",
"lint": "npx eslint ./src --ignore-pattern '*.test.*' --max-warnings=0",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build"
Expand Down Expand Up @@ -82,6 +83,7 @@
"babel-plugin-named-exports-order": "^0.0.2",
"babel-plugin-relay": "^15.0.0",
"eslint-plugin-storybook": "^0.6.14",
"nodemon": "^3.0.2",
"prop-types": "^15.8.1",
"react-test-renderer": "^18.2.0",
"relay-compiler": "^15.0.0",
Expand Down

0 comments on commit eee3ad2

Please sign in to comment.