README
Proteins • A primer for JavaScript libraries and frameworks development.
Install
Add as a dependency of a Node project:
$ npm install @chialab/proteins
$ yarn add @chialab/proteins
Use via cdn:
<script type="text/javascript" src="https://unpkg.com/@chialab/proteins"></script>
Development
Build the project
Install the dependencies and run the build
script:
$ npm run install
$ npm run build
This will generate the UMD and ESM bundles in the dist
folder, as well as the declaration file.
Test the project
Run the test
script:
$ npm run 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:
$ npm run release
License
Proteins is released under the MIT license.