From 50efb699f6e6fabc528aaad4c68b112fc365ca66 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Fri, 15 Feb 2019 19:14:05 +0200 Subject: [PATCH] Add a `netlify` npm script. --- Gruntfile.js | 5 +++++ package.json | 1 + 2 files changed, 6 insertions(+) diff --git a/Gruntfile.js b/Gruntfile.js index ccda9904e4..39ba49ada3 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -289,6 +289,11 @@ module.exports = function (grunt) { incremental: false }, docs: {}, + netlify: { + options: { + raw: 'github: true\nbaseurl: ""' + } + }, github: { options: { raw: 'github: true' diff --git a/package.json b/package.json index 94910dca5b..f3a6899b70 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "homepage": "https://getbootstrap.com/", "author": "Twitter, Inc.", "scripts": { + "netlify": "grunt dist docs-css docs-js copy:docs build-glyphicons-data build-customizer && npm run sri && grunt jekyll:netlify", "sri": "node grunt/generate-sri.js", "release": "grunt prep-release && npm run sri && npm run release-zip", "release-zip": "cross-env-shell \"shx rm -rf bootstrap-$npm_package_version-dist && shx cp -r dist/ bootstrap-$npm_package_version-dist && zip -r9 bootstrap-$npm_package_version-dist.zip bootstrap-$npm_package_version-dist && shx rm -rf bootstrap-$npm_package_version-dist\"",