-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update README | add keywords in package.json
- Loading branch information
Showing
3 changed files
with
64 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,64 @@ | ||
# v-snow | ||
# V-Snow | ||
|
||
> A Vue.js project | ||
[![Vue2](https://img.shields.io/badge/Vue-2.x-brightgreen.svg?style=for-the-badge)](https://vuejs.org/) | ||
[![npm](https://img.shields.io/npm/v/vsnow?style=for-the-badge)](https://www.npmjs.com/package/vsnow) | ||
[![npm](https://img.shields.io/npm/dw/vsnow?style=for-the-badge)](https://www.npmjs.com/package/vsnow) | ||
|
||
## Build Setup | ||
Snowfall effect plugin for Vue js | ||
|
||
```bash | ||
# install dependencies | ||
npm install | ||
> ## 👀 Demo | ||
# serve with hot reload at localhost:8080 | ||
npm run dev | ||
You can play with params on | ||
[DEMO PAGE](http://gamazu.github.io/v-snow) | ||
|
||
# build for production with minification | ||
npm run build | ||
> ## 💾 Instalation | ||
This version requires Vue 2.X. | ||
|
||
```sh | ||
npm install vsnow | ||
``` | ||
|
||
## Initialization | ||
|
||
### ES2015 (Webpack/Rollup/Browserify/etc) | ||
|
||
```javascript | ||
import Vue from "vue"; | ||
import VSnow from "vsnow"; | ||
|
||
Vue.use(VSnow); | ||
// Or as a directive-only | ||
import { VSnowDirective } from "vsnow"; | ||
Vue.directive("v-snow", VSnowDirective); | ||
// Or only as a component | ||
import { VSnowContainer } from "vsnow"; | ||
Vue.filter("VSnow", VSnowContainer); | ||
``` | ||
|
||
For detailed explanation on how things work, consult the [docs for vue-loader](http://vuejs.github.io/vue-loader). | ||
### UMD (Browser) | ||
|
||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/vsnow/dist/vsnow.min.js"></script> | ||
<script> | ||
// As a plugin | ||
Vue.use(vsnow.VueMaskPlugin); | ||
</script> | ||
``` | ||
|
||
## 🚀 Usage | ||
|
||
```html | ||
<!-- As a directive --> | ||
<div v-snow> | ||
<!-- content --> | ||
</div> | ||
|
||
<!-- As a wrapper componente --> | ||
<VSnow /> | ||
``` | ||
|
||
`That's all 🤩` | ||
|
||
## ⚙️ Configuration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,11 @@ | |
"typings": "dist/types/v-snow/index.d.ts", | ||
"version": "1.0.33", | ||
"author": "Alexander Burkov <[email protected]>", | ||
"keywords": [ | ||
"snow", | ||
"snowfall", | ||
"vue" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/gamazu/v-snow" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters