Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/anthonygore/vue-clock-simple

Repo for the article How To Publish Your Vue.js Component On NPM
https://github.com/anthonygore/vue-clock-simple

npm vue vue-components

Last synced: 3 days ago
JSON representation

Repo for the article How To Publish Your Vue.js Component On NPM

Awesome Lists containing this project

README

        

# vue-clock-simple

A Vue component that shows a clock.

This isn't particularly useful, it's used as a demo for how to publish Vue components to NPM!

## Installation

```js
npm i --save-dev vue-clock-simple
```

### Browser

Include the script file, then install the component with `Vue.use(VueClock);` e.g.:

```html

Vue.use(VueClock);

```

### Module

```js
import VueClock from 'vue-clock-simple';
```

## Usage

Once installed, it can be used in a template as simply as:

```html

```