lukeed / lukeed/taskr

Don't use package.json to load dependencies.

Open
#279 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

future maybe
Dominant language
JavaScript
Stars
2.5k
Forks
72
PR merge metrics
No merged PRs in 30d

Description

This was an early decision choice which I felt would help reduce boilerplate, and it does. On the other hand, it's magic.

EDIT: Grammar.

```js
module.exports = {
*lint(fly) {
yield fly.source(js).xo({ esnext: true })
},
*scripts(fly) {
yield fly.source(js).babel({ presets: ["es2015"] }).target(`${dist}/js`)
},
*styles(fly) {
yield fly.source(sass).sass({ outputStyle: "compressed" }).autoprefixer().target(`${dist}/css`)
},
*build(fly) {
yield fly.parallel(["lint", "scripts", "styles"])
}
}
```

If you already know the API, you'd know that `.source` and `.target` are core and that `.sass` or `.xo` must be plugins, but what about plugins like `.concat`.

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

Start by tracing how package.json is used to load dependencies for the JavaScript task configuration shown in the issue. Compare core methods such as .source and .target with plugins such as .sass, .xo, and .concat. The issue does not define a concrete replacement or acceptance criteria, so the desired behavior would need to be clarified before implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
build-system, tooling
Issue type
Refactor
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.