Giter VIP home page Giter VIP logo

vuex-yarn-workspaces-ide-test's Introduction

vuex-ide-test

Simple IDE (WebStorm, PhpStorm, IntelliJ) vue support testing with Yarn Workspaces.

Test support of Path Alias (@) and vuex hints.

Steps

  1. Init yarn yarn init
  2. Add workspaces config to package.json and create workspace1 dir.
  3. Create project with @vue/cli with babel+vuex features. vue create . in workspace1.
  4. Add ./src/lib/index.js for path alias testing
  5. Add ./store directory with simple store with modules and one TYPE CONSTANT
  6. Configure IDE webpack config path to ./node_modules/@vue/cli-service/webpack.config.js (Languages / Javascript / Webpack)
  7. Run serve npm run serve

File ./src/App.vue

  • Line 12: Path alias
    • Must find module (no "module is not installed")
    • Works
  • Line 32: Vuex map action from root with string array
    • Must work Go to definition and params hints (ctx, {paramN})
    • Works
  • Line 33: Vuex map action from module with string array
    • Must work Go to definition and params hints (ctx, {paramN})
    • Works
  • Line 34: Vuex map action from deep module with object mapping and string name
    • Must work Go to definition and params hints (ctx, {paramN})
    • Works
  • Line 35: Vuex map action from deep module with object mapping and TYPE CONSTANT name
    • Must work Go to definition and params hints (ctx, {paramN})
    • Doesnt works :(

Scripts

npm install # Project setup
npm run serve # Compiles and hot-reloads for development
npm run build # Compiles and minifies for production

Useful screens and data

Webpack settings in IDEA

Webpack Settings

Event log

Event Log)

resolve of webpack config

(See file in JSON)

Webpack Settings)

vuex-yarn-workspaces-ide-test's People

Contributors

shgkme avatar

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.