-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpackage.json
92 lines (92 loc) · 2.18 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"name": "workway",
"version": "0.5.5",
"description": "A general purpose, Web Worker driven, remote namespace with classes and methods.",
"unpkg": "min.js",
"main": "cjs/index.js",
"module": "esm/index.js",
"scripts": {
"$": "npm-dollar",
"build": "npm-dollar build",
"bundle": "npm-dollar bundle",
"size": "npm-dollar size",
"test": "npm-dollar test"
},
"$": {
"build": [
"$ remoted",
"$ bundle",
"$ test",
"$ size"
],
"bundle": {
"cjs": [
"cp index.js cjs/",
"echo 'module.exports = workway;' >> cjs/index.js"
],
"esm": [
"cp index.js esm/",
"echo 'export default workway;' >> esm/index.js"
],
"min": "uglifyjs index.js --comments=/^!/ -m -c -o min.js",
"node": [
[
"node -e 'fs.writeFileSync(\"worker.js\",",
"fs.readFileSync(\"partial/worker.js\").toString().replace(/^(\\s*)\\/\\/js:(\\w+)/gm,",
"(o,s,k)=>fs.readFileSync(k+\".js\").toString().trim().replace(/^/gm,s)))'"
]
]
},
"remoted": {
"cjs": [
"cp remoted.js cjs/",
"echo 'module.exports = remoted;' >> cjs/remoted.js"
],
"esm": [
"cp remoted.js esm/",
"echo 'export default remoted;' >> esm/remoted.js"
]
},
"size": [
[
"cat index.js |",
"wc -c;cat min.js |",
"wc -c;gzip -c9 min.js |",
"wc -c;cat min.js |",
"brotli |",
"wc -c && rm -f min.js.br"
]
],
"test": [
"cd test",
"node index.js",
"echo $(tput bold)OK$(tput sgr0)"
]
},
"author": "Andrea Giammarchi",
"license": "ISC",
"devDependencies": {
"express": "^4.17.1",
"npm-dollar": "^2.2.1",
"uglify-js": "^3.6.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/WebReflection/workway.git"
},
"keywords": [
"web",
"worker",
"remote",
"namespace",
"driven"
],
"bugs": {
"url": "https://github.com/WebReflection/workway/issues"
},
"homepage": "https://github.com/WebReflection/workway#readme",
"dependencies": {
"flatted": "^2.0.0",
"pocket.io": "^0.1.4"
}
}