Skip to content
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

CoffeeScript/ Usage with meteord #129

Open
zimt28 opened this issue Dec 15, 2015 · 2 comments
Open

CoffeeScript/ Usage with meteord #129

zimt28 opened this issue Dec 15, 2015 · 2 comments

Comments

@zimt28
Copy link

zimt28 commented Dec 15, 2015

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
Copy link
Collaborator

@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
Copy link
Author

zimt28 commented Dec 15, 2015

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants