]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Move the workbox build to a `postdocs-compile` script. (#24106)
authorXhmikosR <xhmikosr@gmail.com>
Tue, 26 Sep 2017 10:08:02 +0000 (13:08 +0300)
committerGitHub <noreply@github.com>
Tue, 26 Sep 2017 10:08:02 +0000 (13:08 +0300)
This way, it's run for us automatically after `docs-compile`.

package.json

index df0894d6e45e59f4bba24fb682643bab3126f944..6cced3006f3093fbb5951eda2b773a2c41d269a3 100644 (file)
@@ -44,7 +44,8 @@
     "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 && npm run docs-workbox-precache",
+    "docs-compile": "bundle exec jekyll build",
+    "postdocs-compile": "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",