Display multiple simultaneous animated spinners in node terminal applications
git clone https://github.com/adamjarret/twisters.git
cd twisters
yarn
If you use VS Code, see the .vscode directory for sample config files that define recommended settings to use with this project.
yarn build
or
yarn build -w
to build and automatically rebuild when changes are saved.
node packages/examples-js/bin/demo.js
After building, JavaScript files in the following directories may be executed as node scripts:
- packages/examples-js/bin
- packages/examples-ts/bin (excluding utils)
Runs tsc
to compile TypeScript files.
The twisters package outputs a commonjs module (with types) to the lib/ directory.
The examples-ts package outputs node scripts (with types) to the bin/ directory.
Use -w
flag to watch for changes and rebuild when they occur.
See tsconfig.json for configuration.
Deletes all package lib directories and TypeScript build cache.
Runs typedoc
to generate documentation in the docs/api directory.
See typedoc.json for configuration.
Runs eslint
on all JavaScript and TypeScript files not ignored in the .eslintignore file.
See .eslintrc.js for configuration.
Runs prettier
(see prettier) to check source code file format. All compatible files not ignored in the .eslintignore file are processed.
See .prettierrc.js for configuration.
Runs cspell
(see cspell) to spell-check source code files.
See .vscode/cSpell.json for configuration.
Note: This configuration path is used so the settings can also be honored by the Code Spell Checker plugin for VS Code.
Runs ncu
on each workspace package to check for dependency updates.
Use -u
flag to update version numbers in all package.json files.
Any additional arguments will be passed to the ncu
command for each package. See npm-check-updates for available options.
Note: yarn ncu
does not check for updates to dependencies of the workspace itself. To check for these as well, use npx
to run ncu
:
# Check dependencies in all package.json files
npx ncu && yarn ncu
# Update versions in all package.json files
npx ncu -u && yarn ncu -u
Runs npm pack
on twisters package to bundle the built module as a .tgz archive.