-
Notifications
You must be signed in to change notification settings - Fork 0
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
install DAP by npm #14
base: master
Are you sure you want to change the base?
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.
The DAP script should be collected by webpack.
95d8724
to
a98975e
Compare
cc2d98b
to
24155fa
Compare
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.
See the line I pointed at
package.json
Outdated
@@ -44,6 +44,7 @@ | |||
"marked": "^0.3.19", | |||
"underscore": "^1.7.0", | |||
"webpack": "^4.20.2", | |||
"webpack-cli": "^3.1.1" | |||
"webpack-cli": "^3.1.1", | |||
"Universal-Federated-Analytics-Min.js": "digital-analytics-program/gov-wide-code#master", |
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.
Should not have a trailing comma here.
Basically, the error message explains itself. It can't not find the package.json. I suspect that it's due to wrong trailing comma. The trailing comma make the json file invalid. |
Don't remove the package-lock.json though. |
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.
Finally found the correct way ....
package.json
Outdated
@@ -44,6 +44,7 @@ | |||
"marked": "^0.3.19", | |||
"underscore": "^1.7.0", | |||
"webpack": "^4.20.2", | |||
"webpack-cli": "^3.1.1" | |||
"webpack-cli": "^3.1.1", | |||
"Universal-Federated-Analytics-Min.js": "https://github.com/digital-analytics-program/gov-wide-code/archive/master.zip" |
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.
Use "digital-analytics-program": "https://github.com/digital-analytics-program/gov-wide-code.git#fcba3b93059e23b8d1b31df25ac6c86597381395"
Need to test if JQuery 3.1 work though. See NAL-i5K/genomics-workspace#249 first. |
i remove package-lock.json just because i want to regenerate the new package-lock.json then, and i still confused why can't i just put #master after the url but for the completed commit. |
The reason is that if we specify the master branch, when they update the master, our application will be directly updated (since we only say we want get master branch of the package). It's ok if we want that update, but if we don't want. That causes the problem. |
116c8ee
to
074d455
Compare
Pull Request Test Coverage Report for Build 125
💛 - Coveralls |
Codecov Report
@@ Coverage Diff @@
## master #14 +/- ##
=======================================
Coverage 50.97% 50.97%
=======================================
Files 64 64
Lines 2660 2660
=======================================
Hits 1356 1356
Misses 1304 1304
Continue to review full report at Codecov.
|
No description provided.