update dependencies

pull/50/head
Vladimir Mandic 2020-11-20 08:53:40 -05:00
parent e537a7dce7
commit 5010b0a4fb
25 changed files with 174 additions and 99 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -30,7 +30,7 @@
"imports": []
},
"dist/human.esm.js": {
"bytes": 1783650,
"bytes": 1783819,
"imports": []
}
},
@ -38,14 +38,14 @@
"dist/demo-browser-index.js.map": {
"imports": [],
"inputs": {},
"bytes": 2677420
"bytes": 2677447
},
"dist/demo-browser-index.js": {
"imports": [],
"exports": [],
"inputs": {
"dist/human.esm.js": {
"bytesInOutput": 1776526
"bytesInOutput": 1776574
},
"demo/draw.js": {
"bytesInOutput": 7668
@ -60,7 +60,7 @@
"bytesInOutput": 19406
}
},
"bytes": 1830139
"bytes": 1830308
}
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -5,11 +5,11 @@
"imports": []
},
"dist/tfjs.esm.js": {
"bytes": 1531035,
"bytes": 1531180,
"imports": []
},
"package.json": {
"bytes": 2278,
"bytes": 2279,
"imports": []
},
"src/age/age.js": {
@ -357,7 +357,7 @@
"dist/human.esm-nobundle.js.map": {
"imports": [],
"inputs": {},
"bytes": 2582027
"bytes": 2582034
},
"dist/human.esm-nobundle.js": {
"imports": [],
@ -453,7 +453,7 @@
"bytesInOutput": 4079
},
"dist/tfjs.esm.js": {
"bytesInOutput": 1529550
"bytesInOutput": 1529574
},
"src/human.js": {
"bytesInOutput": 10483
@ -471,7 +471,7 @@
"bytesInOutput": 21
}
},
"bytes": 1783659
"bytes": 1783828
}
}
}

11
dist/human.esm.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

10
dist/human.esm.json vendored
View File

@ -5,11 +5,11 @@
"imports": []
},
"dist/tfjs.esm.js": {
"bytes": 1531035,
"bytes": 1531180,
"imports": []
},
"package.json": {
"bytes": 2278,
"bytes": 2279,
"imports": []
},
"src/age/age.js": {
@ -357,7 +357,7 @@
"dist/human.esm.js.map": {
"imports": [],
"inputs": {},
"bytes": 2582027
"bytes": 2582034
},
"dist/human.esm.js": {
"imports": [],
@ -453,7 +453,7 @@
"bytesInOutput": 4079
},
"dist/tfjs.esm.js": {
"bytesInOutput": 1529550
"bytesInOutput": 1529574
},
"src/human.js": {
"bytesInOutput": 10483
@ -471,7 +471,7 @@
"bytesInOutput": 21
}
},
"bytes": 1783650
"bytes": 1783819
}
}
}

11
dist/human.js vendored

File diff suppressed because one or more lines are too long

2
dist/human.js.map vendored

File diff suppressed because one or more lines are too long

10
dist/human.json vendored
View File

@ -5,11 +5,11 @@
"imports": []
},
"dist/tfjs.esm.js": {
"bytes": 1531035,
"bytes": 1531180,
"imports": []
},
"package.json": {
"bytes": 2278,
"bytes": 2279,
"imports": []
},
"src/age/age.js": {
@ -357,7 +357,7 @@
"dist/human.js.map": {
"imports": [],
"inputs": {},
"bytes": 2549411
"bytes": 2549418
},
"dist/human.js": {
"imports": [],
@ -454,7 +454,7 @@
"bytesInOutput": 10547
},
"dist/tfjs.esm.js": {
"bytesInOutput": 1529041
"bytesInOutput": 1529065
},
"src/hand/box.js": {
"bytesInOutput": 1880
@ -469,7 +469,7 @@
"bytesInOutput": 21
}
},
"bytes": 1782961
"bytes": 1783130
}
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -5,11 +5,11 @@
"imports": []
},
"dist/tfjs.esm.js": {
"bytes": 1531035,
"bytes": 1531180,
"imports": []
},
"package.json": {
"bytes": 2278,
"bytes": 2279,
"imports": []
},
"src/age/age.js": {
@ -357,7 +357,7 @@
"dist/human.node-nobundle.js.map": {
"imports": [],
"inputs": {},
"bytes": 2598324
"bytes": 2598331
},
"dist/human.node-nobundle.js": {
"imports": [],
@ -454,7 +454,7 @@
"bytesInOutput": 10521
},
"dist/tfjs.esm.js": {
"bytesInOutput": 1529722
"bytesInOutput": 1529748
},
"src/hand/box.js": {
"bytesInOutput": 1880
@ -469,7 +469,7 @@
"bytesInOutput": 21
}
},
"bytes": 1783991
"bytes": 1784164
}
}
}

11
dist/human.node.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

10
dist/human.node.json vendored
View File

