Skip to content

Commit

Permalink
build: add docs script
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Nov 30, 2020
1 parent ca9d173 commit bdd2a21
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ npm-debug.log
.eslintrc
.jshintrc
.nyc_output

docs
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
- npm install -g npm@latest
- npm --version
script:
- npm run build
- if [ $CI_TEST != "false" ]; then
npm test;
fi
Expand All @@ -25,12 +26,14 @@ jobs:
install:
- npm install
- npm install -g npm@latest
script: skip
script:
- npm run build
# https://docs.travis-ci.com/user/using-workspaces/
workspaces:
create:
name: linux-shared
paths:
- docs
- node_modules

- &test
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"prerelease": "npm t",
"postrelease": "npm publish && git push --follow-tags",
"pretest": "standard",
"test": "tap --nyc-arg=--all --coverage --jobs=1 test/*.js"
"test": "tap --nyc-arg=--all --coverage --jobs=1 test/*.js",
"docs": "mkdir -p docs && cp ./README.md ./docs/README.ms",
"build": "npm run docs"
},
"files": [
"lib",
Expand Down

0 comments on commit bdd2a21

Please sign in to comment.