lukeed / lukeed/fly-esnext

use async programatically

Open
#7 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
12
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Is it possible to use this module to run programatically?

const fly = new Fly({
  plugins: [
    require('fly-typescript'),
    require('fly-clear'),
    require('fly-flatten'),
  ],

  tasks: {
    async default(fly) {
      yield fly.clear('dist');
      yield fly.source('server/templates/**/*')
        .flatten({ levels: 5 })
        .target('dist/server/templates');
    },
  }
})

await fly.start()

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names the Fly constructor, task definition, and fly.start() but no files or tests. First trace how Fly is instantiated and how start() is exposed, then determine the supported programmatic async entry point and add coverage for the shown usage.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.