Skip to content

Commit

Permalink
Merge pull request #31 from iway1/chore/test-app-script-and-copy-readme
Browse files Browse the repository at this point in the history
Adds readme copy script to npm publish, updates test-app to use nodemon
  • Loading branch information
iway1 authored Jan 10, 2023
2 parents 61d34df + e0fdfa8 commit 5296ce2
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 33 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
- name: Build App
run: |
yarn build:panel
- name: Copy Readme
run: |
yarn cpy:readme
- name: Publish with yarn
run: |
cd packages/trpc-panel
Expand Down
58 changes: 29 additions & 29 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
{
"name": "trpc-panel",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"test:panel": "yarn && npx nx test --project trpc-panel",
"build:panel": "yarn && npx nx build --project trpc-panel",
"build:test-app": "yarn && npx nx build --project test-trpc-panel",
"build:docs": "yarn && npx nx build --project docs",
"start:test-app": "node ./packages/test-app/lib/server.js",
"start:docs": "cd packages/docs && yarn serve"
},
"private": true,
"devDependencies": {
"@nrwl/nx-cloud": "latest",
"@tsconfig/docusaurus": "^1.0.6",
"nx": "15.2.4",
"prettier": "^2.6.2",
"typescript": "^4.9.3"
},
"workspaces": {
"packages": [
"packages/*"
],
"nohoist": [
"**/zod-to-json-schema",
"**/zod-to-json-schema/**"
]
}
"name": "trpc-panel",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"test:panel": "yarn && npx nx test --project trpc-panel",
"build:panel": "yarn && npx nx build --project trpc-panel",
"build:test-app": "yarn && npx nx build --project test-trpc-panel",
"build:docs": "yarn && npx nx build --project docs",
"cpy:readme": "cp README.MD packages/trpc-panel/README.md",
"start:test-app": "node ./packages/test-app/lib/server.js",
"start:docs": "cd packages/docs && yarn serve"
},
"private": true,
"devDependencies": {
"@nrwl/nx-cloud": "latest",
"@tsconfig/docusaurus": "^1.0.6",
"nx": "15.2.4",
"prettier": "^2.6.2",
"typescript": "^4.9.3"
},
"workspaces": {
"packages": [
"packages/*"
],
"nohoist": [
"**/zod-to-json-schema",
"**/zod-to-json-schema/**"
]
}
}
5 changes: 3 additions & 2 deletions packages/test-app/nodemon.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"ignoreRoot": [".git"]
}
"ignoreRoot": [".git"],
"ext": "ts,tsx,js,json"
}
4 changes: 2 additions & 2 deletions packages/test-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
"open": "^8.4.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"trpc-panel": "^1.0.0",
"trpc-panel": "*",
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.1.0",
"ws": "^8.11.0",
"zod": "3.20.2",
"zod-to-json-schema": "^3.20.1"
},
"scripts": {
"dev": "SERVER_URL=\"http://localhost\" TRPC_PATH=\"trpc\" DEV_PORT=\"4000\" SIMULATE_DELAY=\"true\" ts-node --project tsconfig.json ./src/server.ts",
"dev": "nodemon --exec SERVER_URL=\"http://localhost\" TRPC_PATH=\"trpc\" DEV_PORT=\"4000\" SIMULATE_DELAY=\"true\" ts-node --project tsconfig.json ./src/server.ts",
"build": "npx tsc --project tsconfig.json",
"start": "node ./lib/server"
},
Expand Down

0 comments on commit 5296ce2

Please sign in to comment.