Skip to content
This repository was archived by the owner on Jan 22, 2023. It is now read-only.

Raiondesu/Tuex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ac7e20e · Jan 22, 2023
Apr 16, 2018
Jan 14, 2018
Jan 15, 2018
Jan 15, 2018
Jan 8, 2018
Jan 11, 2018
Apr 16, 2018
Jan 11, 2018
Jan 7, 2018
Jan 22, 2023
Jan 13, 2018
Jan 12, 2018
Jan 12, 2018
Jan 15, 2018
Jan 15, 2018
Jan 14, 2018

Repository files navigation

DEPRECATED in favor of vuse-rx

Tuex (beta)

A simpler Vuex alternative written in TypeScript.

Travis branch Codacy branch grade size size npm

(TypeScript + Vuex) - Complexity = Tuex

Tuex is a reactive centralized state management library for Vue.js. It takes heavy inspiration from the Flux pattern (especially Vuex).

The main goal of Tuex is to make state-management less complex for small-scale apps, while also keeping the state flexibile and scalabile.

npm install tuex --save
# or
https://unpkg.com/tuex
// imports or scripts
...
Vue.use(Tuex);

const TuexStore = new Tuex.Store({
  num: 0,

  increase(amount) {
    this.num += amount;
  }
});
...
// Vue component
...
  created() {
    this.$store.increase(10);
    console.log(this.$store.num);
    // => 10

    this.$store.num = -1;
    console.log(this.$store.num);
    // => -1
  }
...