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

Installation

Alexey edited this page Jan 14, 2018 · 7 revisions

Direct Download / CDN

https://unpkg.com/tuex

Unpkg.com provides NPM-based CDN links. The above link will always point to the latest Tuex release on NPM.

You can also use a specific version/tag via URLs like https://unpkg.com/tuex@0.3.0

NPM

npm install tuex --save

Or

npm i -S tuex

Yarn

yarn add tuex

You must explicitly install Tuex via Vue.use() before utilizing it:

Vue.use(Tuex);

ECMAScript versions & TypeScript

If using ES5 or commonjs, Tuex should be imported as follows:

var Tuex = require('Tuex');
// OR
var Tuex = require('Tuex/cjs');

ES6+/ES2015+ accepts both default import and precise one:

import Tuex from 'tuex';
// OR
import Tuex from 'tuex/esm';

TypeScript supports types only with default imports:

import Tuex from 'tuex';