UNPKG

workway

Version:

A general purpose, Web Worker driven, remote namespace with classes and methods.

93 lines (92 loc) 2.23 kB
{ "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" } }