Skip to content

Commit 57c34c9

Browse files
authored
docs: add vue 3 devtools setup instructions (vuejs#1264)
* docs: add steps for setting up vue 3 devtools * docs: update filename * docs: standardize readme markdown * docs: add vue 3 devtools setup guide
1 parent 7909443 commit 57c34c9

File tree

2 files changed

+51
-23
lines changed

2 files changed

+51
-23
lines changed

README.md

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -30,41 +30,46 @@ This is only necessary when you want to build the extension yourself from source
3030

3131
1. Clone this repo
3232
2. `cd vue-devtools` the newly created folder
33-
2. run `yarn install`
34-
3. then run `yarn run build`
35-
4. Open the Chrome extension page (currently under Menu > More Tools > Extensions)
36-
5. Check "developer mode" on the top-right corner
37-
6. Click the "load unpacked" button on the left, and choose the folder: `vue-devtools/packages/shell-chrome/`
38-
7. Alternatilvely to step 3, you can also use `yarn dev:chrome` to build & watch the unpacked extension
33+
3. run `yarn install`
34+
4. then run `yarn run build`
35+
5. Open the Chrome extension page (currently under Menu > More Tools > Extensions)
36+
6. Check "developer mode" on the top-right corner
37+
7. Click the "load unpacked" button on the left, and choose the folder: `vue-devtools/packages/shell-chrome/`
38+
8. Alternatilvely to step 3, you can also use `yarn dev:chrome` to build & watch the unpacked extension
3939

4040
### Development
4141

42+
#### Vue 2
43+
4244
1. Clone this repo
4345
2. run `yarn install`
4446
3. then run `yarn run dev`
4547
4. A plain shell with a test app will be available at `localhost:8100`.
4648

47-
### Testing as Firefox addon
49+
#### Vue 3
4850

49-
1. Install `web-ext`
51+
To enable this feature, follow [this guide](./docs/devtools-vue3.md).
5052

51-
~~~~
52-
$ yarn global add web-ext
53-
~~~~
53+
### Testing as Firefox addon
5454

55-
Also, make sure `PATH` is set up. Something like this in `~/.bash_profile`:
55+
1. Install `web-ext`
5656

57-
~~~~
58-
$ PATH=$PATH:$(yarn global bin)
59-
~~~~
57+
```
58+
$ yarn global add web-ext
59+
```
6060
61-
2. Build and run in Firefox
61+
Also, make sure `PATH` is set up. Something like this in `~/.bash_profile`:
6262
63-
~~~~
64-
$ yarn run build
65-
$ yarn run run:firefox
66-
~~~~
63+
```
64+
$ PATH=$PATH:$(yarn global bin)
65+
```
6766
67+
2. Build and run in Firefox
68+
69+
```
70+
$ yarn run build
71+
$ yarn run run:firefox
72+
```
6873
6974
### Force enable the devtools
7075
@@ -77,17 +82,15 @@ window.__VUE_DEVTOOLS_GLOBAL_HOOK__.Vue = app.constructor
7782
7883
// then had to add in ./store.js as well.
7984
Vue.config.devtools = process.env.NODE_ENV === 'development'
80-
8185
```
8286

8387
### Common problems and how to fix
8488

8589
1. Fixing "Download the Vue Devtools for a better development experience" console message when working locally over `file://` protocol:
86-
1.1 - Google Chrome: Right click on vue-devtools icon and click "Manage Extensions" then search for vue-devtools on the extensions list. Check the "Allow access to file URLs" box.
90+
1.1 - Google Chrome: Right click on vue-devtools icon and click "Manage Extensions" then search for vue-devtools on the extensions list. Check the "Allow access to file URLs" box.
8791

8892
2. How to use the devtools in IE/Edge/Safari or any other browser? [Get the standalone Electron app (works with any environment!)](./packages/shell-electron/README.md)
8993

90-
9194
### License
9295

9396
[MIT](http://opensource.org/licenses/MIT)

docs/devtools-vue3.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# How to Setup Vue DevTools for Vue 3
2+
3+
## Local Development
4+
5+
```bash
6+
# Clone repo
7+
git clone git@github.com:vuejs/vue-devtools.git
8+
9+
# Change into devtools directory
10+
cd vue-devtools
11+
12+
# Checkout next branch
13+
git checkout next
14+
15+
# Install dependencies
16+
yarn
17+
18+
# Build TypeScript dependencies
19+
yarn build:watch
20+
21+
# Start local environment
22+
yarn dev:shell-vue3
23+
```
24+
25+
Once everything is setup, you should be able to visit http://localhost:8090/

0 commit comments

Comments
 (0)