-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[OC-60] Oc client browser #534
Conversation
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 generally looks good, but as discussed, there is still a missing part in the express' static redirector that relies on the physical file being there - which needs to be updated to use both the min + map files from the dependency
@@ -3,4 +3,4 @@ script. | |||
oc.conf = oc.conf || {}; | |||
oc.conf.templates = oc.conf.templates || []; | |||
oc.conf.templates = oc.conf.templates.concat(!{JSON.stringify(templates)}); | |||
script(src=staticPath+"src/oc-client.min.js", type="text/javascript") | |||
script(src="https://unpkg.com/oc-client-browser@1.0.0/dist/oc-client.min.js", type="text/javascript") |
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 think we should update the oc's build script so that this version (1.0.0) comes from a require('oc-client-browser/package').version
.
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.
couple of minor notes
appveyor.yml
Outdated
@@ -24,4 +24,4 @@ install: | |||
build: off | |||
|
|||
test_script: | |||
- cmd: grunt test | |||
- cmd: grunt |
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.
If appveyor rely on npm test by default, then this could also be cleaned up further
tasks/build.js
Outdated
grunt.log[err ? 'error' : 'ok']( | ||
err ? err : 'Client has been built and packaged' | ||
const done = this.async(); | ||
const version = ocClientBrowser.version; |
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.
version is not needed anymore here
Fixes #438 |
Blocking PR that need to be published:
Fixes and final cleanup oc-client-browser#5
Removed what has been moved to oc-client-browser
Rely on oc-client-browser through CDN for the OC client component
Rely on oc-client-browser through NPM for the node client