@kudobuzz/kbscripts v1.2.0
We have quite a number of js projects and we were finding it difficult updating tooling across these projects
Solution
A common configuration library
Table of Contents
Installation
This module is distributed via npm which is bundled with node and
should be installed as one of your project's devDependencies
:
npm install --save-dev @kudobuzz/kbscripts
Usage
Install my running npm install @kudobuzz/kbscripts
Scripts
kbscripts lint [Specific files can go here and args for eslint]
Lints all js files in the target project.
kbscripts format [Specific files can go here and other args to prettier]
Format all js,md,ts,css files in the target project.kbscripts test [Specific files can go here and other args to mocha]
Runs mocha on all *.test.js files in the target project. Tests are run recursively.
Workspace
This command allow managing package installation for workspaces.
Bootstrap
This allows you to setup all workspaces
- It copies .env.sample > .env
- It runs npm install for workspaces
Usage
kbscript workspace bootstrap
Option | Description | Example |
---|---|---|
workspace | This allows you to run a command for a single workspace | -- workspace api |
NPM Commands
This workspace commands supports all npm installation commands install, ci, uninstall and test
To run a command for all workspaces use.
Usage
kbscript workspace {command} joi
Replace {command} with one of install, test, ci or uninstall
Option | Description | Example |
---|---|---|
workspace | This allows you to run a command for a single workspace | -- workspace api |
Docker-bootsrap
This allows you to copy a base Dockerfile to all workspaces.
Usage
kbscript workspace docker-bootstrap --path {PATH_TO_DOCKER_FILE}
4 months ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago