@graasp/sdk v4.9.0
Graasp SDK
This repository contains all shared utils and types for the Graasp ecosystem.
Installation
Run yarn to install the packages.
yarn
Testing
This project uses vitest as the test runner. It is fast, supports ESM and has an API similar to Jest (which was used previously).
To start the tests run:
yarn test
The tests will run in watch mode, meaning that when you edit a file, the tests in that file (or any test file depending on that file) will be re-run. This allows for a fast feedback loop.
Building
This package exposes a ESM and a CommonJS build as well as type declarations for Typescript.
The structure is as follows:
esm
contains the javascript files to use with ECMAScript Modules (ESM) it is built with thetsconfig.esm.json
file.cjs
contains the javascript files to use with CommonJS it is built with thetsconfig.cjs.json
file.types
contains the type declarations for Typescript it is built with thetsconfig.types.json
file.
The last bit of the build process is to add a single line package.json
file in esm
and cjs
with the correct value for the type
key (commonjs
for cjs
and module
for esm
).
Contributors
11 days ago
13 days ago
17 days ago
19 days ago
23 days ago
23 days ago
24 days ago
27 days ago
1 month ago
1 month ago
1 month ago
1 month ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
4 months ago
4 months ago
4 months ago
9 months ago
7 months ago
7 months ago
7 months ago
8 months ago
8 months ago
8 months ago
8 months ago
10 months ago
9 months ago
9 months ago
10 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
7 months ago
7 months ago
7 months ago
11 months ago
11 months ago
11 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago