Detective to find dependents of CSS (PostCSS dialect)
npm install detective-postcss
 
> Find the dependencies of a CSS file (PostCSS dialect)
Supports @import and @value ... from.
``sh`
npm install postcss detective-postcss
It's the CSS (PostCSS dialect) counterpart to detective, detective-amd, detective-es6, detective-sass, detective-scss.
- The AST is generated using postcss and postcss-values-parser.
`js
const fs = require('fs');
const detective = require('detective-postcss');
const content = fs.readFileSync('styles.css', 'utf8');
// list of imported file names (ex: 'bla.css', 'foo.css', etc.)
const dependencies = detective(content);
// or to also detect any url() references to images, fonts, etc.
const allDependencies = detective(content, { url: true });
`
- Bump the version of package.json to a meaningful version for the changes since the last release (we follow semver).main
- To do a dry-run of the release and what would go out in the package you can manually execute the npm-publish workflow on the branch. It will do a dry-run publish (not actually publish the new version).vX.X.X
- Draft a new release in the github project - please use a tag named (where X.X.X is the new to-be-releases semver of the package - please add as many detail as possible to the release description.Publish` the release. Publishing will trigger the npm-publish workflow on the tag and do the actual publish to npm.
- Once you're ready,