Skip to content
This repository has been archived by the owner on Mar 28, 2022. It is now read-only.

Commit

Permalink
get stuff building with the monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeseese committed Apr 28, 2019
1 parent dc11bf0 commit e706301
Show file tree
Hide file tree
Showing 23 changed files with 11,649 additions and 25,629 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.tar.gz
node_modules
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
dashboard:
container_name: vfr-dashboard
image: videofacerecognition/dashboard
build: ../dashboard
build: packages/dashboard
restart: always
networks:
- video-face-recognition
Expand All @@ -18,7 +18,7 @@ services:
persistence:
container_name: vfr-persistence
image: videofacerecognition/persistence
build: ../persistence
build: packages/persistence
restart: always
networks:
- video-face-recognition
Expand Down
9 changes: 9 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"packages": [
"packages/*"
],
"npmClient": "yarn",
"npmClientArgs": ["--ignore-engines"],
"version": "0.0.0",
"useWorkspaces": true
}
29 changes: 29 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "video-face-recognition",
"version": "1.0.0-alpha.0",
"description": "Monorepo for the Video Face Recognition (VFR) system",
"repository": "[email protected]:seeseplusplus/video-face-recognition.git",
"author": "Mike Seese",
"license": "MIT",
"private": true,
"devDependencies": {
"lerna": "^3.13.4"
},
"workspaces": {
"packages": [
"packages/*"
]
},
"scripts": {
"prepare": "lerna bootstrap",
"build": "scripts/build.sh",
"build:core": "cd packages/core && yarn build",
"build:dashborad": "cd packages/dashboard && yarn build",
"build:persistence": "cd packages/persistence && yarn build",
"preinstall": "node scripts/check-yarn.js",
"clean:build": "./scripts/clean-build.sh",
"clean:all": "./scripts/clean-all.sh",
"clean:build:core": "cd packages/core && rm -rf dist",
"clean:build:persistence": "cd packages/persistence && rm -rf dist"
}
}
2 changes: 1 addition & 1 deletion packages/core/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
node_modules
build
dist
yarn-error.log
.env
8 changes: 4 additions & 4 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
"test": "echo \"Error: no test specified\" && exit 1",
"build": "tsc --baseUrl .",
"prepare": "npm run build",
"gather": "node build/cli/gather.js",
"train": "node build/cli/train.js",
"recognize": "node build/cli/recognize.js",
"plot": "node build/cli/plot.js"
"gather": "node dist/cli/gather.js",
"train": "node dist/cli/train.js",
"recognize": "node dist/cli/recognize.js",
"plot": "node dist/cli/plot.js"
},
"license": "MIT",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/test/chokepoint/p1e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const tests = (model: fr.FaceDescriptor[], baseDirectory: string) => {
const rgbImage = fr.loadImage(path.join(testDirectory, files[i]));

// detect and identify faces
const faces = await session.getFaces(rgbImage);
const faces = await session.addImage(rgbImage);

// compare to truth
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"lib": [ "dom", "es2017" ],
"outDir": "./build",
"outDir": "./dist",
"rootDir": "./src",
"sourceMap": true
}
Expand Down
Loading

0 comments on commit e706301

Please sign in to comment.