Commit Graph

47 Commits

Author SHA1 Message Date
Artur Girenko ca43c940fb working solution with om-next stateful components
- added re-natal.support namespace which provides functions to make it possible mounting om root application not on "real" root node but on other component which acts as a root node.
2016-02-10 22:14:05 +01:00
Artur Girenko 6328174554 add PoC of om-next interface
Now it is just static ui which works with figwheel-bridge. Could not implement :jsload-callback tom make figwheel work correctly yet.
State has to be introduced next.
2016-02-07 19:43:43 +01:00
Artur Girenko d55d9d987c prepare code to support multiple react interfaces 2016-02-07 13:48:00 +01:00
Artur Girenko c4113aea85 move patching of RN packager into a separate command 'enable-source-maps'
- patching the packager in 'upgrade' command is a bit too intrusive, this can be done optionally only when source maps are actually needed.
2016-02-06 16:00:09 +01:00
Artur Girenko 84f9f2bec0 cleanup CLI: 'launch' command is not needed since RN 0.19.0 now has 'run-ios' command to run iOS app
- removed 're-nata launch' and related commands
2016-02-06 14:23:55 +01:00
Gabriel Horner 953c25064d Add copy-figwheel-bridge command - close #22 2016-02-05 11:52:12 -05:00
Artur Girenko ab7f00031d display an error in case OSX specific command is executed on other OS 2016-02-01 19:58:47 +01:00
Marcus Wangnusson 5daf7989ac Revert to previous way of checking Leiningen installation.
For Windows, check using where. If missing, throw error similar
to when running on OSX/Linux.
2016-02-01 19:26:41 +01:00
Marcus Wangnusson 2ea5143529 Fixed Leiningen prerequisite check 2016-01-31 20:56:44 +01:00
Marcus Wangnusson 5b866b0922 Added support for Windows 2016-01-31 20:04:30 +01:00
Artur Girenko dc3105a977 bump RN version to 0.19.0 2016-01-31 12:16:16 +01:00
Artur Girenko 13431d00d7 remove ^:figwheel-load from core.cljs in upgrade command 2016-01-30 18:21:27 +01:00
Artur Girenko 4730b9e3c5 add target/ to .gitignore 2016-01-29 21:27:34 +01:00
Artur Girenko 33a38b7c73 add a check for missing npm dependencies and validity of .re-natal config file #17
- using lib https://www.npmjs.com/package/check-dependencies
2016-01-29 20:25:00 +01:00
Artur Girenko 1b37d60ea0 support development of iOS and Android apps simultaneously #4
- remove setting up host from use-figwheel command
- introduce use-android-device command for changing android host. use-android-device command has to be executed only when user changes android device type for development
- change figwheel support functions in user.clj to support multiple builds
- add instructions to README of how to run iOS and Android simulators simultaneously
2016-01-24 13:46:34 +01:00
Artur Girenko b601f62a4f do not regenerate env/dev* files in use-figwheel command #13
- No need to change host for iOS it is always localhost
- For android simulators, update only the host in figwheel URL instead of overwriting whole file
- env/dev can be removed from .gitignore
2016-01-24 11:21:14 +01:00
Artur Girenko 1266e4802a bump RN version to 0.18.1 2016-01-22 20:52:18 +01:00
Artur Girenko a59efbae6d fix packager patch to auto-generate index.*.map files
- looks like in case of error RN tries to load index.ios.map, this file is normally generated by packager. Need to keep it this way.
2016-01-21 22:27:36 +01:00
Artur Girenko 337bd49735 enable source maps in Debiug in Chrome mode
- use importScripts function when debugging in chrome
- patch packager to serve *.map files
2016-01-21 00:14:35 +01:00
Artur Girenko 0a79a4b888 bump ReactNative version to v0.18.0 2016-01-18 22:01:00 +01:00
Artur Girenko b4e94aa039 add a scan for images to 'use-figwheel' CLI command #11
- use-figwheel command scans for all files in image dirs (configured in .re-natal) and adds a require() call to each image index.*.js
 - removed require-img macros
 - core.cljs now uses normal 'js/require' function to load static image.
2016-01-17 13:32:42 +01:00
Artur Girenko f4eaecabb7 update .re-natal file in upgrade function 2016-01-05 19:41:32 +01:00
Artur Girenko 768f191a63 add support of RN custom components with figwheel (issue #5)
- new CLI command use-component <name> which save name in .re-natal config for later use in use-figwheel command
- use-figwheel now generates a map of cached 'require' calls
- figwheel-bridge.js shims require function to lookup for components by name falls back to original if nothing found
2016-01-04 23:10:13 +01:00
Artur Girenko 3cf752f257 update .gitignore excluding generated files
- env/dev - development only files regenerated by re-natal
- index.*.js
- figwheel-server.log
2015-12-31 18:57:50 +01:00
Artur Girenko 1fd4dfc5d6 fix mkdir calls so that env/dev can be added to .gitignore as adviced #4
- call mkdir when generating dev files
- make it fail-safe in case dir already exist
2015-12-31 15:55:43 +01:00
Artur Girenko 2af7df164e bump ReactNative version to v0.17.0 2015-12-21 15:54:33 +01:00
Artur Girenko dc7941f77c add possibility to start figwheel from nREPL 2015-12-14 23:02:40 +01:00
Artur Girenko da97f17a0a follow best practices of re-frame and give an app-db a schema 2015-12-13 22:49:54 +01:00
Artur Girenko d100bed400 make init command run on Linux
- xcode based commands now checks for xcode availability, updates config lazily
2015-12-09 22:32:25 +01:00
Artur Girenko 9037f0b455 use React Native v0.16.0 2015-12-07 21:49:25 +01:00
Gregory Thompson 1fe89cf6fd fixed change that did not allow .re-natal creation 2015-12-07 10:37:32 -05:00
Artur Girenko cd3b3b5755 clean workspace on use-figwheel command, otherwise require_img macro is not recompiled and might be outdated. 2015-12-06 20:53:49 +01:00
Artur Girenko 577f7c6954 add support for configuring server host to support Android simulators
- Genymotion simulator should use 10.0.3.2 instead of localhost
- Stock android emulator should use 10.0.2.2 instead of localhost
2015-12-06 20:22:53 +01:00
Artur Girenko 51c64f35e2 update guide, Debug in Chrome not mandatory anymore 2015-12-06 12:09:28 +01:00
Artur Girenko 927b5de7fe make Figwheel work without the need of Debug in Chrome
- solution by https://github.com/decker405/figwheel-react-native
- remove use-reload command.
- adoptions to figwheel-bridge.js
2015-12-05 23:53:27 +01:00
Artur Girenko 91824b64ba add upgrade command
For now just overwrite files which should not contain any custom logic.
- figwheel-bridge.js
- files in env/ dir
2015-11-29 22:36:49 +01:00
Artur Girenko 72dbc9fa0e use React Native 0.15.0 2015-11-29 10:05:50 +01:00
Artur Girenko 09cfea4390 remove unused resources dir 2015-11-28 21:22:03 +01:00
Artur Girenko a4a8d09fe7 Support loading of static images using approach introduced in RN 0.14
- Used macro to generate js/require for prod compilation and {:uri http://localhost:8080/*} for dev builds.
- Rearranged sources to be able to support dev and prod profiles
2015-11-28 16:20:39 +01:00
Artur Girenko ca577b035f Use lein-figwheel
- Removed REPL based on ambly for now, need to find a good solution for both iOS and Android
- Added figwheel based on great work found in https://github.com/decker405/figwheel-react-native
- Android still does not work with figwheel, but reload works very fast
2015-11-27 23:57:14 +01:00
Artur Girenko f70ae59b55 Use plain vanilla React Native reload based development flow for iOS and Android
- Removed REPL based on ambly for now, need to find a good solution for both iOS and Android
2015-11-24 22:44:57 +01:00
Artur Girenko 720903fda6 Use react-native 0.14.2 2015-11-22 18:17:45 +01:00
Artur Girenko 05d5efafd1 Fix broken live coding support in iOS
- Revert to react-native 0.13.0 for now
- Use single source root, this seems required for repl
2015-11-22 10:57:51 +01:00
Artur Girenko fc75fe2013 Run in android command is implemented 2015-11-21 12:01:44 +01:00
Artur Girenko 6a12a0cf52 Fix compilation problems 2015-11-20 22:43:47 +01:00
Artur Girenko 867053651b Fix bug in directory creation 2015-11-20 21:10:02 +01:00
Artur Girenko ad96f7c971 Implement android support in re-natal.coffee 2015-11-20 20:44:36 +01:00