https://github.com/michalsnik/vue-camera
https://github.com/michalsnik/vue-camera
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/michalsnik/vue-camera
- Owner: michalsnik
- License: mit
- Created: 2018-07-01T22:41:14.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-03T22:48:54.000Z (almost 7 years ago)
- Last Synced: 2024-10-28T16:37:50.834Z (7 months ago)
- Language: Vue
- Size: 47.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# vue-camera
[](https://www.npmjs.com/package/vue-camera) [](https://vuejs.org/)
> Camera component for Vue.js apps
## Installation
```bash
yarn add vue-camera
```## Usage
### Bundler (Webpack, Rollup)
```js
import Vue from 'vue'
import VueCamera from 'vue-camera'// You need a specific loader for CSS files like https://github.com/webpack/css-loader
import 'vue-camera/dist/vue-camera.css'export default {
components: {
VueCamera
}
}
```### Browser
```html
```
## Development
### Launch visual tests
```bash
yarn watch
```### Build
Bundle the js and css of to the `dist` folder:
```bash
yarn build
```## Publishing
The `prepare` hook will ensure dist files are created before publishing. This
way you don't need to commit them in your repository.```bash
# Bump the version first
# It'll also commit it and create a tag
npm version
# Push the bumped package and tags
git push --follow-tags
# Ship it 🚀
npm publish
```## License
[MIT](http://opensource.org/licenses/MIT)