Skip to content

Commit

Permalink
fix: main pointing to right file name
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-bonnel committed Feb 23, 2017
1 parent 105166f commit 4257e25
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 13 deletions.
4 changes: 4 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
/test
yarn.lock
webpack.config.js
.babelrc
.editorconfig
.eslintignore
.eslintrc.js
13 changes: 5 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,31 +19,28 @@ yarn add vue-openapi
```

## Usage

```
import Vue from 'vue'
import VueMaterial from 'vue-material'
import openapi from './OpenAPI.vue'
import OpenApi from 'vue-openapi'
import 'vue-material/dist/vue-material.css'
import VueResource from 'vue-resource'
import jsonApi from './swagger.json'
Vue.use(VueMaterial)
Vue.material.theme.register('default', {
primary: 'black',
accent: 'red'
})
Vue.use(VueResource)
new Vue({
el: '#app',
template: '<openapi v-bind:api="jsonApi" v-md-theme="\'default\'"></openapi>',
template: '<open-api v-if="jsonApi" :api="jsonApi"></open-api>',
data: function(){
return {
jsonApi: jsonApi
}
},
components: {
openapi
OpenApi
}
})
```
Expand Down
19 changes: 14 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
{
"name": "vue-openapi",
"version": "0.1.0",
"description": "",
"main": "OpenAPI.vue",
"version": "0.1.1",
"description": "Display API documentation that follow the OpenAPI 3.0 Specification",
"keywords": ["vue", "material", "openapi", "api", "documentation", "swagger"],
"author": {
"name": "Koumoul",
"email": "[email protected]",
"url": "https://koumoul.com/"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/koumoul-dev/vue-openapi.git"
},
"main": "OpenApi.vue",
"scripts": {
"dev": "NODE_ENV=development webpack --watch",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "MIT",
"devDependencies": {
"babel-core": "^6.18.2",
"babel-eslint": "^7.1.1",
Expand Down

0 comments on commit 4257e25

Please sign in to comment.