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

Bundle #39

Closed
GordonCode25 opened this issue Mar 2, 2018 · 3 comments
Closed

Bundle #39

GordonCode25 opened this issue Mar 2, 2018 · 3 comments

Comments

@GordonCode25
Copy link

I was with you until I got to your bundle section in the docs. This is the all import bit really.

"Currently, the easiest way is to simply download a node binary for your platform, copy it into your project root. Then create a shortcut/script to execute that.

Make sure you have babel transpile it, in case you use any new syntax not supported by your current version of node."

Ok downloaded node-v8.9.4-darwin-x64.tar.gz and copied to root. Do I unzip. Create what shortcut to where and then place shortcut where? Make sure you "babel transpile it", do what????

Hope you can make that clearer, I'm a react developer.

@albe-rosado
Copy link
Contributor

Hi @gordygordy , as you know Javascript is an interpreted language that needs an engine(SpiderMonkey, V8,...) to run your script files. What he meant was that if you need something more "standalone"-ish, you can download the node binaries for your platform and make a *.sh (or *.bat in Windows?) file where you point the node binary to your project entry files ( index.js ) so could execute it like ./run.sh for example. Using babel you can bundle your app in a more compact and light files, same as you were to serve it in a website. You can also use nexe to do the packaging work for you. Hope it helps. Have a great weekend!

@kusti8
Copy link
Owner

kusti8 commented Mar 3, 2018

I've explained it more after that paragraph. That just serves to give an overview. So basically run npm run build, then unzip it, follow the picture if on Windows or the script if on Linux/Mac and you should be done. I'll try and clear it up a bit though.

@kusti8 kusti8 closed this as completed in cfa8b73 Mar 3, 2018
@GordonCode25
Copy link
Author

Thanks for getting back to me guys. Maybe I'm expecting the wrong thing. I extracted node into the root of my project and then ran build. I was expecting a .app file to be built or something, like electron. Think I must be misunderstanding this project. I'll keep watching to see how things progress.

@mischnic mischnic mentioned this issue Mar 4, 2018
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

3 participants