Template for authoring PostHTML plugins in TypeScript.
Inspired by the posthtml-plugin-boilerplate, this template is used to develop and build PostHTML plugins with TypeScript.
The posthtml-plugin-boilerplate
contains an excellent sample README to describe and document a plugin.
Don't forget to update the changelog for each release published to the npm registry.
Runs unit tests using tape as a test runner.
Runs all tests in watch mode.
Builds the plugin for production.
When publishing your plugin for the first time, be sure to update the homepage
, repository
and bugs
fields in the package.json
. Login as your npm user and run the following:
yarn publish
# OR
npm publish
Update the relevant publishing-related fields in package.json.
{
"repository": {
"type": "git",
"url": "https://github.com/{USER}/posthtml-plugin-template.git"
},
"homepage": "https://github.com/{USER}/posthtml-plugin-template",
"keywords": ["posthtml", "posthtml plugin", "plugin"],
"bugs": "https://github.com/{USER}/posthtml-plugin-template/issues"
}