Should `vue` be a `devDependencies` instead of a `dependency` ?
See original GitHub issueWhen I install VFG for my project, I realized that a different version of vue
was installed. I guess npm does that because it it listed under dependencies
in package.json
.
But this is useless, no ?
If I want to clone the project to work on it, I will install dependency
and devDependencies
.
However, if I want to use VFG as a plugin/component, I don’t need to install this specific version of vue
.
I can do:
import {component} from 'vue-form-generator';
export default {
components: {
'vue-form-generator': component
}
}
As long as I use vue 2 it should work
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
Vuejs & npm - Should all dependencies be devDependencies?
Yes those are very clearly devDeps but even Vue itself is getting bundled with WebPack at the end. So pretty much any dependency...
Read more >Is this a dependency or devDependency? - With Blue Ink
Strictly following the official documentation, because these packages are used only at build-time, they should be considered devDependencies.
Read more >dependencies vs devDependencies - Medium
Dependencies should contain libs and framewors your app is built on, such as Vue, React, Angular, Express, JQuery and etc.
Read more >Why is Axios, Vue, etc. listed in package.json under ...
They are required as a dev dependency because when you run npm run watch / prod / whatever, it compiles from node_modules to...
Read more >Difference between dependencies ... - GeeksforGeeks
DevDependencies are the packages a developer needs during development. A peer dependency specifies that our package is compatible with a ...
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 Free
Top 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
Sorry, I forgot to do the PR, but here it is.
So far i’m hitting a brickwall. So I had to change the config and change ‘sass’ to ‘scss’, and some other tweak.
The bundling work without error, but the navigator fail. Webpack don’t seem to transpile with babel (I tried to include the path to the loader config). so every 'import something from ‘./here’ is keep as is and it cause problems. Webpack 2 seem to be able to fix that but my project is made with webpack 1 so I’m not going to change everything.
@cristijora I encourage you to take a look at my branch, I hope you can succeed: https://github.com/lionel-bijaoui/vue-form-generator/tree/lb_alternative_plugin_behavior