jedwards1211 / meteor-webpack-react

(DEPRECATED) use jedwards1211/crater instead
https://github.com/jedwards1211/crater
374 stars 75 forks source link

CoffeeScript/ Usage with meteord #129

Open zimt28 opened 8 years ago

zimt28 commented 8 years ago

Hey there, I'm thinking about moving my Meteor app over to webpack, and this seems to be a nice solution. I have two questions.

First, can I easily use this with meteord? I think I could just run prod.js and then create my image, right?

Second, I'm a CoffeeScript user. I'd like to have all the scripts in / to be .coffee files, but I think I'd have to compile them to .js anyway, so I'd just end up with more files. Do you think there's a better solution for me or should I just keep all the files right there in JavaScript, which would also make updates from this repo easier?

AdamBrodzinski commented 8 years ago

@zimt28 Docker should work fine if you modify the docker image. Webpack builds different than meteor build so at the least you would need to change build_app.sh so that it runs the webpack build script.

You should also be able to build a tarball locally and then build the app and upload it to S3: https://github.com/meteorhacks/meteord#21-from-the-web

If you really don't like the coffee files you would need to compile them, doubling the files. I think dealing with JS will be easier IMHO.

zimt28 commented 8 years ago

@AdamBrodzinski thanks for your response. I thought that after running prod.js I would end up with a fully functional meteor app inside of meteor-core, which I could then convert into an image having my Dockerfile inside meteor-core as well. Wouldn't this work?

About CoffeeScript, I've never used it outside of Meteor, so I didn't know about the coffee command-line tool. This solves my problem as I actually prefer CoffeeScript syntax and want to have things consistent.