postcss-tape

1.0.1 • Public • Published

PostCSS Tape

Quickly test a PostCSS plugin.

  1. Install this dependency to your project:

    npm install jonathantneal/postcss-tape
  2. Add the postcss-tape task to your package.json:

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

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

That’s it! 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

Package Sidebar

Install

npm i postcss-tape@1.0.1

Version

1.0.1

License

CC0-1.0

Last publish

Collaborators

  • jonathantneal