Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ dist
.idea/
.DS_Store
.vite-devtools
packages/devtools/src/public/fonts
packages/devtools/runtime
packages/devtools-vite/src/public/fonts
packages/devtools-vite/src/app/public/fonts
packages/devtools-vite/runtime
.rolldown
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ We're really excited that you're interested in contributing to Vite DevTools! Be
Currently Vite DevTools only supports build time inspection, to develop this project, you first need to build itself to get the Rolldown meta for testing.

- `pnpm install` to install dependencies
- `pnpm build` first to get the Rolldown logs under `./packages/devtools/.rolldown` folder
- `pnpm build` first to get the Rolldown logs under `./packages/devtools-vite/.rolldown` folder
- `pnpm dev` to start the dev server

As the data interface between Rolldown is not yet stable, and breaking changes are expected. We locked the Rolldown version in our `pnpm-workspace.yaml`, which means the published version may not work with the latest Rolldown.

When pulling the latest commits, it's recommended to remove the `./packages/devtools/.rolldown` folder and run `pnpm build` again to get the latest data format.
When pulling the latest commits, it's recommended to remove the `./packages/devtools-vite/.rolldown` folder and run `pnpm build` again to get the latest data format.

## 📄 Licenses

Expand Down
4 changes: 2 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// @ts-check
import antfu from '@antfu/eslint-config'
import nuxt from './packages/devtools/src/.nuxt/eslint.config.mjs'
import nuxt from './packages/devtools-vite/src/.nuxt/eslint.config.mjs'

export default antfu({
pnpm: true,
})
.append(nuxt())
.append({
files: ['packages/devtools/src/node/**/*.ts'],
files: ['packages/devtools-vite/src/node/**/*.ts'],
rules: {
'no-console': 'off',
},
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"build": "pnpm -r run build",
"build:debug": "NUXT_DEBUG_BUILD=true pnpm -r run build",
"stub": "pnpm -r run stub",
"dev": "pnpm -C packages/devtools run dev",
"start": "pnpm -C packages/devtools run start",
"prepare": "npx simple-git-hooks && pnpm -C packages/devtools run dev:prepare",
"lint": "pnpm -C packages/devtools run dev:prepare && eslint .",
"dev": "pnpm -C packages/devtools-vite run dev",
"start": "pnpm -C packages/devtools-vite run start",
"prepare": "npx simple-git-hooks && pnpm -C packages/devtools-vite run dev:prepare",
"lint": "pnpm -C packages/devtools-vite run dev:prepare && eslint .",
"test": "vitest",
"release": "bumpp -r && pnpm publish -r",
"typecheck": "pnpm -C packages/devtools run typecheck"
"typecheck": "pnpm -C packages/devtools-vite run typecheck"
},
"devDependencies": {
"@antfu/eslint-config": "catalog:devtools",
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@vitejs/devtools",
"name": "@vitejs/devtools-vite",
"type": "module",
"version": "0.0.0-alpha.1",
"description": "DevTools for Vite (work in progress)",
Expand Down Expand Up @@ -27,12 +27,12 @@
"dist"
],
"scripts": {
"dev": "pnpm run -r stub && ROLLDOWN_OPTIONS_VALIDATION=loose nuxi dev src",
"build": "ROLLDOWN_OPTIONS_VALIDATION=loose nuxi build src && tsdown",
"build:debug": "NUXT_DEBUG_BUILD=true pnpm run build",
"start": "node ./bin.mjs",
"prepack": "pnpm build",
"dev": "pnpm run -r stub && ROLLDOWN_OPTIONS_VALIDATION=loose nuxi dev src",
"dev:prepare": "nuxi prepare src",
"prepack": "pnpm build",
"start": "node ./bin.mjs",
"typecheck": "vue-tsc -b --noEmit"
},
"dependencies": {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/devtools-webext/scripts/build-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { fileURLToPath } from 'node:url'
import { buildNuxt, loadNuxt, useNuxt, writeTypes } from '@nuxt/kit'

const __dirname = fileURLToPath(new URL('.', import.meta.url))
const root = path.resolve(__dirname, '../../devtools/src')
const root = path.resolve(__dirname, '../../devtools-vite/src')
const buildDir = path.resolve(__dirname, '../dist/nuxt')
const distDir = path.resolve(__dirname, '../dist')

Expand Down
675 changes: 113 additions & 562 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ catalogs:
devtools:
'@antfu/eslint-config': ^5.2.0
'@nuxt/devtools': ^2.6.2
'@nuxt/eslint': ^1.7.1
'@nuxt/eslint': ^1.8.0
'@typescript-eslint/utils': ^8.39.0
'@unocss/eslint-config': ^66.4.1
bumpp: ^10.2.2
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "./packages/devtools/tsconfig.json",
"extends": "./packages/devtools-vite/tsconfig.json",
"compilerOptions": {
"target": "esnext",
"module": "esnext",
Expand Down
Loading