lib/generators/vue/USAGE in vuejs-1.1.0.beta1 vs lib/generators/vue/USAGE in vuejs-1.1.0.beta2
- old
+ new
@@ -1,30 +1,17 @@
Description:
- Vue generator generates a vue component in Rails project.
+ Vue generator generates a vue component in Single-file component in Rails project.
Example:
rails generate vue <component>
This will create:
app/javascript/component/component.vue
Here's an example of component.vue
- rails g vue <component> --seperated
- rails g vue <component> -s
-
+ rails g vue <component> --no-single
+
This will create:
app/javascript/component/component.vue
app/javascript/component/component.css
app/javascript/component/component.js
-
- rails g vue <component> --no-prop
-
- This will remove prop property in Vue element
-
- rails g vue <component> --no-data
-
- This will remove data property in Vue element
-
- rails g vue <component> --erb
-
- This will integrate with erb on rails
\ No newline at end of file