Vue component template
See original GitHub issueHi,
I’m currently thinking about building a standalone component template. Files:
/src/comp.vue
/dev/env.vue
/test/comp.js
/comp.js
/.gitignore
/.project.json
/README.md
Tasks
npm run build # uses vue-compiler to compile /src/comp.vue to /comp.js
npm run test # uses Karma to test /comp.js
npm run dev # uses vue-dev-server to serve /dev/env.vue which loads /src/comp.vue
What do you think?
I’ve seen, that the other templates are with html, css, es2015 and karma+jasmine. So I would use that as well…
Issue Analytics
- State:
- Created 8 years ago
- Reactions:2
- Comments:27 (8 by maintainers)
Top Results From Across the Web
Components Basics - Vue.js
The template is inlined as a JavaScript string here, which Vue will compile on the fly. You can also use an ID selector...
Read more >7 Ways to Define a Component Template in Vue.js
The quickest and easiest way to define a Vue component template is to add a template property to the component definition and assign...
Read more >Creating our first Vue component - Learn web development
Vue components are written as a combination of JavaScript objects that manage the app's data and an HTML-based template syntax that maps to ......
Read more >Component's Template - A Vue.js Lesson From ... - Vue School
In this lesson, we're going to learn about a Vue component's template. Essentially, the template is where we define our HTML and general...
Read more >Vue Component Template - A Vue.js Lesson From our Vue.js ...
In this lesson, we're going to learn about component templates in Vue 3. The template is where we define our HTML and general...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just FYI, this is what I personally use: https://github.com/vue-land/create-vue-component
@nkostadinov Looking for the same thing. There are so many different approaches on this topic and there’s no official recommendation yet.
I think you should check vue awesome and pick one that suits you. Personally, I think vue-paginate rep looks interesting.