Helpers
The @churchapps/helpers package provides base utilities used by all ChurchApps projects, both frontend and backend. It is framework-agnostic and includes common helpers such as DateHelper, ApiHelper, CurrencyHelper, and other shared utilities.
Before You Begin
- Install Node.js and Git -- see Prerequisites
- Familiarize yourself with the npm link workflow for local development
Setup for Local Development
-
Clone the repository:
git clone https://github.com/ChurchApps/Helpers.git -
Install dependencies:
cd Helpers && npm install -
Build the package (compiles TypeScript to
dist/):npm run build -
Make it available for local linking:
npm link
You can then link it into any consuming project:
cd ../YourProject && npm link @churchapps/helpers
Publishing
To publish a new version to npm:
-
Update the version in
package.json -
Publish:
npm publish --access=public
Warnung
Since this package is used by every ChurchApps project, changes here have a wide impact. Test thoroughly with npm link in at least one consuming API and one consuming web app before publishing.
Related Articles
- ApiHelper -- Server-side utilities that depend on this package
- AppHelper -- React components that depend on this package
- Shared Libraries Overview --
npm linkworkflow and package overview