question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Vue component template

See original GitHub issue

Hi,

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:closed
  • Created 8 years ago
  • Reactions:2
  • Comments:27 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
egoistcommented, Oct 15, 2017

Just FYI, this is what I personally use: https://github.com/vue-land/create-vue-component

1reaction
talovicnedimcommented, Oct 15, 2017

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found