-
Notifications
You must be signed in to change notification settings - Fork 9
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
How to test TerriaJS improvements #2
Comments
I don't know how to do this in the proper way. |
@Vort, okay, yes, we can do that if we have to. But I'm hoping that @jiwalker-usgs (or perhaps @kring or @stevage) will have a nicer solution. |
It sounds like what we really need is a "dummies guide" to setting up a development environment. i.e a step by step process for getting all the code up and running, served from my own machine. And a what to do to update it all when I pull new code from gitHub or make a change. And, of course, how to write and run tests. Like Rich, I kinda-sorta know my way around git (and python, and python-based web services), but not deploying the html/css/javascript sandwich. -CHB |
I think the guides you're looking for are here: And here: Short version: you can use What you did with modifying package.json should work too, though. What errors did you get? |
Oops, the second link above should be: |
@kring, setting git link in |
I'm not sure what you mean by "setting git link in package.json", since it's a command-line thing? You do need to run In other words:
If you haven't already, you should probably create and use branches for your changes to TerriaJS and Cesium rather than using commit hashes in the checkout commands above. |
This works of course.
|
Yes, that should work too. I think you want:
(although it might work without the Also, depending on your version of npm, you may need to run npm twice because the first time will fail due to an npm bug. Details on that here: https://github.com/TerriaJS/terriajs/wiki/Problems-and-Solutions Finally, we unfortunately don't keep https://github.com/TerriaJS/map as up-to-date as we should. It's possible that there are incompatibilities between that and the master version of TerriaJS. Cloning https://github.com/NICTA/nationalmap is more reliable until we get our act together a little better with the map repo. |
For the TerriaJS-Dive project, I'm going to have to know how to test proposed fixes/enhancements.
I'm struggling a bit because my git skills are "advanced novice", and my nodejs skills are "dummy".
My deployment at:
http://comt.sura.org/proxy_3001/
is a local branch of the Australian national map at:
https://github.com/TerriaJS/map
Now I'd like to test this enhancement to display vectors by @Vort, described here:
TerriaJS/terriajs#1089 (comment)
I thought I could just test this by modifying my
package.json
file to point to these Vort branches thusly:and then doing
But I got errors about a bunch of missing packages
@jiwalker-usgs , do you know the "correct" way to test these enhancements?
https://github.com/TerriaJS/terriajs/wiki/Deploying-and-building-TerriaJS
The text was updated successfully, but these errors were encountered: