@pouch/caa-engine
v2.0.2
Published
CAA engine
Downloads
23
Readme
CAA engine
Init project
- install Node v16 LTS
npm install
npx playwright install
- install browser engines for testing
Development
Run next commands in separate terminal windows/tabs (use Ctrl+C
to stop process):
npm run dev
- compilesrc
directory to use with test server + automatically re-compile on changesnpm run test-server
- run local test server to debug pages
Check test-server/README.md file for more information
Tests
npm run tests:unit
- run all unit testsnpm run tests:e2e
- run all e2e tests (test server runs automatically)npx playwright test e2e/adidas.e2e.ts
- run a single e2e test
Check e2e/README.md file for more information about e2e tests
Publishing new version to NPM
Prerequisites:
- create file
.npmrc
with publisher token (this file ignored by git)
Publishing:
- run
npm run build
to compile files; - run
npm version patch|minor|major
to increment the version using semver - run
npm publish --access public