https://github.com/ysmood/nopack
https://github.com/ysmood/nopack
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ysmood/nopack
- Owner: ysmood
- Created: 2015-10-30T08:59:49.000Z (about 10 years ago)
- Default Branch: demo
- Last Pushed: 2015-11-20T00:51:57.000Z (about 10 years ago)
- Last Synced: 2025-05-12T13:56:22.991Z (8 months ago)
- Language: JavaScript
- Size: 868 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Overview
A distributed build program.
# Build Process
Here's the dependency tree:
```
a
/ \
b c
/ \ \
c d f
```
The `a` is the root the of the whole process. Every sub build process, such as `b`, is a same build process of `a`.
## API
### Loader
Each loader is a function:
```js
async function loader ({
// The transaction id of a build task.
id: String,
// The body of the target to compile.
src: Buffer,
// The path of the target relative to the project.
path: String
}) => {
src: String | Buffer,
deps: [String]
}
```