Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/luwes/wet-run
💦 Minimal static server, TAP test runner and conventional release flow
https://github.com/luwes/wet-run
cli command-line git github github-actions npm publish release semver server tap test-runner version
Last synced: about 1 month ago
JSON representation
💦 Minimal static server, TAP test runner and conventional release flow
- Host: GitHub
- URL: https://github.com/luwes/wet-run
- Owner: luwes
- Created: 2023-02-26T00:12:08.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-21T14:12:18.000Z (10 months ago)
- Last Synced: 2024-10-06T08:41:31.039Z (4 months ago)
- Topics: cli, command-line, git, github, github-actions, npm, publish, release, semver, server, tap, test-runner, version
- Language: JavaScript
- Homepage:
- Size: 159 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# 💦 Wet Run
[![npm version](https://img.shields.io/npm/v/wet-run?style=flat-square&color=success)](http://npmjs.org/wet-run)
[![Codecov](https://img.shields.io/codecov/c/github/luwes/wet-run?style=flat-square)](https://app.codecov.io/gh/luwes/wet-run)Minimal static server,
[TAP](https://testanything.org/) test runner and
[conventional](https://www.conventionalcommits.org/en/v1.0.0/) release flow
with few dependencies.```bash
npm i -D wet-run
```## Serve
Serve static files in current dir on port 8000. (powered by 🔥 [Hono](https://github.com/honojs/hono))
```bash
wet serve
```- Positional: ``
- Flags: `--port`, `--cors`, `--redirect`, `--livereload`, `--ssl-cert`,
`--ssl-key`, `--ssl-pass`, `--log-level`## Test Run
Run tests in a real browser on the `test/` path. (powered by 🎠[Playwright](https://github.com/microsoft/playwright/))
```bash
wet test
```- Positional: ``
- Flags: `--port`, `--cors`, `--redirect`, `--servedir`, `--browser`,
`--channel`, `--no-headless`, `--timeout`, `--coverage`, `--log-level`## Release
Create a new patch release with a conventional changelog and Github release.
```bash
wet release patch --changelog --github-release
```- Positional: `[ | major | minor | patch | premajor | preminor | prepatch | prerelease | from-git | from-package]`
- Flags: `--prerelease`, `--preid`, `--tag`, `--access`, `--provenance`, `--changelog`, `--github-release`, `--dry-run`, `--log-level`### Continuous deployment (CD)
Check [cd.yml](.github/workflows/cd.yml) for an example.
- Requires [`NODE_AUTH_TOKEN`](https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages#publishing-packages-to-the-npm-registry) for `npm publish`
- Requires [`CONVENTIONAL_GITHUB_RELEASER_TOKEN`](https://github.com/conventional-changelog/releaser-tools/tree/master/packages/conventional-github-releaser) for Github releases