Skip to content

Commit

Permalink
chore: fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Mar 21, 2024
1 parent 50970d0 commit e0f8297
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 26 deletions.
13 changes: 1 addition & 12 deletions client/bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,11 @@ import { DEVTOOLS_UI_LOCAL_PORT } from '../src/devtools'

const resolver = createResolver(import.meta.url)

console.log({ port: DEVTOOLS_UI_LOCAL_PORT })

process.env.PORT = DEVTOOLS_UI_LOCAL_PORT

export default defineNuxtModule((_, nuxt) => {
if (!nuxt.options.dev || !nuxt.options.modules?.includes('@nuxt/scripts'))
return

const subprocess = startSubprocess(
startSubprocess(
{
command: 'npx',
args: ['nuxi', 'dev', '--port', DEVTOOLS_UI_LOCAL_PORT],
Expand All @@ -23,11 +19,4 @@ export default defineNuxtModule((_, nuxt) => {
name: 'Nuxt DevTools Scripts Client',
},
)
subprocess.getProcess().stdout?.on('data', (data) => {
// eslint-disable-next-line no-console
console.log(` - devtools: ${data.toString()}`)
})
subprocess.getProcess().stderr?.on('data', (data) => {
console.error(` - devtools: ${data.toString()}`)
})
})
14 changes: 1 addition & 13 deletions client/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { createResolver } from '@nuxt/kit'
import { DEVTOOLS_UI_LOCAL_PORT, DEVTOOLS_UI_ROUTE } from '../src/devtools'
import { DEVTOOLS_UI_ROUTE } from '../src/devtools'

const resolver = createResolver(import.meta.url)

process.env.PORT = 3300

export default defineNuxtConfig({
ssr: false,
devtools: { enabled: false },
Expand All @@ -19,14 +17,4 @@ export default defineNuxtConfig({
app: {
baseURL: DEVTOOLS_UI_ROUTE,
},
devServer: {
port: DEVTOOLS_UI_LOCAL_PORT,
},
vite: {
server: {
hmr: {
port: DEVTOOLS_UI_LOCAL_PORT,
},
},
},
})
2 changes: 1 addition & 1 deletion playground/app.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import { createScriptConsentTrigger, ref, useAnalyticsPageEvent, useScript } from '#imports'
import { ref, useAnalyticsPageEvent, useScript } from '#imports'
import { scriptConsent } from '~/composables/consent'
interface GenericTrackingScript {
Expand Down

0 comments on commit e0f8297

Please sign in to comment.