Skip to content

Commit

Permalink
maint/build ~ (package.json) add verbose test support and revise 'pre…
Browse files Browse the repository at this point in the history
…release'
  • Loading branch information
rivy committed Aug 1, 2022
1 parent cb103ef commit 2e9e190
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ lint:lint check for code 'lint' (using `eslint`)
lint:markdown check for markdown errors (using `remark`)
lint:spell check for spelling errors (using `cspell`)
lint:style check for format imperfections (using `prettier`)
prerelease clean, rebuild, and fully test prior to publish/release
prerelease clean, rebuild, and fully test (useful prior to publish/release)
realclean remove all generated files
rebuild clean and (re-)build project
rebuild:all clean and fully reconstruct project distribution
Expand All @@ -262,6 +262,7 @@ test:types test for type declaration errors (using `tsd`)
update update/prepare for distribution [alias: 'dist']
update:changelog update CHANGELOG (using `git changelog ...`)
update:dist update distribution content
verify fully (and verbosely) test package
```

#### Packaging & Publishing
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@
"lint:spell": "cspell {eg,examples,src,test}/**/* CHANGELOG{,.md,.mkd} README{,.md,.mkd} --no-summary --config \".vscode/cspell.json\"",
"# lint:style # check for format imperfections (using `prettier`)": "",
"lint:style": "prettier . --check --loglevel warn",
"# prerelease # clean, rebuild, and fully test prior to publish/release": "",
"prerelease": "run-s prepublishOnly",
"# prerelease # clean, rebuild, and fully test (useful prior to publish/release)": "",
"prerelease": "run-s clean verify",
"# realclean # remove all generated files": "",
"realclean": "run-s clean && rimraf coverage .nyc_output",
"# rebuild # clean and (re-)build project": "",
Expand All @@ -119,7 +119,7 @@
"# test # test package": "",
"test": "run-s --silent lint update:dist && run-p test:*",
"# test:code # test package code": "",
"test:code": "run-s --silent +:max-node-8 && ava || ( run-s --silent +:min-node-10 && nyc --silent ava )",
"test:code": "run-s --silent +:max-node-8 && cross-env-shell ava $npm_config_ava || ( run-s --silent +:min-node-10 && cross-env-shell nyc --silent ava $npm_config_ava )",
"# test:types # test for type declaration errors (using `tsd`)": "",
"test:types": "run-s --silent +:max-node-8 && shx echo \"[test:types] WARN Type testing skipped [for NodeJS < v10]\" 1>&2 || tsd",
"# update # update/prepare for distribution [alias: 'dist']": "",
Expand All @@ -128,6 +128,8 @@
"update:changelog": "run-s --silent _:update:changelog && git diff --quiet --exit-code CHANGELOG.mkd || shx echo \"[update] info CHANGELOG updated\"",
"# update:dist # update distribution content": "",
"update:dist": "run-s --silent build && exec-if-updated --source \"build/**\" --target \"dist/**\" --target build/.targets/update-dist.succeeded \"run-s --silent _:update:dist:rebuild\"",
"# verify # fully (and verbosely) test package": "",
"verify": "cross-env npm_config_test_dist=true npm_config_ava=--verbose run-s test",
"## +:... == sub-scripts (may run 'visibly', but not user-facing)": "",
"+:coverage": "run-s build test:code && is-ci && run-s cov:send || run-s cov:view",
"+:max-node-8": "is-node-not-modern 10",
Expand Down

0 comments on commit 2e9e190

Please sign in to comment.