@chialab/backbone
v2.5.5
Published
Models, Collections and Form helpers for JS apps.
Readme
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/backboneimport { ... } from '@chialab/backbone';Development
Build the project
Install the dependencies and run the build script:
$ yarn install
$ yarn buildThis will generate the ESM bundles in the dist folder, as well as the declaration files.
Test the project
Run the test script:
$ yarn testRelease
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"' > .envNow you are ready to run the release command:
$ yarn releaseLicense
Backbone is released under the MIT license.
