-
Notifications
You must be signed in to change notification settings - Fork 20
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
Move from component to webpack #94
Move from component to webpack #94
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.
Thanks @ccyrille, this looks great and is long overdue! I just had a couple of small nitpicky items regarding whitespace and dependencies.
client/widget.html
Outdated
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.2.1/backbone-min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.7/leaflet-src.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.4/raphael-min.js"></script> |
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.
Could you fix the whitespace here to be spaces and align with the above script tag?
package.json
Outdated
"inquirer": "^6.3.1", | ||
"jquery": "^1.11.3", | ||
"leaflet": "^0.7.3", | ||
"loadash": "^1.0.0", |
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 this be lodash
?
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.
You are right, and in fact I wasn't using it anymore so I simply removed it ;)
package.json
Outdated
"haversine": "^1.1.1", | ||
"html-loader": "^0.5.5", | ||
"inquirer": "^6.3.1", | ||
"jquery": "^1.11.3", |
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.
A number of these dev dependencies seem to actual dependencies rather than dev dependencies. For example, bootstrap, jquery, backbone, eonasdan-bootstrap-datetimepicker, underscore, moment.
'window.L': 'leaflet', | ||
'$': 'jQuery' | ||
} | ||
}; |
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.
As with the html file, could you use spaces here instead of tabs to conform with the rest of the project (two spaces per indentation)?
package.json
Outdated
}, | ||
"scripts": { | ||
"start": "serve client", | ||
"watch": "webpack --watch", | ||
"webpack": "webpack", |
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 more intuitive name for this webpack
script to me is build
. It keeps the command build tool-independent and is more of a conventional name. I suppose the Makefile
would also need to change accordingly.
Hi @landonreed, thanks for your nice review ! I agree with all the recommandations you made, and pushed the associated changes. Don't hesitate to come back to me if needed... |
Sorry to bother you @landonreed but any chance you can review this PR ? Do you need me to do additional work from me ? |
Hi @demory @trevorgerhardt, sorry to bother you but I am stuck here. I have put some effort making the otp.js usable / maintainable again by moving to webpack, but I haven't here from Landon since then. Could you help ? |
Hi @ccyrille. We no longer maintain this project as we don't use it internally anymore. It appears the OpenTripPlanner project has mostly moved on from it also with https://github.com/opentripplanner/otp-react-redux and https://github.com/opentripplanner/otp-ui. The next merged PR should probably be an update relating to the status of this project pointing users to more active client side OTP libs and a more up to date repo for this project. |
Hi @trevorgerhardt, hoping that I didn't work for nothing :
Thanks, Cyrille |
Executing a
make build
on the master, even by removing disappeared dependencies likekpwebb/select2
, I got the following :Problem appears to be at the heart of
component
package manager, which is not maintained since 2015 (see componentjs/component#639). I decided to migrate the whole project towebpack
, sticking as much as possible to the current implementation.This also solve the following issue : #91