Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add npm scripts for simple task automation #124

Merged
merged 7 commits into from
Oct 19, 2018
Merged

Add npm scripts for simple task automation #124

merged 7 commits into from
Oct 19, 2018

Conversation

nickcernis
Copy link
Collaborator

@nickcernis nickcernis commented Oct 19, 2018

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 in style.css.
  • npm run makepot to regenerate the languages/genesis-sample.pot file.
  • npm run lint:css to generate a report of style violations for style.css.
  • npm run zip to create a genesis-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.

@nickcernis nickcernis mentioned this pull request Oct 19, 2018
package.json Outdated Show resolved Hide resolved
@nickcernis nickcernis merged commit 61d73e9 into develop Oct 19, 2018
@nickcernis nickcernis deleted the npm-scripts branch October 19, 2018 12:55
@nickcernis nickcernis mentioned this pull request Oct 29, 2018
@nickcernis nickcernis mentioned this pull request Nov 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants