- Fixes error caused by Literal nodes in Stylus
- Adds
node_modules
as default tooptions.ignoreFiles
- Checks Stylus directly rather than the CSS it creates
- Replaced Jade with Pug
- Reports column numbers for locations found in Pug
- Remove shrinkwrap
- Refactored to remove unneeded Pug dependencies
- Update dependencies to make use of new pug-lexer structure
- Having a .stylinpugrc file in the working directory is now optional
- Improved performance of main
process
function
- Return correct status code when unused or blacklisted classes are found via CLI
- Tidied up package using
.npmignore
- Added support for directives via comments in Stylus and Pug files
- Fixed issues where setting
options.config
incorrectly setoptions.cwd
- CLI not supports a catch all argument e.g.
stylinpug .
to find all Stylus and Pug files in the current working directory - Current working directory can now be passed to the API and CLI via
options.cwd
and-C, --chdir
respectively - Success messages in
results.report
and CLI output are now hidden by default and are only exposed whenoptions.verbose: true
or-v, --verbose
are passed to the API or CLI respectively - Errors are now always reported irrespective of whether verbose output is enabled or not
- Line number are now reported for classes found in Pug
#[]
syntax blocks
- File name patterns can now be added to
options.ignoreFiles
to whitelist all classes found in those files - CLI support
- Line numbers are now reported for nested classes in .pug files
- Unhandled errors in Stylus and Pug files are now more helpfully returned
- The use of Pug tag interpolation no longer throws errors, but line number are still not reported
- 100% test coverage
- File names can now be added to
options.stylusWhitelist
andoptions.pugWhitelist
to whitelist all classes found in those files
- Only parse source map once per Stylus file, rather than on ever rule found in the stylesheet.
- Paths in
results
where source maps are used are now reported relative to the location of the.stylinpugrc
file
- Pass file path to
pug-lexer
for better debugging
- Use source map to report location of Stylus classes
- Dedupe file locations that are on the same line in
results.report
- Improve format of
results.report
to include file names and line numbers - Stylus classes arrays returned in callback now contains list of file locations and line numbers
- Add support for comments in
.stylinpugrc
via JSON.minify()
- Add support for loading options via
.stylinpugrc
file
- Stylus class parsing now finds classes in media queries
- Whitelisting and Blacklisting support
- Parsing of Pug classes found in ternary operators and other JavaScript logic lines found in Pug files
- Class pattern matching via minimatch