npm i -D @haeley/template
@haeley/template is a template repository, developed and intended for haeley
real-time rendering framework.
- Clone or copy this repository.
- If coveralls should be integrated (required for haeley projects), a
COVERALLS_REPO_TOKEN
is required in order to have the nyc coverage results be reported to coverall during the gh test action (.github/workflows/test.yml
) - Replace all occurences of
template
orhaeley-template
with the new module name. - Since git repository information is used for selfreporting the modules version (
about.ts
), at least one commit is required in order to have various scripts (e.g.,build
oderbuild:dev
) work. - Note: we use gh setup-node@v2 action which supports caching for npm. For this to work, the
package-lock.json
must be part of the repository. The hash of this file is used as a cache reference. - If everything is setup, try re-run the last action (which might fail the first time, if the coveralls secret was added after commiting the gh action).
optional: Integration of codefactor: just add the repository... and use the following 'ignore pattern'.:
Settings -> Ignore Files -> Exclude Pattern:
vite.config.ts
.github/**
tests/**
- Log in to your npm account (check with
npm whoami
) usingnpm login
- Initialize the haeley scope (manually by configuring the package, or using
npm init --scope=haeley
) - Commit everything, merge everything, make sure everything works!
- Decide on required semantic! version change:
npm version patch
,npm version minor
, ornpm version major
- Publish using
npm publish --access public