diff --git a/.npmignore b/.npmignore index 1e071ede..64c274ec 100644 --- a/.npmignore +++ b/.npmignore @@ -6,4 +6,3 @@ test wiki dist/tfjs.esm.js dist/tfjs.esm.js.map -types/dist/tfjs.esm.d.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d14cfd0..5c79ff18 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,16 +1,18 @@ -# @vladmandic/human +# packageJson - Version: **2.1.5** - Description: **Human: AI-powered 3D Face Detection & Rotation Tracking, Face Description & Recognition, Body Pose Tracking, 3D Hand & Finger Tracking, Iris Analysis, Age & Gender & Emotion Prediction, Gesture Recognition** + Version: **undefined** + Description: **undefined** - Author: **Vladimir Mandic ** - License: **MIT** + Author: **undefined** + License: **undefined** Repository: **** ## Changelog -### **HEAD -> main** 2021/09/06 mandic00@live.com +### **HEAD -> main** 2021/09/10 mandic00@live.com +- remove old build server +- change build process - add benchmark info - simplify canvas handling in nodejs - full rebuild diff --git a/build.json b/build.json index 762c9a32..7ef4414a 100644 --- a/build.json +++ b/build.json @@ -5,21 +5,21 @@ "console": true, "output": "test/build.log" }, + "profiles": { + "production": ["clean", "compile", "typings", "typedoc", "lint", "changelog"], + "development": ["serve", "watch", "compile"] + }, "clean": { - "enabled": true, "locations": ["dist/*", "types/*", "typedoc/*"] }, "lint": { - "enabled": true, "locations": [ "src/**/*.ts", "test/*.js", "demo/**/*.js" ], "rules": { } }, "changelog": { - "enabled": true, "log": "CHANGELOG.md" }, "serve": { - "enabled": true, "sslKey": "node_modules/@vladmandic/build/cert/https.key", "sslCrt": "node_modules/@vladmandic/build/cert/https.crt", "httpPort": 10030, @@ -29,21 +29,14 @@ "defaultFile": "index.html" }, "build": { - "enabled": true, "global": { "target": "es2018", "sourcemap": true, "banner": { "js": "/*\n Human\n homepage: \n author: '\n*/\n" } }, - "production": { - "minify": false - }, - "development": { - "minify": false - }, "targets": [ { - "name": "tfjs for nodejs with cpu", + "name": "tfjs/nodejs/cpu", "platform": "node", "format": "cjs", "input": "tfjs/tf-node.ts", @@ -52,7 +45,7 @@ "external": ["@tensorflow"] }, { - "name": "human for nodejs with cpu", + "name": "human/nodejs/cpu", "platform": "node", "format": "cjs", "input": "src/human.ts", @@ -61,7 +54,7 @@ "external": ["@tensorflow"] }, { - "name": "tfjs for nodejs with gpu", + "name": "tfjs/nodejs/gpu", "platform": "node", "format": "cjs", "input": "tfjs/tf-node-gpu.ts", @@ -70,7 +63,7 @@ "external": ["@tensorflow"] }, { - "name": "human for nodejs with gpu", + "name": "human/nodejs/gpu", "platform": "node", "format": "cjs", "input": "src/human.ts", @@ -79,7 +72,7 @@ "external": ["@tensorflow"] }, { - "name": "tfjs for nodejs with wasm", + "name": "tfjs/nodejs/wasm", "platform": "node", "format": "cjs", "input": "tfjs/tf-node-wasm.ts", @@ -88,7 +81,7 @@ "external": ["@tensorflow"] }, { - "name": "human for nodejs with wasm", + "name": "human/nodejs/wasm", "platform": "node", "format": "cjs", "input": "src/human.ts", @@ -97,7 +90,7 @@ "external": ["@tensorflow"] }, { - "name": "tfjs for browser esm nobundle", + "name": "tfjs/browser/esm/nobundle", "platform": "browser", "format": "esm", "input": "tfjs/tf-browser.ts", @@ -106,7 +99,7 @@ "external": ["@tensorflow", "fs", "os", "buffer", "util"] }, { - "name": "human for browser esm nobundle", + "name": "human/browser/esm/nobundle", "platform": "browser", "format": "esm", "input": "src/human.ts", @@ -115,25 +108,27 @@ "external": ["@tensorflow", "fs", "os", "buffer", "util"] }, { - "name": "tfjs for browser esm bundle", + "name": "tfjs/browser/esm/bundle", "platform": "browser", "format": "esm", "input": "tfjs/tf-browser.ts", "output": "dist/tfjs.esm.js", "sourcemap": false, + "minify": true, "external": ["fs", "os", "buffer", "util"] }, { - "name": "human for browser iife bundle", + "name": "human/browser/iife/bundle", "platform": "browser", "format": "iife", "input": "src/human.ts", "output": "dist/human.js", "sourcemap": false, + "minify": true, "external": ["fs", "os", "buffer", "util"] }, { - "name": "human for browser esm bundle", + "name": "human/browser/esm/bundle", "platform": "browser", "format": "esm", "input": "src/human.ts", @@ -146,7 +141,6 @@ ] }, "watch": { - "enabled": true, "locations": [ "src/**", "tfjs/*" ] }, "typescript": { diff --git a/package.json b/package.json index b569bf08..8712b73c 100644 --- a/package.json +++ b/package.json @@ -8,15 +8,22 @@ "browser": "dist/human.esm.js", "types": "types/src/human.d.ts", "author": "Vladimir Mandic ", - "bugs": { "url": "https://github.com/vladmandic/human/issues" }, + "bugs": { + "url": "https://github.com/vladmandic/human/issues" + }, "homepage": "https://vladmandic.github.io/human/demo/index.html", "license": "MIT", - "engines": { "node": ">=14.0.0" }, - "repository": { "type": "git", "url": "git+https://github.com/vladmandic/human.git" }, + "engines": { + "node": ">=14.0.0" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/vladmandic/human.git" + }, "scripts": { "start": "node --no-warnings demo/nodejs/node.js", - "dev": "build development", - "build": "build production", + "dev": "build --profile development", + "build": "build --profile production", "test": "node --no-warnings --unhandled-rejections=strict --trace-uncaught test/test.js", "lint": "eslint src demo test", "scan": "npx auditjs@latest ossi --dev --quiet" @@ -63,9 +70,8 @@ "@typescript-eslint/eslint-plugin": "^4.31.0", "@typescript-eslint/parser": "^4.31.0", "@vladmandic/pilogger": "^0.3.1", - "@vladmandic/build": "^0.3.4", + "@vladmandic/build": "^0.4.1", "canvas": "^2.8.0", - "chokidar": "^3.5.2", "dayjs": "^1.10.7", "esbuild": "^0.12.26", "eslint": "^7.32.0", @@ -75,13 +81,11 @@ "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^5.1.0", "node-fetch": "^3.0.0", - "rimraf": "^3.0.2", "seedrandom": "^3.0.5", - "simple-git": "^2.45.1", "tslib": "^2.3.1", - "typedoc": "0.22.1", + "typedoc": "0.22.2", "typescript": "4.4.3" }, - "peerDependencies": { }, - "dependencies": { } + "dependencies": { + } }