From 142af24018102b7b86566f46b0cfa121785b879e Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Tue, 5 Feb 2019 19:39:41 +0200 Subject: [PATCH] Add a `docs-build` script and make it the default. --- package.json | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index e6279543fc..adf9291a8c 100644 --- a/package.json +++ b/package.json @@ -66,9 +66,10 @@ "js-test-cloud": "cross-env BROWSER=true npm run js-test-karma", "lint": "npm-run-all --parallel js-lint css-lint", "coveralls": "shx cat js/coverage/lcov.info | coveralls", - "docs": "npm-run-all css-docs js-docs docs-compile docs-lint", - "docs-compile": "hugo --cleanDestinationDir", - "docs-production": "cross-env HUGO_ENV=production npm run docs-compile", + "docs": "npm-run-all css-docs js-docs docs-build docs-lint", + "docs-build": "hugo --cleanDestinationDir", + "docs-compile": "npm run docs-build", + "docs-production": "cross-env HUGO_ENV=production npm run docs-build", "docs-lint": "node build/vnu-jar.js", "predocs-serve": "npm-run-all css-copy js-copy", "docs-serve": "hugo server --port 9001 --disableFastRender --renderToDisk", @@ -79,7 +80,7 @@ "release-version": "node build/change-version.js", "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\"", "dist": "npm-run-all --parallel css js", - "test": "npm-run-all lint dist js-test docs-compile docs-lint bundlesize", + "test": "npm-run-all lint dist js-test docs-build docs-lint bundlesize", "watch": "npm-run-all --parallel watch-*", "watch-css-main": "nodemon --watch scss/ --ext scss --exec \"npm run css-main\"", "watch-css-docs": "nodemon --watch \"site/static/**/assets/scss/\" --ext scss --exec \"npm run css-docs\"",