@ -5,11 +5,11 @@
"imports": []
},
"dist/tfjs.esm.js": {
"bytes": 1531035,
"bytes": 1531180,
"imports": []
},
"package.json": {
"bytes": 2278,
"bytes": 2279,
"imports": []
},
"src/age/age.js": {
@ -357,7 +357,7 @@
"dist/human.node.js.map": {
"imports": [],
"inputs": {},
"bytes": 2598324
"bytes": 2598331
},
"dist/human.node.js": {
"imports": [],
@ -454,7 +454,7 @@
"bytesInOutput": 10521
},
"dist/tfjs.esm.js": {
"bytesInOutput": 1529722
"bytesInOutput": 1529748
},
"src/hand/box.js": {
"bytesInOutput": 1880
@ -469,7 +469,7 @@
"bytesInOutput": 21
}
},
"bytes": 1783982
"bytes": 1784155
}
}
}

9
dist/tfjs.esm.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
dist/tfjs.esm.json vendored
View File

@ -17858,7 +17858,7 @@
"dist/tfjs.esm.js.map": {
"imports": [],
"inputs": {},
"bytes": 1095152
"bytes": 1095159
},
"dist/tfjs.esm.js": {
"imports": [],
@ -21532,7 +21532,7 @@
"bytesInOutput": 0
}
},
"bytes": 1531035
"bytes": 1531180
}
}
}

68
package-lock.json generated
View File

