Project Status
Bundle Sizes
Versions
This is a mono-repo for all NodeJS related packages used throughout other AIR projects. This repository is managed by Lerna. Each package has its own subfolder in the packages
folder, you can easily create a new package with the lerna create
command.
Please see Lerna and working on air-node-packages on the air-dev repo
To get autocompletion for Lerna follow these steps:
- Run this:
git clone https://github.com/favware/zsh-lerna ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-lerna
- Add
zsh-lerna
in your~/.zshrc
:
plugins=(… zsh-lerna)
- Reload
~/.zshrc
or reload your terminal
Run yarn lint
from repository root
Run yarn test
from repository root
To easily update failing snapshots for webcomponents run this command from repository root: yarn test:web
Run yarn build
from repository root.
If it fails, try running yarn clean
, yarn
, and yarn pre-build
before. This will clean up install and build files.
It is important webcomponents is build before building all others.
- Run
yarn build
to ensure you're about to publish all latest versions. This repo has TypeScript code that needs to be compiled to JavaScript before it can be published! - Prepare a git commit for your changes. But instead of using
git push
to finish the commit, go to the next step usinglerna publish
. - Run
lerna publish
to start the publishing process. This will publish packages to NPM and commit the change to github.
- Go to GitHub repository -> releases: https://github.com/RWS-NL/air-node-packages/releases.
- Delete any tags created by the publish script.
- Delete the same tags locally:
git tag -d <name_of_tag> [...<name_of_other_tag>]
. - Reset your HEAD to the commit before the publish.
tig
to find commit hash.git checkout <commit_hash>
.
- Remove the failed commit with
git push --force
. - Fix the issues.
- Run
yarn build
to ensure your fixes fix everything. - Re-run the publish process as described above.
Run yarn pre-build
. This will compile all typescript files and create dist folders.
Check out the docs on github pages