Skip to content

Commit

Permalink
Merge pull request #49 from sanctuary-js/davidchambers/globstar
Browse files Browse the repository at this point in the history
enable ‘globstar’
  • Loading branch information
davidchambers authored Nov 22, 2021
2 parents 009d12f + d2cfd37 commit ed5eba7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ Many variables have default values and are therefore optional.
| `author-name` | `Sanctuary` | The name of the individual or group to whom copyright should be attributed. |
| `contributing-file` | `CONTRIBUTING.md` | The name of the CONTRIBUTING file. |
| `license-file` | `LICENSE` | The name of the licence file. |
| `source-files` | `index.js` | Space-separated list of filenames. Globbing is supported. |
| `readme-source-files` | `index.js` | Space-separated list of filenames. Globbing is supported. |
| `source-files` | `index.js` | Space-separated list of filenames. Globbing is supported (with `globstar`). |
| `readme-source-files` | `index.js` | Space-separated list of filenames. Globbing is supported (with `globstar`). |
| `heading-level` | `4` | The `<h[1-6]>` level of headings transcribed from `heading-prefix` comments. |
| `heading-prefix` | `#` | The character which follows `//` to signify a heading to transcribe. |
| `comment-prefix` | `.` | The character which follows `//` to signify documentation to transcribe. |
Expand Down
4 changes: 2 additions & 2 deletions bin/doctest
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ source "${BASH_SOURCE%/*}/../sanctuary-scripts/functions"

run_custom_script doctest "$@"

set +f ; shopt -s nullglob
set +f ; shopt -s globstar nullglob
# shellcheck disable=SC2207
files=($(get source-files))
set -f ; shopt -u nullglob
set -f ; shopt -u globstar nullglob

prefix="$(get comment-prefix)"
opening="$(get opening-delimiter)"
Expand Down
4 changes: 2 additions & 2 deletions bin/generate-readme
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ source "${BASH_SOURCE%/*}/../sanctuary-scripts/functions"

run_custom_script generate-readme "$@"

set +f ; shopt -s nullglob
set +f ; shopt -s globstar nullglob
# shellcheck disable=SC2207
files=($(get readme-source-files))
set -f ; shopt -u nullglob
set -f ; shopt -u globstar nullglob

(( ${#files[@]} == 0 )) && exit 0

Expand Down
4 changes: 2 additions & 2 deletions bin/lint
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ source "${BASH_SOURCE%/*}/../sanctuary-scripts/functions"

run_custom_script lint "$@"

set +f ; shopt -s nullglob
set +f ; shopt -s globstar nullglob
# shellcheck disable=SC2207
files=($(get source-files))
set -f ; shopt -u nullglob
set -f ; shopt -u globstar nullglob

if [[ "${PUBLISHING-false}" == true ]] ; then
echo 'Running "npm install" to negate "npm prune"'
Expand Down

0 comments on commit ed5eba7

Please sign in to comment.