Skip to content

gwenaelp/vue-prototype-pins

Repository files navigation

vue-prototype-pins

Rollup badge Jest Vue Storybook Commitizen semantic-release Npm badge Build Status

description

Generated using vue-cli-template-library.

Installation

npm install vue-prototype-pins

vue-prototype-pins can be used as a module in both CommonJS and ES modular environments.

When in non-modular environment, vue-prototype-pins will register all the components to vue by itself.

ES6

//
// You can register a component manually
//
import { PrototypePins } from 'vue-prototype-pins';

export default {
  ...
  components: {
    PrototypePins
  },
  ...
};

//
// or register the whole module with vue
//
import ModuleLibrary from 'vue-prototype-pins';

// Install this library
Vue.use(ModuleLibrary);

CommonJS

//
// You can register a component manually
//
var Vue = require('vue');
var ModuleLibrary = require('vue-prototype-pins');

var YourComponent = Vue.extend({
  ...
  components: {
    'vue-prototype-pins': ModuleLibrary.PrototypePins
  },
  ...
});

//
// or register the whole module with vue
//
var Vue = require('vue');
var ModuleLibrary = require('vue-prototype-pins');

// Install this library
Vue.use(ModuleLibrary);

Browser

<script src="path/to/vue/vue.min.js"></script>
<script src="path/to/vue-prototype-pins/dist/vue-prototype-pins.min.js"></script>
<!-- Components are registered globally -->

Changelog

See the GitHub release history.

Contributing

See CONTRIBUTING.md.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published