Skip to content

Commit 5ce1433

Browse files
committed
fix: build scripts
1 parent 41d695a commit 5ce1433

File tree

5 files changed

+41
-34
lines changed

5 files changed

+41
-34
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ insert_final_newline = true
1111
[*.{json,yml,jade,pss,css,html,js}]
1212
indent_size = 2
1313

14+
[changelog.md]
15+
insert_final_newline = false
16+
1417
[*.html]
1518
insert_final_newline = false
1619

license

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-2-breadcrumbs",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"description": "Breadcrumbs for Vue.js 2.0",
55
"license": "MIT",
66
"repository": "Scrum/vue-2-breadcrumbs",
@@ -12,13 +12,12 @@
1212
"url": "https://twitter.com/Scrum_"
1313
},
1414
"main": "lib/vue-2-breadcrumbs.js",
15+
"browser": "lib/vue-2-breadcrumbs.js",
1516
"engines": {
1617
"node": ">=4"
1718
},
1819
"scripts": {
19-
"precommit": "clinton && lint-staged",
20-
"commitmsg": "commitlint --extends=@commitlint/config-angular -e",
21-
"postpublish": "conventional-changelog -i changelog.md -s -r 0 && git commit -am \"build: update changelog\"",
20+
"version": "conventional-changelog -i changelog.md -s -r 0 && git commit -am \"build: update changelog\"",
2221
"prepare": "npm run build",
2322
"build": "rimraf lib && babel src -d lib",
2423
"test": "echo issue #3"
@@ -56,13 +55,19 @@
5655
"lint-staged": "^8.1.1",
5756
"rimraf": "^2.6.3"
5857
},
59-
"browser": "lib/vue-2-breadcrumbs.js",
60-
"unpkg": "lib/vue-2-breadcrumbs.js",
61-
"style": "lib/vue-2-breadcrumbs.css",
6258
"lint-staged": {
6359
"{src,test}/**/*.{js,html,htm}": "eslint",
6460
"*.md": "eslint"
6561
},
62+
"unpkg": "lib/vue-2-breadcrumbs.js",
63+
"style": "lib/vue-2-breadcrumbs.css",
64+
"husky": {
65+
"hooks": {
66+
"pre-push": "npm t",
67+
"pre-commit": "clinton && lint-staged",
68+
"commit-msg": "commitlint --extends=@commitlint/config-angular -e"
69+
}
70+
},
6671
"ava": {
6772
"require": [
6873
"@babel/register"

readme.md

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# <a href="https://vuejs.org" target="_blank"><img valign="text-bottom" height="49" src="https://vuejs.org/images/logo.png"></a> breadcrumbs
2-
> Vue breadcrumbs builds on the official [vue-router](https://github.com/vuejs/vue-router) package to provide simple breadcrumbs. [Demo](http://inside-demo.github.io/vue-demo/#/feeds)
2+
> Vue breadcrumbs builds on the official [vue-router](https://github.com/vuejs/vue-router) package to provide simple breadcrumbs. [Demo](http://inside-demo.github.io/vue-demo/#/feeds)
33
44
[![Travis Build Status](https://img.shields.io/travis/GitScrum/vue-2-breadcrumbs/master.svg?style=flat-square&label=unix)](https://travis-ci.org/GitScrum/vue-2-breadcrumbs)[![vue2](https://img.shields.io/badge/vue-2.x-brightgreen.svg?style=flat-square)](https://vuejs.org/)[![node](https://img.shields.io/node/v/post-sequence.svg?maxAge=2592000&style=flat-square)]()[![npm version](https://img.shields.io/npm/v/vue-2-breadcrumbs.svg?style=flat-square)](https://www.npmjs.com/package/vue-2-breadcrumbs)[![Dependency Status](https://david-dm.org/gitscrum/vue-2-breadcrumbs.svg?style=flat-square)](https://david-dm.org/gitscrum/vue-2-breadcrumbs)[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg?style=flat-square)](https://github.com/sindresorhus/xo)[![Coveralls status](https://img.shields.io/coveralls/GitScrum/vue-2-breadcrumbs.svg?style=flat-square)](https://coveralls.io/r/GitScrum/vue-2-breadcrumbs)
55

@@ -94,22 +94,22 @@ new Vue({
9494
router,
9595
template: `
9696
<div id="app" class="container">
97-
<ul class="nav">
98-
<li class="nav-item dropdown">
99-
<router-link to="/feeds" class="nav-link dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Feeds</router-link>
100-
<div class="dropdown-menu">
101-
<router-link to="/feeds/foo" class="dropdown-item">Foo</router-link>
102-
<router-link to="/feeds/bar" class="dropdown-item">Bar</router-link>
103-
<router-link to="/feeds/1" class="dropdown-item">Other Feed 1</router-link>
104-
<router-link to="/feeds/2" class="dropdown-item">Other Feed 2</router-link>
105-
<router-link to="/feeds/3" class="dropdown-item">Other Feed 3</router-link>
106-
</div>
107-
</li>
108-
</ul>
109-
<breadcrumbs/>
110-
<router-view/>
97+
<ul class="nav">
98+
<li class="nav-item dropdown">
99+
<router-link to="/feeds" class="nav-link dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Feeds</router-link>
100+
<div class="dropdown-menu">
101+
<router-link to="/feeds/foo" class="dropdown-item">Foo</router-link>
102+
<router-link to="/feeds/bar" class="dropdown-item">Bar</router-link>
103+
<router-link to="/feeds/1" class="dropdown-item">Other Feed 1</router-link>
104+
<router-link to="/feeds/2" class="dropdown-item">Other Feed 2</router-link>
105+
<router-link to="/feeds/3" class="dropdown-item">Other Feed 3</router-link>
106+
</div>
107+
</li>
108+
</ul>
109+
<breadcrumbs/>
110+
<router-view/>
111111
</div>
112-
`
112+
`
113113
}).$mount('#app');
114114
```
115115
## Options
@@ -120,14 +120,13 @@ import Vue from 'vue';
120120
import VueBreadcrumbs from 'vue-2-breadcrumbs';
121121

122122
Vue.use(VueBreadcrumbs, {
123-
template:
124-
' <nav v-if="$breadcrumbs.length" aria-label="breadcrumb">\n' +
125-
' <ol class="breadcrumb">\n' +
126-
' <li v-for="(crumb, key) in $breadcrumbs" v-if="crumb.meta.breadcrumb" :key="key" class="breadcrumb-item active" aria-current="page">\n' +
127-
' <router-link :to="{ path: crumb.path }">{{ getBreadcrumb(crumb.meta.breadcrumb) }}</router-link>' +
128-
" </li>\n" +
129-
" </ol>\n" +
130-
" </nav>"
123+
template:
124+
' <nav v-if="$breadcrumbs.length" aria-label="breadcrumb">\n' +
125+
' <ol class="breadcrumb">\n' +
126+
' <li v-for="(crumb, key) in $breadcrumbs" v-if="crumb.meta.breadcrumb" :key="key" class="breadcrumb-item active" aria-current="page">\n' +
127+
' <router-link :to="{ path: crumb.path }">{{ getBreadcrumb(crumb.meta.breadcrumb) }}</router-link>' +
128+
' </li>\n' +
129+
' </ol>\n' +
130+
' </nav>'
131131
});
132132
```
133-

0 commit comments

Comments
 (0)