JSPM

fluidtechglobal-vuex-cli

1.1.52
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q46470F
  • License ISC

This package is meant to ease vue development especially when making the services that connect to the backend. It is still in development and more updates are to come.

Package Exports

  • fluidtechglobal-vuex-cli

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (fluidtechglobal-vuex-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

#FLUID TECH GLOBAL VUEX CLI

###Installation npm i -g fluidtechglobal-vuex-cli

Creating the VUEX module store file

Create a "vuex" folder in the following path

    /src/vuex
    

Then run

    vuecli -s
    

The above command will create a file that looks like below:

    import Vue from 'vue'
    import Vuex from 'vuex'
    
    Vue.config.productionTip = false
    Vue.use(Vuex)
    Vue.config.debug = true
    
    const debug = process.env.NODE_ENV !== 'production'
    
    export default new Vuex.Store({
      modules: {
    
      },
      strict: debug
    })
    

Creating Vuex files.

A standard vuex service contains a folder structure as follows:

    -folder-name
        -actions.js
        -mutations.js
        -store.js
        -url.js
        

The command below will create the folder and the files in the current directory run in.

    vuecli -f