Socket
Socket
Sign inDemoInstall

vue-play

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-play - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

3

dist/vue-play.js

@@ -181,3 +181,3 @@ module.exports =

};
var routePath = '/' + componentName + '/' + type.replace(' ', '_');
var routePath = '/' + componentName + '/' + type.replace(/\s/g, '_');
routePaths[componentName] = routePaths[componentName] || [];

@@ -204,3 +204,2 @@ routePaths[componentName].push({

app.start(__WEBPACK_IMPORTED_MODULE_2__components_App___default.a, '#app');
console.log(app);
};

@@ -207,0 +206,0 @@

{
"name": "vue-play",
"version": "0.1.0",
"version": "0.1.1",
"description": "Play with your vue components.",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -1,6 +0,17 @@

The core module used in `vue-play-cli`
# Vue Play
Example:
Play and demonstrate your Vue components, inspired by [react-storybook](https://github.com/kadirahq/react-storybook).
```js
## Play it in seconds
The only thing you need to install is `vue-play-cli`:
```bash
$ npm install -g vue-play-cli
```
Then, let's play with your Button component, create a `play.js` in the root directory of your project (anywhere else is ok):
```jsx
// you don't need to install vue-play!
import {play} from 'vue-play'

@@ -14,2 +25,5 @@ // import the button you wanna play

return <MyButton>Hello Play!</MyButton>
},
'with rounded border'(h) {
return <MyButton rounded={true}>I'm rouned!</MyButton>
}

@@ -19,1 +33,12 @@ }

```
Run the play script with command `vue-play`, and [see it in action!](http://vue-play-button.surge.sh) ([code](https://github.com/egoist/vue-play-button))
```bash
$ ~/my-button-component vue-play
> play at http://localhost:5000
```
## License
[MIT](https://egoist.mit-license.org) &copy; [EGOIST](https://github.com/egoist)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc