GithubHelp home page GithubHelp logo

sue71 / vuex-guardian Goto Github PK

View Code? Open in Web Editor NEW

This project forked from takefumi-yoshii/vuex-guardian

0.0 2.0 0.0 164 KB

Vuex type definitions generator by Compiler API.

JavaScript 2.24% TypeScript 97.76%

vuex-guardian's Introduction

vuex-guardian

Vuex had a problem with type definition. Without references, we can not enable type inference for type definitions. This tool was born to solve this problem by generating "Reference Types". This module is operated and used from CLI.

⚠️ Disclaimer

Currently this package is a beta version. And the usage environment assumes "Module Mode of Nuxt.js".

✅ Usage

All you need to do is download this package with npm and start the process. This process monitors the Store directory and generate "Reference Types" to the Vuex Modules defined there.

$ yarn install -D vuex-guardian
$ vuex-guardian

⚙ Setup

Create a file vuex-guardian.config.js at the root of your repository. This configuration file only specifies the store directory to be monitored and the output destination. 'distDir' and generated filed, should be included in .gitignore.

module.exports = {
  storeDir: "./store",
  distDir: "./types/vuex"
}

By default, this specification is applied. Please commit the configuration file if necessary.

📝 Example

Refer to the following repository for sample code using this tool.

vuex-guardian's People

Contributors

takefumi-yoshii avatar sue71 avatar y-temp4 avatar

Watchers

James Cloos avatar  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.