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.

[recipe] Add Vue.js recipe

See original GitHub issue

Note: this is not an issue but a reminder for me to add a recipe for Vue file support.

Add a Vue.js recipe for Vue file transpiling. The new vue-node (https://github.com/knpwrs/vue-node) works great as a solution to get Ava and Vue.js working along side each other. Little configuration needed other than using prexisting webpack configs.

I have it fully working together, although it is quite slow. I believe there is extra precompilation happening, caching transpiled code in vue-node should solve this issue.

I’m also looking into checking coverage reports with Vue.js files, since webpack is driving the transpiling it should work (fingers crossed).

Once I have completed my investigation I will add a recipe.ill keep this issue up to date. May be a couple of weeks, due to finishing a work project.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:15
  • Comments:21 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
blake-newmancommented, Apr 18, 2017

Will add recipe over next couple of days, should have enough free time to complete.

Require.extension.hooks is probably the best solution, most extensible and fastest. vue-node is much slower as each component requeires Webpack to do alot of work. Which adds approx 3-4s to each component import.

Extension hooks seems to have least impact, and with caching techniques this could be much faster to an already fast solution. Less configuration required aswell. Also mapping of code coverage is very accurate and not yet seen any issues.

2reactions
jackmelliscommented, Apr 15, 2017

Nice. I’ve taken the exact test code and done the same with require-extension-hooks instead of webpack. Goes from 6.8s to 2.4s on my machine…

https://github.com/jackmellis/avoriaz-ava-example

Read more comments on GitHub >

github_iconTop Results From Across the Web

A favorite recipes app built using vue.js
A favorite recipes app built using vue.js · Masak-Apa.
Read more >
Lets build a recipe app using vue 3 and vite | Weekly Webtips
Let's build a recipe app using Vue 3 + Vite. Vue 3 is just around the corner, and I've been building some apps...
Read more >
How to build a recipe app using Vue.js and Vuex - Morioh
In this tutorial, I'm going to show you how to create an elegant Recipe App using Vue2, Vuex, Vuetify and Cosmic JS. ✓...
Read more >
How to build a recipe app using Vue.js and Vuex - HackerNoon
In this tutorial, I'm going to show you how to create an elegant Recipe App using Vue2, Vuex, Vuetify and Cosmic JS.
Read more >
Let's build a recipe app using Vue 3 + Vite - DEV Community ‍ ‍
In this article we'll start to build the recipe app. ... npm i --save vue-router@v4.0.0-alpha.11 # or yarn add vue-router@v4.0.0-alpha.11.
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