From 4715d1664021e51e3a5724d1c89011426b29cd44 Mon Sep 17 00:00:00 2001 From: bowlingx Date: Wed, 4 Dec 2019 15:24:22 -0600 Subject: [PATCH] chore(gh-pages): publish github pages --- .circleci/config.yml | 2 ++ package.json | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ed3c355..84da181 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -49,6 +49,8 @@ jobs: - v1-dependencies- - run: yarn install - run: yarn semantic-release + - run: yarn build-storybook && yarn doc:html && yarn doc:json + - run: yarn doc:publish workflows: version: 2 diff --git a/package.json b/package.json index 87f281d..9318661 100644 --- a/package.json +++ b/package.json @@ -21,15 +21,15 @@ "test:unit": "jest --coverage", "cov:send": "codecov", "watch": "run-s clean build:main && run-p \"build:main -- -w\" \"test:unit -- --watch\"", - "doc": "run-s doc:html && open-cli build/docs/index.html", - "doc:html": "typedoc src/ --exclude \"**/+(__tests__|examples)/*\" --target ES6 --mode file --out build/docs", - "doc:json": "typedoc src/ --exclude \"**/+(__tests__|examples)/*\" --target ES6 --mode file --json build/docs/typedoc.json", + "doc": "run-s doc:html && open-cli build/docs/api/index.html", + "doc:html": "typedoc src/ --exclude \"**/+(__tests__|examples)/*\" --target ES6 --mode file --out build/docs/api", + "doc:json": "typedoc src/ --exclude \"**/+(__tests__|examples)/*\" --target ES6 --mode file --json build/docs/api/typedoc.json", "doc:publish": "gh-pages -m \"[ci skip] Updates\" -d build/docs", "clean": "trash build test", "preinstall": "node -e \"if(process.env.npm_execpath.indexOf('yarn') === -1) throw new Error('geschichte must be installed with Yarn: https://yarnpkg.com/')\"", "storybook": "start-storybook -p 6006", "prepublishOnly": "run-s build", - "build-storybook": "build-storybook" + "build-storybook": "build-storybook -o build/docs" }, "engines": { "node": ">=8.9"