feat: project.code-workspace

This commit is contained in:
2026-02-11 09:11:11 -05:00
parent 289b777cad
commit 71a48de945
9 changed files with 38 additions and 24325 deletions

1
.gitignore vendored
View File

@@ -8,6 +8,7 @@
!/README.md !/README.md
!/composer.* !/composer.*
!/phpcs.xml !/phpcs.xml
!/project.code-workspace
!/wp-content/ !/wp-content/
/wp-content/* /wp-content/*

30
project.code-workspace Normal file
View File

@@ -0,0 +1,30 @@
{
"folders": [
{
"name": "Nuxt",
"path": "wp-content/themes/moonshine"
},
{
"name": "WordPress",
"path": "."
}
],
"settings": {
"files.associations": {
"*.css": "tailwindcss"
},
"editor.quickSuggestions": {
"strings": "on"
},
"tailwindCSS.classAttributes": [
"class",
"ui"
],
"tailwindCSS.experimental.classRegex": [
[
"ui:\\s*{([^)]*)\\s*}",
"(?:'|\"|`)([^']*)(?:'|\"|`)"
]
]
}
}

View File

@@ -14,7 +14,6 @@
"experimentalTailwindcss": { "experimentalTailwindcss": {
"attributes": ["class"], "attributes": ["class"],
"functions": ["tv"], "functions": ["tv"],
"preserveWhitespace": true,
"stylesheet": "./app/assets/css/_main.css" "stylesheet": "./app/assets/css/_main.css"
} }
} }

View File

@@ -5,10 +5,9 @@
"name": "Nuxt server", "name": "Nuxt server",
"type": "node", "type": "node",
"request": "launch", "request": "launch",
"program": "${workspaceFolder}/wp-content/themes/moonshine/node_modules/nuxt/bin/nuxt.mjs", "program": "${workspaceFolder}/node_modules/nuxt/bin/nuxt.mjs",
"runtimeArgs": ["--inspect"], "runtimeArgs": ["--inspect"],
"args": ["dev"], "args": ["dev"],
"cwd": "${workspaceFolder}/wp-content/themes/moonshine",
"autoAttachChildProcesses": true, "autoAttachChildProcesses": true,
"console": "integratedTerminal", "console": "integratedTerminal",
"skipFiles": ["<node_internals>/**"] "skipFiles": ["<node_internals>/**"]
@@ -20,8 +19,7 @@
"sourceMaps": true, "sourceMaps": true,
"trace": false, "trace": false,
"url": "http://localhost:3000", "url": "http://localhost:3000",
"userDataDir": "${env:HOME}/.vscode/chromium-profile", "userDataDir": "${env:HOME}/.vscode/chromium-profile"
"webRoot": "${workspaceFolder}/wp-content/themes/moonshine"
} }
] ]
} }

View File

@@ -24,23 +24,12 @@
"editor.defaultFormatter": "oxc.oxc-vscode" "editor.defaultFormatter": "oxc.oxc-vscode"
}, },
"editor.codeActionsOnSave": { "editor.codeActionsOnSave": {
"source.fixAll.oxc": "always" "source.fixAll": "always"
}, },
"editor.defaultFormatter": "oxc.oxc-vscode", "editor.defaultFormatter": "oxc.oxc-vscode",
"editor.formatOnSave": true, "editor.formatOnSave": true,
"editor.formatOnSaveMode": "file",
"editor.quickSuggestions": { "editor.quickSuggestions": {
"strings": "on" "strings": "on"
}, },
"files.associations": { "eslint.enable": false
"*.css": "tailwindcss"
},
"graphql-config.load.rootDir": "wp-content/themes/moonshine",
"oxc.fmt.configPath": "wp-content/themes/moonshine/.oxfmtrc.json",
"oxc.path.oxfmt": "wp-content/themes/moonshine/node_modules/.bin/oxfmt",
"oxc.path.oxlint": "wp-content/themes/moonshine/node_modules/.bin/oxlint",
"oxc.tsConfigPath": "wp-content/themes/moonshine/tsconfig.json",
"tailwindCSS.classAttributes": ["class", "ui"],
"tailwindCSS.experimental.classRegex": [["ui:\\s*{([^)]*)\\s*}", "(?:'|\"|`)([^']*)(?:'|\"|`)"]],
"typescript.tsdk": "wp-content/themes/moonshine/node_modules/typescript/lib"
} }

View File

@@ -1,4 +1,4 @@
{ {
"schema": "./server/graphql/schema.graphql", "schema": "./.nuxt/graphql/schema.gql",
"documents": "**/*.gql" "documents": "**/*.gql"
} }

View File

@@ -78,6 +78,7 @@ export default defineNuxtConfig({
wp: { type: "remote", endpoint: `${wpUrl}/graphql`, hooks: ["server/graphql/wp-hooks"] }, wp: { type: "remote", endpoint: `${wpUrl}/graphql`, hooks: ["server/graphql/wp-hooks"] },
}, },
}, },
saveSDL: ".nuxt/graphql/schema.gql",
}, },
image: { image: {

File diff suppressed because it is too large Load Diff