diff options
| author | XhmikosR <[email protected]> | 2017-08-26 12:59:04 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-08-26 12:59:04 +0300 |
| commit | 8876334b7fa8d3a042b927553c68754e4bcdd48c (patch) | |
| tree | c2eeb6f210cabf4a14767a1e990070f0b2f93fba | |
| parent | 9612830701211d757ff95ceccbb494fd2e7ee17e (diff) | |
| download | bootstrap-8876334b7fa8d3a042b927553c68754e4bcdd48c.tar.xz bootstrap-8876334b7fa8d3a042b927553c68754e4bcdd48c.zip | |
Fix `npm run docs-github` script. (#23688)
`$npm_config_tmp` is a non-existent variable.
Also, use double quotes since single ones don't work.
Finally, git ignore the temp file.
| -rw-r--r-- | .gitignore | 3 | ||||
| -rw-r--r-- | package.json | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore index 1e00d3dd4..b78c3a0fb 100644 --- a/.gitignore +++ b/.gitignore @@ -44,8 +44,9 @@ scss-lint-report.xml # grunt-contrib-sass cache .sass-cache -# Jekyll metadata +# Jekyll metadata and extra config file for `github` script docs/.jekyll-metadata +twbsconfig.yml # Folders to ignore bower_components diff --git a/package.json b/package.json index 92ec1b3aa..e0885bd3d 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "docs-lint": "htmllint --rc build/.htmllintrc _gh_pages/*.html _gh_pages/**/*.html js/tests/visual/*.html", "docs-compile": "bundle exec jekyll build", "docs-serve": "bundle exec jekyll serve", - "docs-github": "shx echo 'github: true' > $npm_config_tmp/twbsconfig.yml && npm run docs-compile -- --config _config.yml,$npm_config_tmp/twbsconfig.yml && shx rm $npm_config_tmp/twbsconfig.yml", + "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", "maintenance-dependencies": "ncu -a -x jquery && npm update && bundle update && shx echo 'Manually update assets/js/vendor/*, js/tests/vendor/*, bower.json and .travis.yml'", "release-version": "node build/change-version.js", |
