Skip to content

Commit

Permalink
docs: Clarify how to use sri-history in sri-update.js (dequelabs#539)
Browse files Browse the repository at this point in the history
* docs: Clarify how to use sri-history in sri-update.js

* fix: Run sri-update in npm release script

* fix: allow publishing w/o sri-update --validate

* docs: update comment for sri-history

* fix: Remove sri-update from npm run release
  • Loading branch information
WilcoFiers authored Oct 31, 2017
1 parent 9c8ca16 commit 15065f7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions build/sri-update.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* SRI Update will update the sri-history.json file
* In the project root. The sri-history.json file contains
* SRI hashes of each released version. This can be used
* to validate that something is a known axe-core source
* file.
*
* When running `npm run release`, this script will execute and
* update sri-history.json with the SRIs of axe{.*}.js.
*/
var path = require('path');
var fs = require('fs');
var sriToolbox = require("sri-toolbox");
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
"build": "grunt",
"test": "grunt test",
"test-fast": "grunt test-fast",
"version": "node build/sri-update",
"prepublishOnly": "grunt build && node build/sri-update --validate",
"version": "echo \"use 'npm run release' to bump axe-core version\" && exit 1",
"prepublishOnly": "grunt build",
"postinstall": "node build/utils/postinstall.js",
"release": "standard-version"
},
Expand Down

0 comments on commit 15065f7

Please sign in to comment.