@chialab/backbone

Models, Collections and Form helpers for JS apps.

Usage no npm install needed!

<script type="module">
  import chialabBackbone from 'https://cdn.skypack.dev/@chialab/backbone';
</script>

README

Backbone • Models, Collections and Form helpers for JS apps.

NPM

Although it shares the same purpose, this repository has nothing to do with the more famous BackboneJS library.


Get the library

Usage via unpkg.com as ES6 module:

import { ... } from 'https://unpkg.com/@chialab/backbone?module';

Install via NPM:

$ npm i @chialab/backbone
$ yarn add @chialab/backbone
import { ... } from '@chialab/backbone';

Development

Build status codecov

Build the project

Install the dependencies and run the build script:

$ yarn install
$ yarn build

This will generate the ESM bundles in the dist folder, as well as the declaration files.

Test the project

Run the test script:

$ yarn test

Release

The release script uses Semantic Release to update package version, create a Github release and publish to the NPM registry.

An environment variable named GH_TOKEN with a generated Github Access Token needs to be defined in a local .env file.

$ echo 'export GH_TOKEN="abcxyz"' > .env

Now you are ready to run the release command:

$ yarn release

License

Backbone is released under the MIT license.