This is a babel-plugin-tester fork that serves as my personal development environment for features of the upstream project I'm working on. Go there for documentation and to report any issues or make any PRs.
As a personal potentially-unstable fork, you should not install this version of babel-plugin-tester unless specifically instructed.
NEVER install this project and babel-plugin-tester at the same time!
npm install --save-dev https://xunn.at/babel-plugin-tester
If you want to use a specific version of babel-plugin-tester, you can specify its release tag (without the prefix):
npm install --save-dev https://xunn.at/babel-plugin-tester@10.1.0
Any valid commit-ish can be specified after the "@", not just version tags.
If you don't want to rely on xunn.at, you can also install the package from GitHub directly.
Being a temporary fork, this project is not published as a package, so you
cannot do npm install ...
.
This is because, to be an actual drop in replacement for babel-plugin-tester,
this project needs to use the name "babel-plugin-tester" (e.g. to satisfy peer
dependencies). Of course, only the real babel-plugin-tester can be installed
as "babel-plugin-tester", but we can get around that by using
"https://xunn.at/babel-plugin-tester"
in lieu of a version in package.json
:
{
...
"devDependencies": {
...
"babel-plugin-tester": "https://xunn.at/babel-plugin-tester"
...
}
}
This is what the above command does for you automatically.
This fork is structured to be automatically rebased onto upstream releases when they occur. To facilitate this, care must be taken when committing changes to this repo. Specifically:
- The HEAD of the
master
branch MUST ALWAYS be therelease: bump version
commit. This allows the upstream synchronization script to do its job. - All changes should happen on the
master
branch. - Changes should be added to existing commits via
git commit --amend
and then force pushed viagit push --force
. If amending a pre-existing commit is not desirable for whatever reason, the new commit should be rebased under therelease: bump version
commit. - Never make custom releases or mess with the fork-specific git tags. These are automatically managed by the upstream synchronization script.
For example, suppose we updated the README.md
file and want to commit the
changes:
git add README.md
git commit -m mergeme
git rebase -S -i HEAD~5 --no-verify
# Either make the mergeme commit a "fixup" to a pre-existing commit or
# reposition it to occur below HEAD
git push --force
Any changes between master
and the latest upstream release will be minted into
a new local release only after upstream makes a new release. Until then, any
changes will only be visible to those utilizing the master
branch directly.