@blackbaud/skyux-builder-resource-linter

CLI extension for skyux builder to manage resource files.

Usage no npm install needed!

<script type="module">
  import blackbaudSkyuxBuilderResourceLinter from 'https://cdn.skypack.dev/@blackbaud/skyux-builder-resource-linter';
</script>

README

Skyux Resource Linter

This command lints the resource files in a SKYUX spa. It determines if there are any unused resource files and if there are any resource keys referenced that don't exist in a resource file.

Installation

npm install --save-dev @blackbaud/skyux-builder-resource-linter

Use

skyux lint-resources

Glossary

  • Missing keys - Keys that were determined to be used somewhere in the application but that don't have a matching entry in a resource file.
  • Potentially Unused Keys - Keys whose use could not be determined but that might still be required by the application. Manually verify that the keys are not used before removal.
  • Non-standard Keys - Keys present in a method that consumes a resource key but that appear to be a reference to the key rather than the key itself.

Development

Testing

npm install -g jasmine
jasmine --config=jasmine.json