Skip to content

Commit d4e840b

Browse files
committed
Create boilerplate for package rewrite
0 parents  commit d4e840b

File tree

9 files changed

+4873
-0
lines changed

9 files changed

+4873
-0
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
dist/*
2+
!dist/*.d.ts
3+
node_modules/
4+
.DS_Store
5+
Thumbs.db
6+
*.log

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2019 Andy Wermke
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
13+
all 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
21+
THE SOFTWARE.

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# threads
2+
3+
Version 1.0 - Work in progress.
4+
5+
Here you can find a complete rewrite of the library. All functional, robust API, all statically typed.

package-lock.json

Lines changed: 4739 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"name": "threads",
3+
"version": "1.0.0-alpha",
4+
"description": "Easy to use, yet powerful multi-threading library for node.js and the browser!",
5+
"main": "dist/index.js",
6+
"scripts": {
7+
"prebuild": "rimraf dist/",
8+
"build": "tsc",
9+
"test": "ava test/**/*.test.ts",
10+
"posttest": "tslint --project .",
11+
"prepare": "build"
12+
},
13+
"repository": {
14+
"type": "git",
15+
"url": "git+https://github.com/andywer/threads.git"
16+
},
17+
"author": "Andy Wermke (https://github.com/andywer)",
18+
"license": "MIT",
19+
"bugs": {
20+
"url": "https://github.com/andywer/threads/issues"
21+
},
22+
"homepage": "https://github.com/andywer/threads#readme",
23+
"keywords": [
24+
"thread",
25+
"web worker",
26+
"pool",
27+
"spawn",
28+
"isomorphic",
29+
"parallel",
30+
"observable"
31+
],
32+
"devDependencies": {
33+
"@types/node": "^11.13.8",
34+
"ava": "^1.4.1",
35+
"rimraf": "^2.6.3",
36+
"ts-node": "^8.1.0",
37+
"tslint": "^5.16.0",
38+
"tslint-config-prettier": "^1.18.0",
39+
"typescript": "^3.4.5"
40+
},
41+
"dependencies": {
42+
"@types/zen-observable": "^0.8.0",
43+
"zen-observable": "^0.8.14"
44+
},
45+
"optionalDependencies": {
46+
"tiny-worker": "2.*"
47+
},
48+
"ava": {
49+
"compileEnhancements": false,
50+
"extensions": [
51+
"ts"
52+
],
53+
"require": [
54+
"ts-node/register"
55+
]
56+
},
57+
"files": [
58+
"dist/**",
59+
"*.js",
60+
"*.ts"
61+
]
62+
}

tsconfig.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"compilerOptions": {
3+
"allowSyntheticDefaultImports": true,
4+
"esModuleInterop": true,
5+
"skipLibCheck": true,
6+
"target": "es5",
7+
"module": "commonjs",
8+
"lib": ["es2015"],
9+
"outDir": "dist",
10+
"declaration": true,
11+
"strict": true
12+
},
13+
"include": [
14+
"./src/index.ts"
15+
]
16+
}

tslint.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"extends": [
3+
"tslint:latest",
4+
"tslint-config-prettier"
5+
],
6+
"jsRules": {},
7+
"rules": {
8+
"interface-name": [
9+
true,
10+
"never-prefix"
11+
],
12+
"no-implicit-dependencies": [
13+
true,
14+
"dev"
15+
],
16+
"no-submodule-imports": false,
17+
"object-literal-sort-keys": false,
18+
"only-arrow-functions": false,
19+
"semicolon": false
20+
},
21+
"rulesDirectory": []
22+
}

worker.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from "./dist/worker/index"

worker.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require("./dist/worker/index")

0 commit comments

Comments
 (0)