czapp-shared
v1.0.13
Published
This is a shared library for Czapp projects. It contains common code that is used across multiple projects.
Downloads
163
Readme
Czapp Shared
This is a shared library for Czapp projects. It contains common types and utils that is are needed by both client and server repositories.
Installation
To install:
npm install czapp-shared
To use
import { MyType } from 'czapp-shared';
Development
To link the local copy of the package to another project, first in the root of the czapp-shared project run:
npm link
... then in the root of the project you want to link to run:
npm link czapp-shared
This will create a symlink in the node_modules folder of the project you want to link to that points to the local copy of the package.
To run the project in watch mode:
npm run watch
To build the project (generate the artifacts):
To build:
```bash
npm run build
To run unit tests:
npm run test:unit
To release new version, and types and then run this...
// first build the package which generates the artifacts
npm run build
// then bump the version (bump version, commit, tag, push):
npm run release:bump
// then publish the package to npm so that it can be consumed by other projects
npm publish