Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael <michaelsite12@gmail.com>2017-09-15 13:37:34 +0300
committerXhmikosR <xhmikosr@gmail.com>2017-09-15 13:37:34 +0300
commit5951508898b1f92d04026c0038dfc3ba95fa0fdf (patch)
tree9f823d40b986512f889201e0b90b32cf4e7cf0a5 /package.json
parentf5368ae00852f114a6bf205afe67e2181ddb2e48 (diff)
Pre-cache key assets with Workboxjs. (#23533)
Diffstat (limited to 'package.json')
-rw-r--r--package.json6
1 files changed, 4 insertions, 2 deletions
diff --git a/package.json b/package.json
index 0abe315457..8ad281469a 100644
--- a/package.json
+++ b/package.json
@@ -44,10 +44,11 @@
"js-test-cloud": "ruby -r webrick -e \"s = WEBrick::HTTPServer.new(:Port => 3000, :DocumentRoot => Dir.pwd, :Logger => WEBrick::Log.new('/dev/null'), :AccessLog => []); trap('INT') { s.shutdown }; s.start\" & grunt saucelabs-qunit",
"docs": "npm-run-all docs-compile docs-lint",
"docs-lint": "htmllint --rc build/.htmllintrc _gh_pages/*.html _gh_pages/**/*.html js/tests/visual/*.html",
- "docs-compile": "bundle exec jekyll build",
+ "docs-compile": "bundle exec jekyll build && npm run docs-workbox-precache",
"docs-serve": "bundle exec jekyll serve",
"docs-github": "shx echo \"github: true\" > twbsconfig.yml && npm run docs-compile -- --config _config.yml,twbsconfig.yml && shx rm ./twbsconfig.yml",
"docs-upload-preview": "build/upload-preview.sh",
+ "docs-workbox-precache": "node build/workbox.js",
"maintenance-dependencies": "ncu -a -x jquery && npm update && bundle update && shx echo 'Manually update assets/js/vendor/*, js/tests/vendor/* and .travis.yml'",
"release-version": "node build/change-version.js",
"release-zip": "cd dist/ && zip -r9 bootstrap-$npm_package_version-dist.zip * && shx mv bootstrap-$npm_package_version-dist.zip ..",
@@ -99,7 +100,8 @@
"rollup-plugin-node-resolve": "^3.0.0",
"shelljs": "^0.7.8",
"shx": "^0.2.2",
- "uglify-js": "^3.0.24"
+ "uglify-js": "^3.0.24",
+ "workbox-build": "^2.0.1"
},
"engines": {
"node": ">=4"