From 0ee322c8a29ce7038b8ffe4d7e8bfc12c08710e1 Mon Sep 17 00:00:00 2001 From: Robert Soriano Date: Sun, 30 Oct 2022 17:35:23 -0700 Subject: [PATCH] run dev playground with concurrently --- package.json | 2 ++ playground/nuxt.config.ts | 7 +------ playground/tsconfig.json | 5 ++++- pnpm-lock.yaml | 38 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 45 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 75842a8..1308906 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ "module.mjs" ], "scripts": { + "dev": "concurrently \"pnpm build --watch\" \"pnpm --filter playground dev\"", "prepublishOnly": "nr build", "build": "tsup", "lint": "eslint .", @@ -50,6 +51,7 @@ "@trpc/client": "10.0.0-rc.2", "@trpc/server": "10.0.0-rc.2", "bumpp": "^8.2.1", + "concurrently": "^7.5.0", "eslint": "^8.25.0", "nuxt": "3.0.0-rc.12", "pnpm": "^7.14.1", diff --git a/playground/nuxt.config.ts b/playground/nuxt.config.ts index 970f193..b07b063 100644 --- a/playground/nuxt.config.ts +++ b/playground/nuxt.config.ts @@ -1,9 +1,4 @@ // https://v3.nuxtjs.org/api/configuration/nuxt.config export default defineNuxtConfig({ - runtimeConfig: { - baseURL: '', - }, - typescript: { - strict: true, - }, + modules: ['trpc-nuxt/module'], }) diff --git a/playground/tsconfig.json b/playground/tsconfig.json index a7bfa18..792efad 100644 --- a/playground/tsconfig.json +++ b/playground/tsconfig.json @@ -1,4 +1,7 @@ { // https://v3.nuxtjs.org/concepts/typescript - "extends": "./.nuxt/tsconfig.json" + "extends": "./.nuxt/tsconfig.json", + "compilerOptions": { + "strict": true + } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 006f26a..14bf2fb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,6 +9,7 @@ importers: '@trpc/client': 10.0.0-rc.2 '@trpc/server': 10.0.0-rc.2 bumpp: ^8.2.1 + concurrently: ^7.5.0 eslint: ^8.25.0 h3: ^0.8.5 nuxt: 3.0.0-rc.12 @@ -27,6 +28,7 @@ importers: '@trpc/client': 10.0.0-rc.2_@trpc+server@10.0.0-rc.2 '@trpc/server': 10.0.0-rc.2 bumpp: 8.2.1 + concurrently: 7.5.0 eslint: 8.26.0 nuxt: 3.0.0-rc.12_wyqvi574yv7oiwfeinomdzmc3m pnpm: 7.14.1 @@ -3073,6 +3075,22 @@ packages: resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} dev: true + /concurrently/7.5.0: + resolution: {integrity: sha512-5E3mwiS+i2JYBzr5BpXkFxOnleZTMsG+WnE/dCG4/P+oiVXrbmrBwJ2ozn4SxwB2EZDrKR568X+puVohxz3/Mg==} + engines: {node: ^12.20.0 || ^14.13.0 || >=16.0.0} + hasBin: true + dependencies: + chalk: 4.1.2 + date-fns: 2.29.3 + lodash: 4.17.21 + rxjs: 7.5.7 + shell-quote: 1.7.4 + spawn-command: 0.0.2-1 + supports-color: 8.1.1 + tree-kill: 1.2.2 + yargs: 17.6.0 + dev: true + /consola/2.15.3: resolution: {integrity: sha512-9vAdYbHj6x2fLKC4+oPH0kFzY/orMZyG2Aj+kNylHxKGJ/Ed4dpNyAQYwJOdqO4zdM7XpVHmyejQDcQHrnuXbw==} dev: true @@ -3304,6 +3322,11 @@ packages: engines: {node: '>= 12'} dev: true + /date-fns/2.29.3: + resolution: {integrity: sha512-dDCnyH2WnnKusqvZZ6+jA1O51Ibt8ZMRNkDZdyAyK4YfbDwa/cEmuztzG5pk6hqlp9aSBPYcjOlktquahGwGeA==} + engines: {node: '>=0.11'} + dev: true + /de-indent/1.0.2: resolution: {integrity: sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==} dev: true @@ -8539,6 +8562,10 @@ packages: engines: {node: '>=8'} dev: true + /shell-quote/1.7.4: + resolution: {integrity: sha512-8o/QEhSSRb1a5i7TFR0iM4G16Z0vYB2OQVs4G3aAFXjn3T6yEx8AZxy1PgDF7I00LZHYA3WxaSYIf5e5sAX8Rw==} + dev: true + /shiki-es/0.1.2: resolution: {integrity: sha512-eqtfk8idlYlSLAn0gp0Ly2+FbKc2d78IddigHSS4iHAnpXoY2kdRzyFGZOdi6TvemYMnRhZBi1HsSqZc5eNKqg==} dev: true @@ -8642,6 +8669,10 @@ packages: resolution: {integrity: sha512-ekwEbFp5aqSPKaqeY1PGrlGQxPNaq+Cnx4+bE2D8sciBQrHpbwoBbawqTN2+6jPs9IdWxxiUcN0K2pkczD3zmw==} dev: true + /spawn-command/0.0.2-1: + resolution: {integrity: sha512-n98l9E2RMSJ9ON1AKisHzz7V42VDiBQGY6PB1BwRglz99wpVsSuGzQ+jOi6lFXBGVTCrRpltvjm+/XA+tpeJrg==} + dev: true + /spdx-correct/3.1.1: resolution: {integrity: sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==} dependencies: @@ -8879,6 +8910,13 @@ packages: has-flag: 4.0.0 dev: true + /supports-color/8.1.1: + resolution: {integrity: sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==} + engines: {node: '>=10'} + dependencies: + has-flag: 4.0.0 + dev: true + /supports-preserve-symlinks-flag/1.0.0: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'}