Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/anthonygore/vue-clock-simple
- Owner: anthonygore
- Created: 2017-07-27T11:54:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-30T04:01:16.000Z (about 6 years ago)
- Last Synced: 2024-12-05T22:04:01.734Z (18 days ago)
- Topics: npm, vue, vue-components
- Language: JavaScript
- Homepage: https://vuejsdevelopers.com/2017/07/31/vue-component-publish-npm/
- Size: 5.86 KB
- Stars: 88
- Watchers: 6
- Forks: 43
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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
```