Skip to content

Commit

Permalink
Update name package from vue-a11y-announcer to vue-announcer
Browse files Browse the repository at this point in the history
  • Loading branch information
ktquez committed May 20, 2018
1 parent 2a6c8d4 commit 443e102
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -5,4 +5,4 @@ dist
example/node_modules
example/dist
example/package-lock.json
example/vue-a11y-announcer.js
example/vue-announcer.js
2 changes: 1 addition & 1 deletion README.md
@@ -1,4 +1,4 @@
# vue-a11y-announcer
# vue-announcer

A simple way with Vue to announce any information to the screen readers.

Expand Down
2 changes: 1 addition & 1 deletion example/package.json
@@ -1,5 +1,5 @@
{
"name": "example-vue-a11y-announcer",
"name": "example-vue-announcer",
"description": "Example of how to announce information useful for screen readers",
"version": "1.0.0",
"author": "Alan Albuquerque (ktquez) <ktquez@gmail.com>",
Expand Down
4 changes: 2 additions & 2 deletions example/src/main.js
Expand Up @@ -4,13 +4,13 @@ import router from './router.js'

import VueHead from 'vue-head'
import Toasted from 'vue-toasted'
import VueAnnounce from '../vue-a11y-announcer'
import VueAnnouncer from '../vue-announcer'

Vue.use(VueHead)
Vue.use(Toasted, {
duration: 10000 // Long duration
})
Vue.use(VueAnnounce, {}, router)
Vue.use(VueAnnouncer, {}, router)
Vue.config.productionTip = false

/* eslint-disable no-new */
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
@@ -1,8 +1,8 @@
{
"name": "vue-a11y-announcer",
"name": "vue-announcer",
"version": "0.0.3",
"description": "A simple way with Vue to announce any information to the screen readers.",
"main": "dist/vue-a11y-announcer.js",
"main": "dist/vue-announcer.js",
"scripts": {
"dev": "rollup --config rollup.config.dev.js --watch",
"dist": "rollup --config rollup.config.prod.js",
Expand All @@ -14,7 +14,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/vue-a11y/vue-a11y-announcer.git"
"url": "git+https://github.com/vue-a11y/vue-announcer.git"
},
"keywords": [
"announcer",
Expand All @@ -33,9 +33,9 @@
"author": "Alan Ktquez <ktquez@gmail.com> (https://medium.com/@ktquez)",
"license": "MIT",
"bugs": {
"url": "https://github.com/vue-a11y/vue-a11y-announcer/issues"
"url": "https://github.com/vue-a11y/vue-announcer/issues"
},
"homepage": "https://github.com/vue-a11y/vue-a11y-announcer#readme",
"homepage": "https://github.com/vue-a11y/vue-announcer#readme",
"devDependencies": {
"babel-core": "^6.26.3",
"babel-eslint": "^8.2.3",
Expand Down
4 changes: 2 additions & 2 deletions rollup.config.dev.js
Expand Up @@ -29,8 +29,8 @@ export default {
],
output: [
{
name: 'VueA11yAnnouncer',
file: 'example/vue-a11y-announcer.js',
name: 'VueAnnouncer',
file: 'example/vue-announcer.js',
format: 'umd'
}
]
Expand Down
10 changes: 5 additions & 5 deletions rollup.config.prod.js
Expand Up @@ -22,20 +22,20 @@ export default {
],
output: [
{
file: 'dist/vue-a11y-announcer.cjs.js',
file: 'dist/vue-announcer.cjs.js',
format: 'cjs'
},
{
file: 'dist/vue-a11y-announcer.es.js',
file: 'dist/vue-announcer.es.js',
format: 'es'
},
{
file: 'dist/vue-a11y-announcer.amd.js',
file: 'dist/vue-announcer.amd.js',
format: 'amd'
},
{
name: 'VueA11yAnnouncer',
file: 'dist/vue-a11y-announcer.js',
name: 'VueAnnouncer',
file: 'dist/vue-announcer.js',
format: 'umd'
}
]
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
@@ -1,10 +1,10 @@
import VueA11yAnnouncer from './vue-a11y-announcer.vue'
import VueAnnouncer from './vue-announcer.vue'
import { OPTIONS } from './constants'

export default function install (Vue, options = {}, router = null) {
options = {...options, ...OPTIONS}

Vue.component('VueAnnouncer', VueA11yAnnouncer)
Vue.component('VueAnnouncer', VueAnnouncer)
Vue.prototype.$announcer = {
set (message) {
if (this.data) {
Expand Down
2 changes: 1 addition & 1 deletion src/vue-a11y-announcer.vue → src/vue-announcer.vue
Expand Up @@ -10,7 +10,7 @@

<script>
export default {
name: 'VueA11yAnnouncer',
name: 'VueAnnouncer',
data () {
return {
content: ''
Expand Down

0 comments on commit 443e102

Please sign in to comment.