Merge pull request #132 from justadudewhohacks/nodejs
nodejs support
Showing
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
examples/examples-nodejs/commons/env.ts
0 → 100644
examples/examples-nodejs/commons/index.ts
0 → 100644
examples/examples-nodejs/commons/saveFile.ts
0 → 100644
examples/examples-nodejs/faceDetection.ts
0 → 100644
examples/examples-nodejs/faceRecognition.ts
0 → 100644
examples/examples-nodejs/package-lock.json
0 → 100644
This diff is collapsed.
Click to expand it.
examples/examples-nodejs/package.json
0 → 100644
File moved
File moved
File moved
File moved
File moved
jasmine-node.js
0 → 100644
This diff is collapsed.
Click to expand it.
| ... | @@ -12,15 +12,17 @@ | ... | @@ -12,15 +12,17 @@ |
| "tsc-es6": "tsc --p tsconfig.es6.json", | "tsc-es6": "tsc --p tsconfig.es6.json", | ||
| "build": "rm -rf ./build && rm -rf ./dist && npm run rollup && npm run rollup-min && npm run tsc && npm run tsc-es6", | "build": "rm -rf ./build && rm -rf ./dist && npm run rollup && npm run rollup-min && npm run tsc && npm run tsc-es6", | ||
| "test": "karma start", | "test": "karma start", | ||
| "test-browser": "karma start --single-run", | |||
| "test-node": "ts-node node_modules/jasmine/bin/jasmine --config=jasmine-node.js", | |||
| "test-all": "npm run test-browser && npm run test-node", | |||
| "test-facelandmarknets": "set UUT=faceLandmarkNet&& karma start", | "test-facelandmarknets": "set UUT=faceLandmarkNet&& karma start", | ||
| "test-facerecognitionnet": "set UUT=faceRecognitionNet&& karma start", | "test-facerecognitionnet": "set UUT=faceRecognitionNet&& karma start", | ||
| "test-ssdmobilenetv1": "set UUT=ssdMobilenetv1&& karma start", | "test-ssdmobilenetv1": "set UUT=ssdMobilenetv1&& karma start", | ||
| "test-tinyfacedetector": "set UUT=tinyFaceDetector&& karma start", | "test-tinyfacedetector": "set UUT=tinyFaceDetector&& karma start", | ||
| "test-mtcnn": "set UUT=mtcnn&& karma start", | "test-mtcnn": "set UUT=mtcnn&& karma start", | ||
| "test-tinyyolov2": "set UUT=tinyYolov2&& karma start", | |||
| "test-cpu": "set BACKEND_CPU=true&& karma start", | "test-cpu": "set BACKEND_CPU=true&& karma start", | ||
| "test-exclude-uncompressed": "set EXCLUDE_UNCOMPRESSED=true&& karma start", | "test-exclude-uncompressed": "set EXCLUDE_UNCOMPRESSED=true&& karma start", | ||
| "test-travis": "karma start --single-run", | "test-node-exclude-uncompressed": "set EXCLUDE_UNCOMPRESSED=true&& ts-node node_modules/jasmine/bin/jasmine --config=jasmine-node.js", | ||
| "docs": "typedoc --options ./typedoc.config.js ./src" | "docs": "typedoc --options ./typedoc.config.js ./src" | ||
| }, | }, | ||
| "keywords": [ | "keywords": [ | ||
| ... | @@ -33,14 +35,17 @@ | ... | @@ -33,14 +35,17 @@ |
| "author": "justadudewhohacks", | "author": "justadudewhohacks", | ||
| "license": "MIT", | "license": "MIT", | ||
| "dependencies": { | "dependencies": { | ||
| "@tensorflow/tfjs-core": "^0.13.2", | "@tensorflow/tfjs-core": "0.13.8", | ||
| "tfjs-image-recognition-base": "^0.1.3", | "tfjs-image-recognition-base": "0.2.0", | ||
| "tfjs-tiny-yolov2": "^0.2.1", | "tfjs-tiny-yolov2": "0.3.0", | ||
| "tslib": "^1.9.3" | "tslib": "^1.9.3" | ||
| }, | }, | ||
| "devDependencies": { | "devDependencies": { | ||
| "@tensorflow/tfjs-node": "^0.1.19", | |||
| "@types/jasmine": "^2.8.8", | "@types/jasmine": "^2.8.8", | ||
| "@types/node": "^10.9.2", | "@types/node": "^10.9.2", | ||
| "canvas": "^2.0.1", | |||
| "jasmine": "^3.3.0", | |||
| "jasmine-core": "^3.2.1", | "jasmine-core": "^3.2.1", | ||
| "karma": "^3.0.0", | "karma": "^3.0.0", | ||
| "karma-chrome-launcher": "^2.2.0", | "karma-chrome-launcher": "^2.2.0", | ||
| ... | @@ -51,6 +56,7 @@ | ... | @@ -51,6 +56,7 @@ |
| "rollup-plugin-node-resolve": "^3.3.0", | "rollup-plugin-node-resolve": "^3.3.0", | ||
| "rollup-plugin-typescript2": "^0.16.1", | "rollup-plugin-typescript2": "^0.16.1", | ||
| "rollup-plugin-uglify": "^4.0.0", | "rollup-plugin-uglify": "^4.0.0", | ||
| "ts-node": "^7.0.1", | |||
| "typescript": "2.8.4" | "typescript": "2.8.4" | ||
| } | } | ||
| } | } |
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
test/env.ts
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to comment