From 0896c8469ee1d018457aec04cfeace05d61326da Mon Sep 17 00:00:00 2001 From: novlan1 <1576271227@qq.com> Date: Sat, 24 Sep 2022 16:31:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96travis?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .travis.yml | 1 + generateDocs.sh | 2 +- package.json | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index ad1b0ad4..87e3f70d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,7 @@ before_script: - npm install script: - npm run test +- npm run docs:gen after_success: - cd $TRAVIS_BUILD_DIR - chmod +x generateDocs.sh diff --git a/generateDocs.sh b/generateDocs.sh index ae2e101a..3ad276e5 100644 --- a/generateDocs.sh +++ b/generateDocs.sh @@ -39,7 +39,7 @@ echo "" > .nojekyll ################################################################################ ##### Generate JSDOC documents. ##### echo 'Copying generated JSDoc code documentation...' -# cp -R ../fixtures-doc/* ./ ; +cp -R ../docs/* ./ ; echo "" > index.html diff --git a/package.json b/package.json index 6ea2e132..0f89f31b 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "scripts": { "build": "gulp build", "api": "api-extractor run", + "docs:gen": "jsdoc -c jsdoc.json", "test": "jest --coverage --verbose -u", "lint": "eslint --ext .js,.ts --format=pretty ./src", "lint:fix": "eslint --fix --ext .js,.ts --format=pretty ./src",