Skip to content

Latest commit

 

History

History
154 lines (86 loc) · 2.56 KB

README_dev.md

File metadata and controls

154 lines (86 loc) · 2.56 KB

dbwebb-cli version 3 how to devellop

Documentation Status

Packagist npm version CircleCI

This is how to develop the tool and more on advanced usage.

Clone and run the app

Clone the repo and run the app like this.

git clone [email protected]:dbwebb-se/dbwebb-cli.git
cd dbwebb-cli

src/dbw.bash help

Linter

The code must pass the linter shellcheck.

docker-compose run shellcheck --shell=bash src/*.bash
# or
make shellcheck

Unit tests

Each feature must be covered by unit tests. Execute the test suite like this.

docker-compose run bats test
# or
make bats

Tests

Execute all tests.

make test

Release, prepare to tag and install

Make a new release and prepare to tag repo with new version.

make release tag

Install a local copy of the latest version.

# From the latest release locally
make install-app

# Using the install script to install from GitHub source
bash -c "$(cat src/install.bash)"

Documentation

Where to store the docs?

Alternate ways of installing

This section is not verified to work with the latest setup, use it with care or better - ignore.

Install using clone and make

Local install.

make install-app

Install using composer

Install dbwebb/dbwebb-cli using composer as part of you development environment.

composer require dbwebb/dbwebb-cli
vendor/bin/dbwebb --version

Install using npm

Install @dbwebb/dbwebb-cli using npm as part of you development environment.

npm install @dbwebb/dbwebb-cli
node_modules/.bin/dbwebb --version

Use through docker

You can run the tool through docker-compose like this.

docker-compose run dbw

License

This software carries a MIT license.

 .  
..:  Copyright (c) 2013 - 2024 Mikael Roos, [email protected]