Dsafio π€
Practicing tool for coders.
It's a Commander.js powered Node.js CLI.
Requirements
You need Node.js to run the CLI. We recommend asdf to manage your Node.js environment.
Install the CLI
npm install -g dsafio
Dsafio is a Node.js command-line tool. You'll want to have the development version of the dsafio
command in your $PATH
. Besides it, it will feel like a normal Node.js project for you. It's built with Commander.js, tested with Mocha, Chai and Sinon.JS, with Prettier as coding standard.
Development environment
Depending on how is your $PATH
, you might need to uninstall dsafio
as global:
npm uninstall -g dsafio
It's a typical Node.js project. Dependencies are managed via npm:
npm install
Now, just link the development executables:
npm link
dsafio
command should now be available in your shell.
Unlinking the development version
If you ever need to unlink the global version (eg.: you want to install the production version directly from npm), you will want to unlink the development version first:
npm unlink
Conventional Commits
We use Conventional Commits in our commit history. It is a specification for commit messages that help us automate versioning processes. Please refer to its website for more information.
Test can be run with the following command:
npm test
It's possible to run them in watch mode:
npm run test:watch
We use Prettier.