Skip to main content

Tasks

jnc includes a cross-platform task runner. Define tasks in your manifest and run them with jnc run. Tasks execute inside the workspace environment with all dependencies available.

Defining tasks

Simple tasks

Tasks with options

Use the table format for more control:

Running tasks

You can also run arbitrary commands (not just defined tasks):

Task dependencies

Tasks can depend on other tasks. Dependencies run first, in the correct order:
Running jnc run ci will execute lint and test (and their dependencies) before ci.

Environment-specific tasks

Tasks belong to features, so you can define tasks for specific environments:
Run them by targeting the environment:

Platform-specific tasks

Define tasks that only apply on certain platforms:

Managing tasks with the CLI