Sure. The `line-perception` tasks work this way; they share a single `.js` file in a single design document. See `tasks/line-perception` for an example.