You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build: Publish machine-readable file list and SRI data to resources/
Let "wordpress-deploy" upload this to the site, which the gw-resources
plugin exposes via addresses like <https://releases.jquery.com/resources/foo>.
See <https://github.com/jquery/api.jquery.com/> for an example of this.
Local test plan:
```
nobody$ npm ci
nobody$ cp config-sample.json config.json
nobody$ ./node_modules/.bin/grunt sri
nobody$ less resources/sri-directives.json
{"@cdn/color/2.2.0/jquery.color.js":{"hashes":{"sha256":"gvMJWDH...
nobody$ ./node_modules/.bin/grunt build-index build-resources
nobody$ less dist/wordpress/resources/sri-directives.json
{"@cdn/color/2.2.0/jquery.color.js":{"hashes":{"sha256":"gvMJWDH...
nobody$ less dist/wordpress/resources/cdn.json
{ "jquery": [ [ "3", { "latestStable": {
"filename": "jquery-3.6.0.js", ...
```
Closes#40.
0 commit comments