0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-04 16:24:22 +01:00

Add a netlify npm script.

This commit is contained in:
XhmikosR 2019-02-15 19:14:05 +02:00
parent e7974e4519
commit 50efb699f6
2 changed files with 6 additions and 0 deletions

View File

@ -289,6 +289,11 @@ module.exports = function (grunt) {
incremental: false
},
docs: {},
netlify: {
options: {
raw: 'github: true\nbaseurl: ""'
}
},
github: {
options: {
raw: 'github: true'

View File

@ -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\"",