1.0.39 • Published 4 years ago

@sivrad/matrix v1.0.39

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Installation

yarn add @sivrad/matrix

Usage

Create Matrix Instance

// Import Matrix from this package.
import { Matrix } from '@sivrad/matrix';

// Create an instance and pass all the collections.
const mtx = new Matrix([exampleCollection]);

Get Collection

console.log(mtx.getCollection('example'));

Get a Type

console.log(mtx.getType('example.ExampleThing'));

The rest of this is meant to be used by generated code with the collection-tools package.

Contributing

These are the steps to contribute to the Matrix Package.

Post Git Clone

Install Dependencies

Install node dependencies with yarn.

yarn

Generate Internal Types

This generates internal types from the JSON schemas from this repo.

yarn generate-types

Building the Package

This script will build the package and transpile the code to Javascript.

yarn build

Additionally, you can just build the src/types/* files with:

yarn build-types

This is usefull if you don't want to transpile into Javascript every time you change something.

1.0.39

4 years ago

1.0.38

4 years ago

1.0.37

4 years ago

1.0.26

4 years ago

1.0.24

4 years ago

1.0.23

4 years ago

1.0.29

4 years ago

1.0.28

4 years ago

1.0.27

4 years ago

1.0.33

4 years ago

1.0.32

4 years ago

1.0.31

4 years ago

1.0.30

4 years ago

1.0.36

4 years ago

1.0.35

4 years ago

1.0.34

4 years ago

1.0.22

4 years ago

1.0.19

4 years ago

1.0.18

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.21

4 years ago

1.0.20

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago