argelius / react-onsenui-redux-weather

Onsen UI sample app using Redux and React
https://onsen.io/
MIT License
121 stars 78 forks source link

How to build it ? #2

Closed franzejr closed 8 years ago

franzejr commented 8 years ago

Hello, I liked the app. I've downloaded and I'm able to run it locally with the commands on README. I would like to know how to build this in two ways: 1. Integrate with https://monaca.io/ 2. Build by cordova.

Thanks in advance if you can help me.

argelius commented 8 years ago

EDIT: Oh, I didn't read your message carefully. To answer your question:

  1. Right now Monaca IDE doesn't support JSX but we will add support for it pretty soon.
  2. I named the distribution folder to dist but renaming it to www should make it possible to run this with Cordova. Just do npm run build to create the dist folder.

Previous answer:

Hi!

Thanks for checking it out :+1:

If you have NodeJS installed you can do:

npm install
npm start

to run it.

I will change the project to be compatible with the Monaca CLI later.

franzejr commented 8 years ago

Thanks, @argelius ! I have created another cordova project and I've copied the content of dist and everything was fine. I could generate a build. :)