just ___
Home
Guide
GitHub
Home
Guide
GitHub
  • Tasks
    • Getting started
    • Composition of tasks
    • Logging
    • Command line arguments
    • Conditionals
    • Higher order task functions
  • Scripts
    • Introduction
    • TypeScript
    • Webpack
    • Lint
    • Jest

Getting started

Just simplifies your life in managing build tasks. It stands on the shoulders of excellent and well tested libraries: undertaker, yargs, and plop.js. We encourage developers to make just-scripts available locally instead of installing just-scripts as a global tool.

npm i -D just-scripts

Defining tasks

Place some task definitions inside just.config.js in your root folder (next to package.json):

// CommonJS style
const { task, option, logger, argv } = require('just-scripts');

option('name', { default: 'world' });

task('sayhello', function () {
  logger.info(argv().name);
});

Defining tasks in style with TypeScript

  1. Install ts-node and typescript:
npm i -D ts-node typescript
  1. Place tasks inside just.config.ts in your root folder (next to package.json):
// ES Module style
import { task, option, logger, argv } from 'just-scripts';

option('name', { default: 'world' });

task('sayhello', function () {
  logger.info(argv().name);
});

Run it!

Then run it! It is best to either place just inside a npm run script or run it with npx:

$ npx just sayhello
$ npx just sayhello --name me

That's all!

Last Updated: 12/11/25, 5:07 PM
Next
Scripts