8000 Support task node module by sontx · Pull Request #24 · sontx/letrun · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Support task node module #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Aug 29, 2024
Merged

Support task node module #24

merged 15 commits into from
Aug 29, 2024

Conversation

sontx
Copy link
Owner
@sontx sontx commented Aug 29, 2024

In the previous version, the task could only defined in a JS file, this is hard for developing more complex tasks with dependencies and we can't share these tasks through the npm registry. The task can now be in a JS file or a normal node module. Besides that improvement, there are some relative features:

  1. Support loading task from node module
  2. Add task install command for installing tasks from the npm registry
  3. Add task versions for showing all task's package versions
  4. Add workflow install command for installing all task packages from a specific workflow
  5. Task's name is no longer required, they will be resolved by the file name or package name if needed
  6. Introduce the task's version
  7. Introduce ModuleLocationResolver for lookup module location from the task's handler
  8. Introduce @letrun/deps package for managing dependencies
  9. Update the build for core, plugin, and engine packages, we'll build to two targets esm and cjs

@sontx sontx merged commit edee592 into main Aug 29, 2024
1 check passed
@sontx sontx deleted the feature/support-node-module branch August 30, 2024 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0