Skip to content

hansogj/package-test-utils

Repository files navigation

example workflow

PACKAGE-TEST-UTILS

Test suite for hansogj npm packages

Installation

Run pnpm i --frozen-lockfile to install dependencies for utility package, and then pnpm -r build to build all workspaces Each folder

apps/
├── commonjs
├── javascript
└── typescript

contains scripts and html-templates needed to verify the different packages pulled into this util in the dependencies block from package.json.

Run

Commands pnpm web-cs serve && pnpm web-js serve && pnpm web-ts serve runs the webpack server for commonjs and typescript, respectively. Likewise, pnpm web-cjs run test:watch && pnpm web-ts run test:watch will run tests for the two modes.

To verify the packages open in you favorite browser

Docker

There is also a Dockerfile and a docker-compose.yml that will run the three servers in separate containers. Just wind upp the whole project

- [http://localhost:4114/](http://localhost:4114/)
- [http://localhost:3113/](http://localhost:3113/)
- [http://localhost:2112/](http://localhost:2112/)

```bash
pnpm run clean // NB! important to flush cache so that old version numbers not listed
docker build .
docker container prune && docker compose up

About

Just a simple way to verify that my npm packages works. Ease the process of upgrading and dependency checks

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors