2 |
3 | Nuxt module playground!
4 |
5 |
6 |
7 |
9 |
--------------------------------------------------------------------------------
/playground/nuxt.config.ts:
--------------------------------------------------------------------------------
1 | import { resolve } from 'node:path'
2 | import { defineNuxtModule } from '@nuxt/kit'
3 | import { startSubprocess } from '@nuxt/devtools-kit'
4 |
5 | export default defineNuxtConfig({
6 | devtools: {
7 | enabled: true,
8 | },
9 |
10 | modules: [
11 | /**
12 | * Vue Mess Detector
13 | */
14 | '../src/module',
15 | /**
16 | * Start a sub Nuxt Server for developing the client
17 | *
18 | * The terminal output can be found in the Terminals tab of the devtools.
19 | */
20 | defineNuxtModule({
21 | setup(_, nuxt) {
22 | if (!nuxt.options.dev) {
23 | return
24 | }
25 |
26 | const _process = startSubprocess(
27 | {
28 | command: 'npx',
29 | args: ['nuxi', 'dev', '--port', '3300'],
30 | cwd: resolve(__dirname, '../client'),
31 | },
32 | {
33 | id: 'vue-mess-detector:client',
34 | name: 'Vue Mess Detector Client Dev',
35 | },
36 | )
37 | },
38 | }),
39 | ],
40 |
41 | vueMessDetector: {},
42 |
43 | compatibilityDate: '2024-08-21',
44 | })
45 |
--------------------------------------------------------------------------------
/playground/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "private": true,
3 | "name": "vue-mess-detector-nuxt-devtools-playground",
4 | "type": "module",
5 | "scripts": {
6 | "dev": "nuxi dev",
7 | "build": "nuxi build",
8 | "generate": "nuxi generate"
9 | },
10 | "dependencies": {
11 | "nuxt": "^3.13.2"
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/renovate.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3 | "extends": [
4 | "config:recommended"
5 | ]
6 | }
7 |
--------------------------------------------------------------------------------
/rpc-types.ts:
--------------------------------------------------------------------------------
1 | export interface AnalysisResult {
2 | output: { info: string }[]
3 | reportOutput: Record