This repository is for sharing code between PINS projects.
It was originally set up to provide shared functionality between appeal-planning-service, back-office, and any subsequent services.
Each service is an NPM package.
From root run: make install
The packages for committing (Commitizen and Husky) are part of the service-common package.json. Therefore, run commits from root. Use:
npm run commit
...are all part of each individual service package.json
- Create a new directory in the services folder
- Copy the contents of ~/default-common-files/ to the new directory
- Change the name of default-package.json to package.json
- In the new package.json, populate the field name as @planning-inspectorate/:name
- In the new package.json, populate fields: description, repository: url, author
- Add keywords as necessary
- Make sure you use index.js as your entrypoint
- Add service src code
npm login
- Navigate to service
- `npm publish'