@ -127,9 +127,9 @@
},
"dependencies": {
"debug": {
"version": "4.2.0",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.2.0.tgz",
"integrity": "sha512-IX2ncY78vDTjZMFUdmsvIRFY2Cf4FnD0wRs+nQwJU8Lu99/tPFdb0VybiiMTPe3I6rQmwsqQqRBvxU+bZ/I8sg==",
"version": "4.3.1",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz",
"integrity": "sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==",
"dev": true,
"requires": {
"ms": "2.1.2"
@ -295,9 +295,9 @@
"dev": true
},
"@types/node": {
"version": "14.14.8",
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.8.tgz",
"integrity": "sha512-z/5Yd59dCKI5kbxauAJgw6dLPzW+TNOItNE00PkpzNwUIEwdj/Lsqwq94H5DdYBX7C13aRA0CY32BK76+neEUA==",
"version": "14.14.9",
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.9.tgz",
"integrity": "sha512-JsoLXFppG62tWTklIoO4knA+oDTYsmqWxHRvd4lpmfQRNhX6osheUOWETP2jMoV/2bEHuMra8Pp3Dmo/stBFcw==",
"dev": true
},
"@types/node-fetch": {
@ -478,34 +478,14 @@
}
},
"array.prototype.flat": {
"version": "1.2.3",
"resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.2.3.tgz",
"integrity": "sha512-gBlRZV0VSmfPIeWfuuy56XZMvbVfbEUnOXUvt3F/eUUUSyzlgLxhEX4YAEpxNAogRGehPSnfXyPtYyKAhkzQhQ==",
"version": "1.2.4",
"resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.2.4.tgz",
"integrity": "sha512-4470Xi3GAPAjZqFcljX2xzckv1qeKPizoNkiS0+O4IoPR2ZNpcjE0pkhdihlDouK+x6QOast26B4Q/O9DJnwSg==",
"dev": true,
"requires": {
"call-bind": "^1.0.0",
"define-properties": "^1.1.3",
"es-abstract": "^1.17.0-next.1"
},
"dependencies": {
"es-abstract": {
"version": "1.17.7",
"resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.7.tgz",
"integrity": "sha512-VBl/gnfcJ7OercKA9MVaegWsBHFjV492syMudcnQZvt/Dw8ezpcOHYZXa/J96O8vx+g4x65YKhxOwDUh63aS5g==",
"dev": true,
"requires": {
"es-to-primitive": "^1.2.1",
"function-bind": "^1.1.1",
"has": "^1.0.3",
"has-symbols": "^1.0.1",
"is-callable": "^1.2.2",
"is-regex": "^1.1.1",
"object-inspect": "^1.8.0",
"object-keys": "^1.1.1",
"object.assign": "^4.1.1",
"string.prototype.trimend": "^1.0.1",
"string.prototype.trimstart": "^1.0.1"
}
}
"es-abstract": "^1.18.0-next.1"
}
},
"astral-regex": {
@ -821,9 +801,9 @@
}
},
"esbuild": {
"version": "0.8.9",
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.8.9.tgz",
"integrity": "sha512-HAV4mKJqos0L8g6pL7evrw/ZPm478yFNtkuYhqJAeTrIW40XtBxhHrt4Pm2faYeRB8K6nA7dTDgmF+O0e9JCXQ==",
"version": "0.8.11",
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.8.11.tgz",
"integrity": "sha512-PTBeZ71qh7/Dm/57Sd10VG9TMKQAUbM9W6WD59ZYV62dDA/2a1xybzWqR3X7zbtxyqtFfY1PhYtg85QV0mrXNg==",
"dev": true
},
"escalade": {
@ -884,9 +864,9 @@
},
"dependencies": {
"debug": {
"version": "4.2.0",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.2.0.tgz",
"integrity": "sha512-IX2ncY78vDTjZMFUdmsvIRFY2Cf4FnD0wRs+nQwJU8Lu99/tPFdb0VybiiMTPe3I6rQmwsqQqRBvxU+bZ/I8sg==",
"version": "4.3.1",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz",
"integrity": "sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==",
"dev": true,
"requires": {
"ms": "2.1.2"
@ -2306,20 +2286,20 @@
"dev": true
},
"simple-git": {
"version": "2.22.0",
"resolved": "https://registry.npmjs.org/simple-git/-/simple-git-2.22.0.tgz",
"integrity": "sha512-/8WMNrQ5slYl05jYOpeh4BIyMQc84PkEvk9YAcBHVJaPoAgoxzLzdRzUzWDZJ9U6Z2pUjLxkGcQC0kU4pbRN5Q==",
"version": "2.23.0",
"resolved": "https://registry.npmjs.org/simple-git/-/simple-git-2.23.0.tgz",
"integrity": "sha512-s/gEkxFV2WGTN4kO1uQoA4cE4rq0FRzQPR5Yhgg8JUuA4IhOeccjlKSFhwF3rrpo7797ZvQc7L6hJJNA4szHCw==",
"dev": true,
"requires": {
"@kwsites/file-exists": "^1.1.1",
"@kwsites/promise-deferred": "^1.1.1",
"debug": "^4.1.1"
"debug": "^4.3.1"
},
"dependencies": {
"debug": {
"version": "4.2.0",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.2.0.tgz",
"integrity": "sha512-IX2ncY78vDTjZMFUdmsvIRFY2Cf4FnD0wRs+nQwJU8Lu99/tPFdb0VybiiMTPe3I6rQmwsqQqRBvxU+bZ/I8sg==",
"version": "4.3.1",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz",
"integrity": "sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==",
"dev": true,
"requires": {
"ms": "2.1.2"

View File

@ -22,6 +22,7 @@
"dependencies": {},
"peerDependencies": {},
"devDependencies": {
"@tensorflow/tfjs": "^2.7.0",
"@tensorflow/tfjs-backend-cpu": "^2.7.0",
"@tensorflow/tfjs-backend-wasm": "^2.7.0",
"@tensorflow/tfjs-backend-webgl": "^2.7.0",
@ -30,20 +31,19 @@
"@tensorflow/tfjs-data": "^2.7.0",
"@tensorflow/tfjs-layers": "^2.7.0",
"@tensorflow/tfjs-node": "^2.7.0",
"@tensorflow/tfjs": "^2.7.0",
"@vladmandic/pilogger": "^0.2.7",
"chokidar": "^3.4.3",
"dayjs": "^1.9.6",
"esbuild": "^0.8.9",
"esbuild": "^0.8.11",
"eslint": "^7.13.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-json": "^2.1.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint": "^7.13.0",
"rimraf": "^3.0.2",
"seedrandom": "^3.0.5",
"simple-git": "^2.22.0"
"simple-git": "^2.23.0"
},
"scripts": {
"start": "node --trace-warnings --unhandled-rejections=strict --trace-uncaught --no-deprecation src/node.js",

View File

@ -6,15 +6,26 @@ const log = require('@vladmandic/pilogger');
// keeps esbuild service instance cached
let es;
// const incremental = {};
const banner = `
/*
Human library
homepage: <https://github.com/vladmandic/human>
author: <https://github.com/vladmandic>'
*/
`;
// common configuration
const common = {
banner,
minifyWhitespace: true,
minifySyntax: true,
bundle: true,
sourcemap: true,
// incremental: true,
logLevel: 'error',
target: 'es2018',
tsconfig: 'server/tfjs-tsconfig.json',
};
const tfjs = {
@ -120,6 +131,8 @@ async function build(f, msg) {
}
// rebuild all targets
for (const [target, options] of Object.entries(config)) {
// if (!incremental.target) incremental.target = await es.build({ ...common, ...options });
// else incremental.target.rebuild({ ...common, ...options });
await es.build({ ...common, ...options });
const stats = await getStats(options.metafile, target);
log.state('Build:', stats);

33
server/tfjs-tsconfig.json Normal file
View File

@ -0,0 +1,33 @@
{
"compilerOptions": {
"module": "es6",
"moduleResolution": "node",
"noImplicitAny": true,
"sourceMap": true,
"removeComments": false,
"preserveConstEnums": true,
"allowSyntheticDefaultImports": true,
"declaration": true,
"target": "es2018",
"lib": [
"es2018",
"dom"
],
"outDir": "./dist",
"noUnusedLocals": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"alwaysStrict": true,
"noUnusedParameters": false,
"pretty": true,
"noFallthroughCasesInSwitch": true,
"allowUnreachableCode": false,
"incremental": true
},
"include": [
"src/"
],
"exclude": [
"node_modules/"
]
}