1.0.1 • Published 9 years ago
posthtml-tape v1.0.1
PostHTML Tape
PostHTML Tape lets you quickly test PostHTML plugins.
Install this dependency to your project:
npm install --save-dev posthtml-tapeAdd the
posthtml-tapetask to yourpackage.json:{ "scripts": { "tape": "posthtml-tape" } }Add tests to your
.tape.jsfile:module.exports = { 'posthtml-my-plugin': { 'basic': { message: 'supports basic usage' } } };
That’s it! Now you can use the tape task:
npm run tapeOptions
Options may be passed through package.json using posthtmlConfig:
{
"posthtmlConfig": {
"plugin": "path/to/plugin.js",
"config": "path/to/.tape.js",
"fixtures": "path/to/htmldir"
}
}Options may be passed through arguments:
posthtml-tape --plugin=path/to/plugin.js --config=path/to/.tape.js