Giter Site home page Giter Site logo

nuxt-storm's Introduction

nuxt-storm

npm version License

NuxtJS module for WebStorm and PhpStorm that assists with using @nuxt/components

Quick Setup

  1. Add nuxt-storm to your project as a development dependency
# Using yarn
yarn add --dev nuxt-storm
# Using npm
npm install --save-dev nuxt-storm
  1. Add .components.gen.js to your .gitignore file

  2. Add 'nuxt-storm' to the buildModules section of nuxt.config.js

{
  buildModules: [
    'nuxt-storm',
  ]
}

ℹ️ If you are using nuxt < 2.9.0, use modules property instead.

That's it! Restart your yarn dev and components should now be found ✨

Nested Components Support

Add nested: true in your buildModule inclusion

{
  buildModules: [
    ['nuxt-storm', { nested: true }],
  ]
}

If you have components in nested directories:

| components/
---| My/
------| Form/
---------| TextArea.vue

The component name will contain its path:

<MyFormTextArea />

Path alias

Should your IDE fail to recognize vue component by its absolute path, you can replace it with path alias (default '@').

Thus, the aforementioned component path will be listed as @/components/My/Form/TextArea.vue instead of C:/some/absolute/path/project/components/My/Form/TextArea.vue.

Add alias: true in your buildModule inclusion or set a custom alias as its value should you use one.

{
  buildModules: [
    ['nuxt-storm', { alias: true }],
  ]
}

🙏 Thanks

This was made possible by with the help of grunghi and eggsy

nuxt-storm's People

Contributors

acidjazz avatar ivo-opencii avatar reinoldus avatar rvmourik avatar sugarf0x avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nuxt-storm's Issues

No component props hints

Webstorm [latest] doesn't show props and events hints for any auto imported component, although everything works as expected. Has anyone faces similiar issue? With pressed control there is hint saying variant is a Custom Vue component property, if import component manually it will show "HTML prop 'variant'"

I know it isn't a nuxt-storm propblem, but hope someone found way to fix it


Allow option to define the output dir of the .components.gen.js

Thanks for the module.

Could you make the output directory configurable?
I have a custom build directory set in nuxt.config.js:

buildDir: '.nuxt/mydir'

Because the patch is relative hardcoded, the .components.gen.js is inside the .nuxt folder and therefore useless.

CMD click

CMD click or alt click for windows redirects me to the .component.gen.js file instead of the original file.
Can I force it to directly open the original file??

Support for lazy load component

Hello, thank you for creating this package.
I wanted to say that this package has a problem that does not detect lazy load component, please fix this problem as well.

.components.gen.js

image

image

Bug - nested component index problem

There is a problem (in the case of components) that you have to write the Dialog in the file and not DialogIndex because when we want to load the Index Dialog we should not write DialogIndex because it creates an error.

This method is wrong.
image

The following method is correct.
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.