https://github.com/potato4d/vuex-map-purge
Convert Vuex map utils to computed / methods.
https://github.com/potato4d/vuex-map-purge
ast cli formatter vue vuejs vuex
Last synced: about 1 year ago
JSON representation
Convert Vuex map utils to computed / methods.
- Host: GitHub
- URL: https://github.com/potato4d/vuex-map-purge
- Owner: potato4d
- Created: 2020-07-23T05:39:21.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T13:30:06.000Z (over 3 years ago)
- Last Synced: 2025-03-29T00:04:43.378Z (about 1 year ago)
- Topics: ast, cli, formatter, vue, vuejs, vuex
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/vuex-map-purge
- Size: 563 KB
- Stars: 11
- Watchers: 1
- Forks: 2
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# vuex-map-purge
Convert Vuex map utils to computed / methods.
## Motivation
Vuex 4.0 fixes a problem that Generics had with the Store in the previous Vuex, making it possible to build a more type-safe system.
However, Vuex's mapXXX utility, which exists in Vuex, does not solve the type problem and hinders future type-safe coding.
As a result, we needed a tool to eliminate mapXXX from existing Vue.js projects as soon as possible.
## Installation
Install via Yarn / NPM.
```shell
$ yarn global add vuex-map-purge # or npm install -g vuex-map-purge
```
## Usage
```shell
$ vuex-map-purge './**/*.vue' # all project .vue files
$ vuex-map-purge ./path/to/file.vue # only single .vue file
```
## Licence
MIT