Comparing version 0.1.0 to 0.1.1
@@ -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) © [EGOIST](https://github.com/egoist) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
25235
43
1
652