Skip to content
Permalink
Browse files

Added Sub-resources basic integrity generation

  • Loading branch information...
LaurentGoderre committed Dec 5, 2016
1 parent 63ff298 commit 9991549cadf660184936c64f8894d6161222ea6c
Showing with 22 additions and 0 deletions.
  1. +21 −0 Gruntfile.coffee
  2. +1 −0 package.json
@@ -56,6 +56,7 @@ module.exports = (grunt) ->
->
if process.env.TRAVIS_PULL_REQUEST is "false" and process.env.DIST_REPO isnt `undefined` and ( process.env.TRAVIS_TAG isnt "" or process.env.TRAVIS_BRANCH is "master" )
grunt.task.run [
"sri"
"copy:deploy"
"gh-pages:travis"
"gh-pages:travis_cdn"
@@ -1383,6 +1384,26 @@ module.exports = (grunt) ->
message: "<%= grunt.config('gh-pages.travis.options.message') %>"
silent: true

sri:
options:
pretty: true
wet_boew:
options:
dest: "<%= coreDist %>/payload.json"
cwd: "<%= coreDist %>"
src: [
"{js,css}/**/*.{js,css}"
]
expand: true
theme_wet_boew:
options:
dest: "<%= themeDist %>/payload.json"
cwd: "<%= themeDist %>"
src: [
"{js,css}/*.{js,css}"
]
expand: true

checkDependencies:
all:
options:
@@ -58,6 +58,7 @@
"grunt-sass": "^1.0.0",
"grunt-sass-lint": "^0.2.0",
"grunt-saucelabs": "^9.0.0",
"grunt-sri": "^0.2.0",
"grunt-wet-boew-postbuild": "^0.1.3",
"grunt-wget": "~0.1.0",
"load-grunt-tasks": "^3.2.0",

0 comments on commit 9991549

Please sign in to comment.
You can’t perform that action at this time.