Add npm scripts for simple task automation #124
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds npm scripts based on @GaryJones's work in Genesis (with small alterations to the
makepot.js
script for better reporting of the outcome).Designed to address #123 so we don't have to manually update vendor prefixes in
style.css
, but this also includes other scripts that will save some time:npm run autoprefixer
to add and remove vendor prefixes instyle.css
.npm run makepot
to regenerate thelanguages/genesis-sample.pot
file.npm run lint:css
to generate a report of style violations forstyle.css
.npm run zip
to create agenesis-sample.zip
of the current branch that excludes all development files.I've documented how to use these scripts in the updated readme.md.
The
style.css
is unchanged for this PR. If we're happy to add the scripts I'll merge this and lint/autoprefix the stylesheet separately once #121 is also merged.