-
-
Notifications
You must be signed in to change notification settings - Fork 30
Link global opencv4nodejs to give access #106
Conversation
- npm install --no-save mjpeg-consumer | ||
script: | ||
- npm run test | ||
- npm run e2e-test | ||
- npm run test && npm run e2e-test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't we want to run e2e test if test
fails?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not particularly. I'd rather the feedback earlier.
Also, if people aren't circumventing the pre-commit hooks, then the unit tests will always pass.
@@ -58,6 +58,7 @@ | |||
"scripts": { | |||
"clean": "rm -rf node_modules && rm -f package-lock.json && npm install", | |||
"prepare": "gulp prepublish", | |||
"postinstall": "npm ls -g opencv4nodejs --depth=0 && npm link opencv4nodejs", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will it work for windows?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i never remember how much bashism npm makes available on win, but LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤞
I do not have the time right now to make the fully generalized solution proposed in #105. However, if
opencv4nodejs
is already globally installed, it can be used by linking into this package. So check and link if it is there, after the install.