Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoluoboding committed Sep 14, 2016
1 parent 0f422cc commit 6b08220
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 17 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.DS_Store
node_modules/
dist/
npm-debug.log
22 changes: 10 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
# repository-tree
# Repository Tree

> Pretty display directory tree view of a GitHub repository.
> Pretty display directory tree view of a GitHub repository. [Demo](https://xiaoluoboding.github.io/repository-tree/)
## Build Setup
## Preview

``` bash
# install dependencies
npm install
![img](dist/preview.png)

# serve with hot reload at localhost:8080
npm run dev
## Feature

# build for production with minification
npm run build
```
- [x] Pretty display repository tree view
- [x] Copy repository tree view to clipboard

For detailed explanation on how things work, consult the [docs for vue-loader](http://vuejs.github.io/vue-loader).
## License

MIT
4 changes: 2 additions & 2 deletions src/components/Tree.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
export default {
data() {
return {
copyTooltip: 'Copy repository tree to clipboard'
copyTooltip: 'Copy repository tree view to clipboard'
}
},
vuex: {
Expand All @@ -18,7 +18,7 @@ export default {
watch: {
repoTree(newVal, oldVal) {
if(newVal) {
this.copyTooltip = 'Copy repository tree to clipboard'
this.copyTooltip = 'Copy repository tree view to clipboard'
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/vuex/modules/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import treeify from 'treeify'
// initial state
const state = {
siteLink: 'https://github.com/',
repoLink: 'https://github.com/xiaoluoboding/vue-demo-collection',
repoLink: 'https://github.com/xiaoluoboding/repository-tree',
userName: '',
repoName: '',
repoTree: [],
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
output: {
path: path.resolve(__dirname, './dist'),
publicPath: '/dist/',
filename: 'build.js'
filename: 'repository-tree.js'
},
resolveLoader: {
root: path.join(__dirname, 'node_modules'),
Expand Down

0 comments on commit 6b08220

Please sign in to comment.