Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Commit

Permalink
add README and test script hook
Browse files Browse the repository at this point in the history
  • Loading branch information
borisovg committed May 15, 2024
1 parent 06f897d commit 4c27479
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# core-packages

This is a repository for the Node.js accelerator packages PoC.
The idea is to build a set of packages that encapsulate backend stack and operational plumbing.

Please see [this post](https://gir.me.uk/posts/low-boilerplate-nodejs-services.html) for more details on the philosophy behind this approach.

## Repository structure

This repository is presented as a PNPM workspace.

```
├── .github
│   └── workflows # CI scripts
├── examples # Example apps
│   └── bookmarks
└── packages # NPM packages
├── core
├── core-express
├── core-mongo
└── core-mongo-express
```

The packages were intentionally made quite granular so as to demonstrate the possibility of mixing and matching technologies for different customer requirements.
As an extension of the PoC we could, for example, add packages for Fastify and PostgreSQL and combinations.

## Testing

Run `pnpm test` at the root level (for all packages) or in the individual package directories.

## Publishing packages to NPM

Please run [this workflow](https://github.com/101-Ways/core-packages/actions/workflows/publish.yaml) to publish updates.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"private": true,
"scripts": {
"test": "make test",
"test:all": "make test"
},
"devDependencies": {
"@types/mocha": "^10.0.6",
"@types/node": "^20.12.7",
Expand Down

0 comments on commit 4c27479

Please sign in to comment.