Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

PostCSS Tape for csstools/postcss-plugins

Internal package

See .tape.mjs in the base plugin for a minimal example.

import postcssTape from '../../packages/postcss-tape/dist/index.mjs';
import plugin from '@csstools/postcss-base-plugin';

postcssTape(plugin)({
	basic: {
		message: "supports basic usage",
	},
	'basic:color': {
		message: "supports { color: '<a color>' }",
		options: {
			color: 'purple'
		}
	},
	example: {
		message: "minimal example",
	},
});

Browse the source code and tests here or see tests in plugins for more usage details.


After node 20 is released do a find/replace to migrate fully to workspaces :

  • import postcssTape from '../../packages/postcss-tape/dist/index.mjs';
  • import postcssTape from '@csstools/postcss-tape';

Then add @csstools/postcss-tape the each package.json as a dev dependency.