An open API service indexing awesome lists of open source software.

https://github.com/michalsnik/vue-camera


https://github.com/michalsnik/vue-camera

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# vue-camera

[![npm](https://img.shields.io/npm/v/vue-camera.svg)](https://www.npmjs.com/package/vue-camera) [![vue2](https://img.shields.io/badge/vue-2.x-brightgreen.svg)](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)