Skip to content

Commit 97a29a8

Browse files
committed
first commit
0 parents  commit 97a29a8

17 files changed

+11219
-0
lines changed

.editorconfig

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
5+
root = true
6+
7+
[*]
8+
9+
# Change these settings to your own preference
10+
indent_style = space
11+
indent_size = 2
12+
13+
# We recommend you to keep these unchanged
14+
end_of_line = lf
15+
charset = utf-8
16+
trim_trailing_whitespace = true
17+
insert_final_newline = true
18+
19+
[*.md]
20+
trim_trailing_whitespace = false

.eslintignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
coverage
2+
dist
3+
node_modules

.eslintrc

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"parser": "babel-eslint",
3+
"extends": [
4+
"airbnb-base",
5+
"plugin:flowtype/recommended",
6+
"plugin:prettier/recommended",
7+
"prettier/flowtype"
8+
],
9+
"plugins": [
10+
"flowtype",
11+
"flowtype-errors"
12+
],
13+
"env": {
14+
"jest": true
15+
},
16+
"rules": {
17+
"flowtype-errors/show-errors": "error"
18+
},
19+
"settings": {
20+
"import/resolver": {
21+
"node": {
22+
"extensions": [".js", ".jsx", ".ts", ".tsx"]
23+
}
24+
}
25+
},
26+
"overrides": [
27+
{
28+
"files": ["**/*.ts", "**/*.tsx"],
29+
"parser": "@typescript-eslint/parser",
30+
"parserOptions": {
31+
"project": "./tsconfig.json"
32+
},
33+
"plugins": [
34+
"@typescript-eslint"
35+
],
36+
"rules": {
37+
"no-undef": "off",
38+
"no-unused-vars": "off",
39+
"no-restricted-globals": "off"
40+
}
41+
}
42+
]
43+
}

.flowconfig

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[ignore]
2+
.*/dist
3+
.*/coverage

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.DS_Store
2+
coverage
3+
dist
4+
node_modules
5+
*.log

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
save-exact = true

.travis.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
language: node_js
2+
node_js:
3+
- v8
4+
script:
5+
- yarn lint
6+
- yarn test --coverage
7+
cache:
8+
- yarn
9+
after_success:
10+
- bash <(curl -s https://codecov.io/bash)

.vscode/settings.json

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"editor.formatOnSave": true,
3+
"deno.enable": false,
4+
"html.format.wrapLineLength": 120,
5+
"editor.wordWrap": "on",
6+
"editor.wordWrapColumn": 120,
7+
"explorer.openEditors.sortOrder": "fullPath",
8+
"files.exclude": {
9+
"**/node_modules": true,
10+
"**/.make.*": true,
11+
"**/dist": true,
12+
},
13+
"markdown.validate.enabled": true,
14+
"markdown.math.enabled": false,
15+
"[markdown]": {
16+
"editor.formatOnSave": false
17+
},
18+
"[html]": {
19+
"editor.formatOnSave": false
20+
},
21+
"[scss]": {
22+
"editor.formatOnSave": false
23+
}
24+
}

CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4+
5+
### [1.0.4](https://github.com/asmartbear/color/compare/v1.0.1...v1.0.4) (2021-06-07)
6+
7+
8+
9+
### 1.0.1 (2021-05-30)

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Jason Cohen
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Jobs
2+
3+
Simple job-runner with features:
4+
5+
* Max simultaneous threads, but also max-per-tag
6+
* Priority queue for job-start ordering
7+
* Priority queue for job-start-after-others-complete ordering
8+
* Tasks dependent on specific other tasks being complete
9+
10+
## Execution queue
11+
12+
* All else being equal, tasks are started in the order they were enqueued.
13+
* Tasks will not start based on:
14+
* max-per-tag
15+
* priority queue for others not started
16+
* priority queue for others others not completed
17+
* dependency on specific other tasks
18+
* Tasks that have to wait maintain their position in the queue.
19+
* Any error stops kicking off new tasks, allows existing tasks to complete, and the error is available.
20+
21+
## Development Usage
22+
23+
Build:
24+
25+
```bash
26+
npm run build
27+
```
28+
29+
Unit tests:
30+
31+
```bash
32+
npm run test
33+
```
34+
35+
Unit tests, refreshed live:
36+
37+
```bash
38+
npm run watch
39+
```
40+
41+
Prepare for release (e.g. run tests and bump version number):
42+
43+
```bash
44+
npm run release
45+
```
46+
47+
Publish to npm:
48+
49+
```bash
50+
npm publish
51+
```

0 commit comments

Comments
 (0)