Skip to content

Commit 1c2855f

Browse files
committed
feat: new devtools
1 parent bd82ce6 commit 1c2855f

198 files changed

Lines changed: 4009 additions & 3503 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

devtools/app.config.ts

Lines changed: 0 additions & 17 deletions
This file was deleted.

devtools/bootstrap.ts

Lines changed: 0 additions & 22 deletions
This file was deleted.

devtools/composables/rpc.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

devtools/nuxt.config.ts

Lines changed: 0 additions & 28 deletions
This file was deleted.

devtools/package.json

Lines changed: 0 additions & 21 deletions
This file was deleted.

package.json

Lines changed: 11 additions & 124 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,25 @@
11
{
2-
"name": "@nuxt/scripts",
2+
"name": "nuxt-scripts-monorepo",
33
"type": "module",
44
"version": "1.0.0-beta.32",
5+
"private": true,
56
"packageManager": "pnpm@10.32.1",
67
"description": "Load third-party scripts with better performance, privacy and DX in Nuxt Apps.",
7-
"author": {
8-
"name": "Harlan Wilton",
9-
"email": "harlan@harlanzw.com",
10-
"url": "https://harlanzw.com"
11-
},
128
"license": "MIT",
139
"repository": {
1410
"type": "git",
1511
"url": "git+https://github.com/nuxt/scripts.git"
1612
},
17-
"bugs": {
18-
"url": "https://github.com/nuxt/scripts/issues"
19-
},
20-
"sideEffects": false,
21-
"exports": {
22-
".": {
23-
"types": "./dist/types.d.mts",
24-
"import": "./dist/module.mjs"
25-
},
26-
"./registry": "./dist/registry.mjs",
27-
"./stats": "./dist/stats.mjs",
28-
"./types-source": "./dist/types-source.mjs"
29-
},
30-
"main": "./dist/module.mjs",
31-
"types": "./dist/types.d.mts",
32-
"typesVersions": {
33-
"*": {
34-
".": [
35-
"./dist/types.d.mts"
36-
],
37-
"registry": [
38-
"./dist/registry.d.mts"
39-
],
40-
"stats": [
41-
"./dist/stats.d.mts"
42-
],
43-
"types-source": [
44-
"./dist/types-source.d.mts"
45-
]
46-
}
47-
},
48-
"files": [
49-
"dist"
50-
],
5113
"scripts": {
52-
"build": "pnpm dev:prepare && pnpm prepack",
14+
"build": "pnpm generate:types && pnpm --filter @nuxt/scripts build && pnpm devtools:build",
5315
"generate:types": "pnpm dlx tsx scripts/generate-registry-types.ts",
54-
"prepack": "pnpm generate:types && nuxt-module-build build --stub && nuxt-module-build prepare && nuxt-module-build build && pnpm devtools:build",
55-
"devtools:build": "nuxi generate devtools",
56-
"devtools:dev": "nuxi dev devtools --port 3300",
57-
"dev": "nuxi dev playground",
58-
"dev:ssl": "nuxi dev playground --https",
59-
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground && pnpm prepare:fixtures",
60-
"prepare:fixtures": "nuxi prepare test/fixtures/basic && nuxi prepare test/fixtures/cdn && nuxi prepare test/fixtures/extend-registry && nuxi prepare test/fixtures/partytown && nuxi prepare test/fixtures/first-party",
16+
"prepack": "pnpm generate:types && pnpm --filter @nuxt/scripts build && pnpm devtools:build",
17+
"devtools": "nuxt dev packages/devtools-app --port 3030",
18+
"devtools:build": "nuxt generate packages/devtools-app",
19+
"dev": "nuxt dev playground",
20+
"dev:ssl": "nuxt dev playground --https",
21+
"dev:prepare": "pnpm -r dev:prepare && nuxt prepare playground && pnpm prepare:fixtures",
22+
"prepare:fixtures": "nuxt prepare test/fixtures/basic && nuxt prepare test/fixtures/cdn && nuxt prepare test/fixtures/extend-registry && nuxt prepare test/fixtures/partytown && nuxt prepare test/fixtures/first-party",
6123
"typecheck": "nuxt typecheck",
6224
"release": "pnpm build && bumpp --output=CHANGELOG.md",
6325
"lint": "eslint .",
@@ -67,102 +29,27 @@
6729
"test:e2e-dev": "vitest run --project e2e-dev",
6830
"test:types": "vitest run --project typecheck"
6931
},
70-
"build": {
71-
"externals": [
72-
"@unhead/vue",
73-
"@unhead/schema",
74-
"knitwork",
75-
"#build/modules/nuxt-scripts-gtm",
76-
"#build/modules/nuxt-scripts-ga",
77-
"@vimeo/player",
78-
"esbuild",
79-
"unimport",
80-
"#nuxt-scripts/types",
81-
"posthog-js"
82-
]
83-
},
84-
"peerDependencies": {
85-
"@googlemaps/markerclusterer": "^2.6.2",
86-
"@paypal/paypal-js": "^8.1.2 || ^9.0.0",
87-
"@stripe/stripe-js": "^7.0.0 || ^8.0.0",
88-
"@types/google.maps": "^3.58.1",
89-
"@types/vimeo__player": "^2.18.3",
90-
"@types/youtube": "^0.1.0",
91-
"@unhead/vue": "^2.0.3",
92-
"posthog-js": "^1.0.0"
93-
},
94-
"peerDependenciesMeta": {
95-
"@googlemaps/markerclusterer": {
96-
"optional": true
97-
},
98-
"@paypal/paypal-js": {
99-
"optional": true
100-
},
101-
"@stripe/stripe-js": {
102-
"optional": true
103-
},
104-
"@types/google.maps": {
105-
"optional": true
106-
},
107-
"@types/vimeo__player": {
108-
"optional": true
109-
},
110-
"@types/youtube": {
111-
"optional": true
112-
},
113-
"posthog-js": {
114-
"optional": true
115-
}
116-
},
117-
"dependencies": {
118-
"@nuxt/devtools-kit": "catalog:",
119-
"@nuxt/kit": "catalog:",
120-
"@vueuse/core": "catalog:",
121-
"consola": "catalog:",
122-
"defu": "catalog:",
123-
"h3": "catalog:",
124-
"magic-string": "catalog:",
125-
"ofetch": "catalog:",
126-
"ohash": "catalog:",
127-
"oxc-parser": "catalog:",
128-
"oxc-walker": "catalog:",
129-
"pathe": "catalog:",
130-
"pkg-types": "catalog:",
131-
"sirv": "catalog:",
132-
"std-env": "catalog:",
133-
"ufo": "catalog:",
134-
"ultrahtml": "catalog:",
135-
"unplugin": "catalog:",
136-
"unstorage": "catalog:",
137-
"valibot": "catalog:"
138-
},
13932
"devDependencies": {
14033
"@antfu/eslint-config": "catalog:",
141-
"@nuxt/devtools-ui-kit": "catalog:",
142-
"@nuxt/module-builder": "catalog:",
14334
"@nuxt/scripts": "workspace:*",
14435
"@nuxt/test-utils": "catalog:",
14536
"@nuxtjs/partytown": "catalog:",
14637
"@paypal/paypal-js": "catalog:",
38+
"@types/google.maps": "catalog:",
14739
"@types/jest-image-snapshot": "catalog:",
148-
"@types/semver": "catalog:",
14940
"@types/youtube": "catalog:",
150-
"@typescript-eslint/typescript-estree": "catalog:",
15141
"@vue/test-utils": "catalog:",
15242
"bumpp": "catalog:",
15343
"eslint": "catalog:",
15444
"eslint-plugin-harlanzw": "catalog:",
15545
"happy-dom": "catalog:",
15646
"jest-image-snapshot": "catalog:",
157-
"knitwork": "catalog:",
15847
"nuxt": "catalog:",
15948
"playwright-core": "catalog:",
16049
"posthog-js": "catalog:",
161-
"shiki": "catalog:",
16250
"typescript": "catalog:",
16351
"vitest": "catalog:",
16452
"vue": "catalog:",
165-
"vue-router": "catalog:",
16653
"vue-tsc": "catalog:"
16754
},
16855
"resolutions": {
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
export default {
2+
ui: {
3+
colors: {
4+
primary: 'green',
5+
neutral: 'neutral',
6+
},
7+
button: {
8+
defaultVariants: {
9+
color: 'neutral',
10+
variant: 'ghost',
11+
size: 'sm',
12+
},
13+
},
14+
badge: {
15+
defaultVariants: {
16+
color: 'neutral',
17+
variant: 'subtle',
18+
size: 'xs',
19+
},
20+
},
21+
tooltip: {
22+
defaultVariants: {
23+
delayDuration: 0,
24+
},
25+
},
26+
},
27+
}

0 commit comments

Comments
 (0)