Skip to content

Commit c13f126

Browse files
committed
🎉 Initial commit
1 parent 3272f0b commit c13f126

File tree

122 files changed

+10012
-18680
lines changed

Some content is hidden

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

122 files changed

+10012
-18680
lines changed

.editorconfig

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# For more information about the properties used in
2+
# this file, please see the EditorConfig documentation:
3+
# http://editorconfig.org/
4+
5+
root = true
6+
7+
[*]
8+
charset = utf-8
9+
end_of_line = lf
10+
indent_size = 2
11+
indent_style = space
12+
insert_final_newline = true
13+
max_line_length = 80
14+
trim_trailing_whitespace = true
15+
16+
[*.md]
17+
max_line_length = 0
18+
trim_trailing_whitespace = false
19+
20+
[COMMIT_EDITMSG]
21+
max_line_length = 0

.gitignore

100644100755
+28-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
logs
33
*.log
44
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
57

68
# Runtime data
79
pids
810
*.pid
911
*.seed
12+
*.pid.lock
1013

1114
# Directory for instrumented libs generated by jscoverage/JSCover
1215
lib-cov
@@ -20,18 +23,41 @@ coverage
2023
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
2124
.grunt
2225

26+
# Bower dependency directory (https://bower.io/)
27+
bower_components
28+
2329
# node-waf configuration
2430
.lock-wscript
2531

2632
# Compiled binary addons (http://nodejs.org/api/addons.html)
2733
build/Release
2834

2935
# Dependency directories
30-
node_modules
31-
jspm_packages
36+
node_modules/
37+
jspm_packages/
38+
39+
# Typescript v1 declaration files
40+
typings/
3241

3342
# Optional npm cache directory
3443
.npm
3544

45+
# Optional eslint cache
46+
.eslintcache
47+
3648
# Optional REPL history
3749
.node_repl_history
50+
51+
# Output of 'npm pack'
52+
*.tgz
53+
54+
# Yarn Integrity file
55+
.yarn-integrity
56+
57+
# dotenv environment variables file
58+
.env
59+
60+
# os files
61+
.DS_Store
62+
63+
vender

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "source"]
2+
path = source
3+
url = https://github.com/vuejs/vue-devtools.git

.travis.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
sudo: false
2+
3+
language: node_js
4+
5+
# os:
6+
# - linux
7+
# - osx
8+
# - windows
9+
10+
node_js:
11+
# - 6
12+
# - 7
13+
# - 8
14+
- stable
15+
16+
notifications:
17+
email:
18+
on_success: never
19+
on_failure: change
20+
21+
script:
22+
- yarn test

LICENSE

100644100755
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2017 汪磊 <[email protected]> (https://zce.me/)
3+
Copyright (c) 2017 zce <[email protected]> (https://zce.me/)
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

100644100755
+65-20
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,96 @@
11
# vue-devtools
22

3+
[![Build Status][travis-image]][travis-url]
4+
[![NPM Downloads][downloads-image]][downloads-url]
5+
[![NPM Version][version-image]][version-url]
6+
[![License][license-image]][license-url]
7+
[![Dependency Status][dependency-image]][dependency-url]
8+
[![devDependency Status][devdependency-image]][devdependency-url]
9+
[![Code Style][style-image]][style-url]
10+
311
> An electron devtools extension for debugging Vue.js applications.
412
5-
[![NPM](https://nodei.co/npm/vue-devtools.png)](https://nodei.co/npm/vue-devtools/)
13+
## Installation
614

7-
## Usage
15+
```sh
16+
$ yarn add vue-devtools -D
817

9-
### Installing
18+
# or npm
19+
$ npm install vue-devtools --save-dev
20+
```
1021

11-
In an electron proj
22+
## Usage
1223

13-
```bash
14-
$ npm i vue-devtools --save-dev
15-
```
24+
### Installing
1625

17-
then, run install in your `main.js`
26+
calling `install` in your `main.js`
1827

19-
```javascript
20-
const { app, BrowserWindow } = require('electron')
28+
```js
29+
const { app } = require('electron')
2130
app.on('ready', () => {
22-
....
31+
// ...
2332
if (process.env.NODE_ENV !== 'production') {
2433
require('vue-devtools').install()
2534
}
26-
....
35+
// ...
2736
})
2837
```
2938

3039
### Uninstalling
3140

32-
Running uniinstall in your `main.js`
41+
calling `uninstall` in your `main.js`
3342

34-
```javascript
35-
const { app, BrowserWindow } = require('electron')
43+
```js
44+
const { app } = require('electron')
3645
app.on('ready', () => {
37-
....
46+
// ...
3847
if (process.env.NODE_ENV !== 'production') {
3948
require('vue-devtools').uninstall()
4049
}
41-
....
50+
// ...
4251
})
4352
```
4453

54+
## API
55+
56+
### install()
57+
58+
Install Vue.js devtools in Electron devtools.
59+
60+
### uninstall()
61+
62+
Uninstall Vue.js devtools in Electron devtools.
63+
64+
## Contributing
65+
66+
1. **Fork** it on GitHub!
67+
2. **Clone** the fork to your own machine.
68+
3. **Checkout** your feature branch: `git checkout -b my-awesome-feature`
69+
4. **Commit** your changes to your own branch: `git commit -am 'Add some feature'`
70+
5. **Push** your work back up to your fork: `git push -u origin my-awesome-feature`
71+
6. Submit a **Pull Request** so that we can review your changes.
72+
73+
> **NOTE**: Be sure to merge the latest from "upstream" before making a pull request!
74+
4575
## License
4676

47-
npm package for electron base on [vuejs/vue-devtools](https://github.com/vuejs/vue-devtools)
77+
[MIT](https://github.com/vuejs/vue-devtools/blob/master/LICENSE) &copy; [vuejs/vue-devtools](https://github.com/vuejs/vue-devtools)
78+
79+
[MIT](LICENSE) &copy; [汪磊](https://zce.me/)
80+
4881

49-
## Latest updated
5082

51-
**@ Jul 22, 2017**
83+
[travis-image]: https://img.shields.io/travis/zce/vue-devtools.svg
84+
[travis-url]: https://travis-ci.org/zce/vue-devtools
85+
[downloads-image]: https://img.shields.io/npm/dm/vue-devtools.svg
86+
[downloads-url]: https://npmjs.org/package/vue-devtools
87+
[version-image]: https://img.shields.io/npm/v/vue-devtools.svg
88+
[version-url]: https://npmjs.org/package/vue-devtools
89+
[license-image]: https://img.shields.io/npm/l/vue-devtools.svg
90+
[license-url]: https://github.com/zce/vue-devtools/blob/master/LICENSE
91+
[dependency-image]: https://img.shields.io/david/zce/vue-devtools.svg
92+
[dependency-url]: https://david-dm.org/zce/vue-devtools
93+
[devdependency-image]: https://img.shields.io/david/dev/zce/vue-devtools.svg
94+
[devdependency-url]: https://david-dm.org/zce/vue-devtools?type=dev
95+
[style-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg
96+
[style-url]: http://standardjs.com

0 commit comments

Comments
 (0)