This package is intended to be public on seek-oss.
To create an internal package,
run skuba init and select the private-npm-package template.
Next steps:
- Read SEEK's Open Source RFC.
- Create a new repository in the seek-oss GitHub organisation.
- Push local commits to the upstream GitHub branch.
- Configure GitHub repository settings.
- Keep dependencies up to date with Renovate; request installation in #open-source.
- Delete this checklist 😌.
Writes the module name to stdout. Thrilling stuff.
import { log } from '@seek/slowify';
log();- Node.js LTS
- Yarn 1.x
yarn installyarn test# Fix issues
yarn format
# Check for issues
yarn lint# Compile source
yarn build
# Review bundle
npm packThis package is published to the public npm registry with a GitHub Actions release workflow.
The workflow runs on select branches:
on:
push:
branches:
# add others as necessary
- beta
- master
# - alphaIt depends on this repo being hosted on seek-oss with appropriate access.
To set up this repo for publishing, follow the instructions in our OSS npm package guidance.
This package is published with semantic-release, which requires a particular commit format to manage semantic versioning.
You can run the interactive yarn commit command in place of git commit to generate a compliant commit title and message.
If you use the Squash and merge option on pull requests, take extra care to format the squashed commit in the GitHub UI before merging.
Commits to the master branch will be released with the latest tag,
which is the default used when running npm install or yarn install.
semantic-release prescribes a branch-based workflow for managing distribution tags.
You can push to other branches to manage betas, maintenance updates to prior major versions, and more.
Here are some branches that semantic-release supports by default:
| Git branch | npm dist-tag |
|---|---|
| master | latest |
| alpha | alpha |
| beta | beta |
| next | next |
| 1.x | release-1.x |
For more information, see the semantic-release docs on triggering a release.