postcss-tape

2.0.0 • Public • Published

PostCSS Tape PostCSS

NPM Version Build Status Licensing Changelog Gitter Chat

PostCSS Tape lets you quickly test PostCSS plugins.

  1. Install this dependency to your project:

    npm install postcss-tape --save-dev
  2. Add the postcss-tape task to your package.json:

    {
       "scripts": {
         "test": "postcss-tape"
       }
    }
  3. Add tests to your .tape.js file:

    module.exports = {
      'postcss-my-plugin': {
        'basic': {
          message: 'supports basic usage'
        }
      }
    };

That’s it! Empty tests will be auto-generated. Now you can use the tape task:

npm run tape

Options

Options may be passed through package.json using postcssConfig:

{
  "postcssConfig": {
    "plugin": "path/to/plugin.js",
    "config": "path/to/.tape.js",
    "fixtures": "path/to/cssdir"
  }
}

Options may be passed through arguments:

postcss-tape --plugin=path/to/plugin.js --config=path/to/.tape.js

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
6.0.12,011latest
3.0.04rc1

Version History

VersionDownloads (Last 7 Days)Published
6.0.12,011
6.0.03
5.0.21,682
5.0.13
5.0.011
4.0.06
3.0.0-rc.23
3.0.04
2.2.057
2.1.03
2.0.13
2.0.02
1.3.13
1.3.02
1.2.22
1.2.13
1.2.02
1.1.02
1.0.13
1.0.03

Package Sidebar

Install

npm i postcss-tape@2.0.0

Version

2.0.0

License

CC0-1.0

Last publish

Collaborators

  • jonathantneal