update demo build process

pull/50/head
Vladimir Mandic 2020-11-04 11:57:44 -05:00
parent ae96de9755
commit a6e7595953
18 changed files with 31568 additions and 1484 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

@ -23,7 +23,7 @@
"imports": [] "imports": []
}, },
"dist/human.esm.js": { "dist/human.esm.js": {
"bytes": 1274644, "bytes": 1274635,
"imports": [] "imports": []
} }
}, },
@ -31,28 +31,28 @@
"dist/demo-browser-index.js.map": { "dist/demo-browser-index.js.map": {
"imports": [], "imports": [],
"inputs": {}, "inputs": {},
"bytes": 5506901 "bytes": 5518750
}, },
"dist/demo-browser-index.js": { "dist/demo-browser-index.js": {
"imports": [], "imports": [],
"inputs": { "inputs": {
"dist/human.esm.js": { "dist/human.esm.js": {
"bytesInOutput": 1284484 "bytesInOutput": 1660256
}, },
"dist/human.esm.js": { "dist/human.esm.js": {
"bytesInOutput": 0 "bytesInOutput": 8716
}, },
"demo/draw.js": { "demo/draw.js": {
"bytesInOutput": 4622 "bytesInOutput": 7275
}, },
"demo/menu.js": { "demo/menu.js": {
"bytesInOutput": 9476 "bytesInOutput": 12356
}, },
"demo/browser.js": { "demo/browser.js": {
"bytesInOutput": 10896 "bytesInOutput": 15336
} }
}, },
"bytes": 1318242 "bytes": 1704061
} }
} }
} }

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,7 +5,7 @@
"imports": [] "imports": []
}, },
"package.json": { "package.json": {
"bytes": 3225, "bytes": 3216,
"imports": [] "imports": []
}, },
"src/emotion/emotion.js": { "src/emotion/emotion.js": {
@ -392,7 +392,7 @@
"bytesInOutput": 1293 "bytesInOutput": 1293
}, },
"package.json": { "package.json": {
"bytesInOutput": 2871 "bytesInOutput": 2862
}, },
"src/human.js": { "src/human.js": {
"bytesInOutput": 5570 "bytesInOutput": 5570
@ -401,7 +401,7 @@
"bytesInOutput": 0 "bytesInOutput": 0
} }
}, },
"bytes": 213098 "bytes": 213089
} }
} }
} }

2
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

6
dist/human.esm.json vendored
View File

@ -149,7 +149,7 @@
] ]
}, },
"package.json": { "package.json": {
"bytes": 3225, "bytes": 3216,
"imports": [] "imports": []
}, },
"src/emotion/emotion.js": { "src/emotion/emotion.js": {
@ -658,7 +658,7 @@
"bytesInOutput": 1294 "bytesInOutput": 1294
}, },
"package.json": { "package.json": {
"bytesInOutput": 2872 "bytesInOutput": 2863
}, },
"src/human.js": { "src/human.js": {
"bytesInOutput": 5583 "bytesInOutput": 5583
@ -667,7 +667,7 @@
"bytesInOutput": 0 "bytesInOutput": 0
} }
}, },
"bytes": 1274644 "bytes": 1274635
} }
} }
} }

2
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

6
dist/human.json vendored
View File

@ -149,7 +149,7 @@
] ]
}, },
"package.json": { "package.json": {
"bytes": 3225, "bytes": 3216,
"imports": [] "imports": []
}, },
"src/emotion/emotion.js": { "src/emotion/emotion.js": {
@ -658,13 +658,13 @@
"bytesInOutput": 1294 "bytesInOutput": 1294
}, },
"package.json": { "package.json": {
"bytesInOutput": 2871 "bytesInOutput": 2862
}, },
"src/human.js": { "src/human.js": {
"bytesInOutput": 5621 "bytesInOutput": 5621
} }
}, },
"bytes": 1274689 "bytes": 1274680
} }
} }
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
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

View File

@ -5,7 +5,7 @@
"imports": [] "imports": []
}, },
"package.json": { "package.json": {
"bytes": 3225, "bytes": 3216,
"imports": [] "imports": []
}, },
"src/emotion/emotion.js": { "src/emotion/emotion.js": {
@ -392,7 +392,7 @@
"bytesInOutput": 1292 "bytesInOutput": 1292
}, },
"package.json": { "package.json": {
"bytesInOutput": 2871 "bytesInOutput": 2862
}, },
"src/human.js": { "src/human.js": {
"bytesInOutput": 28 "bytesInOutput": 28
@ -401,7 +401,7 @@
"bytesInOutput": 5570 "bytesInOutput": 5570
} }
}, },
"bytes": 213105 "bytes": 213096
} }
} }
} }

View File

@ -45,7 +45,7 @@
"build-esm-nobundle": "esbuild --bundle --minify --platform=browser --sourcemap --target=esnext --format=esm --external:@tensorflow --external:fs --metafile=dist/human.esm-nobundle.json --outfile=dist/human.esm-nobundle.js src/human.js", "build-esm-nobundle": "esbuild --bundle --minify --platform=browser --sourcemap --target=esnext --format=esm --external:@tensorflow --external:fs --metafile=dist/human.esm-nobundle.json --outfile=dist/human.esm-nobundle.js src/human.js",
"build-node": "esbuild --bundle --minify --platform=node --sourcemap --target=esnext --format=cjs --metafile=dist/human.node.json --outfile=dist/human.node.js src/human.js", "build-node": "esbuild --bundle --minify --platform=node --sourcemap --target=esnext --format=cjs --metafile=dist/human.node.json --outfile=dist/human.node.js src/human.js",
"build-node-nobundle": "esbuild --bundle --minify --platform=node --sourcemap --target=esnext --format=cjs --external:@tensorflow --metafile=dist/human.node.json --outfile=dist/human.node-nobundle.js src/human.js", "build-node-nobundle": "esbuild --bundle --minify --platform=node --sourcemap --target=esnext --format=cjs --external:@tensorflow --metafile=dist/human.node.json --outfile=dist/human.node-nobundle.js src/human.js",
"build-demo": "esbuild --bundle --minify --platform=browser --sourcemap --target=esnext --format=esm --external:fs --metafile=dist/demo-browser-index.json --outfile=dist/demo-browser-index.js demo/browser.js", "build-demo": "esbuild --bundle --platform=browser --sourcemap --target=esnext --format=esm --external:fs --metafile=dist/demo-browser-index.json --outfile=dist/demo-browser-index.js demo/browser.js",
"build": "rimraf dist/* && npm run build-iife && npm run build-esm-bundle && npm run build-esm-nobundle && npm run build-node && npm run build-node-nobundle && npm run build-demo && ls -l dist/", "build": "rimraf dist/* && npm run build-iife && npm run build-esm-bundle && npm run build-esm-nobundle && npm run build-node && npm run build-node-nobundle && npm run build-demo && ls -l dist/",
"update": "npm update --depth 20 --force && npm dedupe && npm prune && npm audit", "update": "npm update --depth 20 --force && npm dedupe && npm prune && npm audit",
"changelog": "node changelog.js" "changelog": "node changelog.js"