Skip to content

Commit

Permalink
feat(deploy): added NO_NPX env
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitri Kopriwa committed May 20, 2019
1 parent 903bae3 commit 03945bb
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 13 deletions.
2 changes: 2 additions & 0 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ You can tell the script to use `yarn` for installation:
$ npx $PACKAGE_NAME --yarn
```

Set `NO_NPX` environment variable with value `true` to skip npx calls.

Set `DEBUG` environment variable to enable debug output.
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,18 +156,18 @@
"@babel/polyfill": "^7.4.4",
"@babel/preset-env": "^7.4.4",
"@babel/preset-react": "^7.0.0",
"@rollup-umd/documentation": "^2.0.2",
"@rollup-umd/documentation": "^2.0.5",
"@rollup-umd/ncu": "^1.0.9",
"@rollup-umd/rollup": "^1.0.10",
"@rollup-umd/rollup": "^1.0.13",
"@semantic-release/changelog": "^3.0.2",
"@semantic-release/git": "^7.0.8",
"@semantic-release/github": "^5.2.10",
"@semantic-release/npm": "^5.1.4",
"@yeutech-lab/documentation": "^2.0.1",
"@semantic-release/npm": "^5.1.7",
"@yeutech-lab/documentation": "^2.0.2",
"@yeutech-lab/test-polyfill": "^1.1.5",
"babel-eslint": "^10.0.1",
"babel-jest": "^24.8.0",
"babel-loader": "^8.0.5",
"babel-loader": "^8.0.6",
"babel-merge": "^3.0.0",
"babel-plugin-add-module-exports": "^1.0.2",
"babel-plugin-array-includes": "^2.0.3",
Expand All @@ -180,22 +180,22 @@
"eslint-config-airbnb-base": "^13.1.0",
"eslint-plugin-import": "^2.17.2",
"exports-loader": "^0.7.0",
"istanbul-api": "^2.1.6",
"istanbul-reports": "^2.2.4",
"istanbul-api": "^3.0.0",
"istanbul-reports": "^2.2.6",
"jest-cli": "^24.8.0",
"jest-sonar-reporter": "^2.0.0",
"lint-staged": "^8.1.6",
"lint-staged": "^8.1.7",
"pre-commit": "^1.2.2",
"rollup": "^1.11.3",
"semantic-release": "^15.13.3",
"rollup": "^1.12.3",
"semantic-release": "^15.13.12",
"toctoc": "^0.3.2",
"webpack": "^4.30.0"
"webpack": "^4.32.0"
},
"dependencies": {
"@babel/runtime": "^7.4.4",
"debug": "^4.1.1",
"execa": "^1.0.0",
"yargs": "^13.2.2"
"yargs": "^13.2.4"
},
"peerDependencies": {},
"publishConfig": {
Expand Down
8 changes: 7 additions & 1 deletion src/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,13 @@ fi

if [[ "$DECLINATION_ID" = cli ]]; then
echo "[Documentation] generating CLI documentation"
npx @yeutech-lab/rollup-umd-documentation-cli
if [[ ${NO_NPX} = true ]]; then
npm install -g @yeutech-lab/rollup-umd-documentation-cli
rollup-umd-documentation-cli
npm uninstall -g @yeutech-lab/rollup-umd-documentation-cli
else
npx @yeutech-lab/rollup-umd-documentation-cli
fi
fi
if [[ -e $PWD/styleguide/jsdoc.sh ]]; then
echo "[Documentation] running jsdoc"
Expand Down

0 comments on commit 03945bb

Please sign in to comment.