Commit Graph

62 Commits

Author SHA1 Message Date
Viktor Eriksson 21ee272f4c Updated use-figwheel to replace debug url
If you want to debug on the device you have to replace `localhost`
with your ip in
`node_modules/react-native/Libraries/WebSocket/RCTWebSocketExecutor.m`.

Yes it is not a joke, edit the react-native library directly as per:
[the
docs](https://facebook.github.io/react-native/docs/debugging.html#chrome-developer-tools)

I added this file to where the url is replaced in AppDelegate.m
2016-04-21 16:00:29 +02:00
Artur Girenko 091bf38166 add interface 'reagent6' which uses reagent-0.6.0-alpha and re-frame-0.7.0 2016-04-09 11:20:16 +02:00
Artur Girenko b0b34b075b fix typo and update config check code 2016-04-09 01:09:45 +02:00
Artur Girenko 952d0b8a4c make env source roots configurable in .re-natal file
this improves flexibility to have other projects coexist with thise generated by re-natal fixes #34
removed some old upgrade code
2016-04-08 23:32:29 +02:00
Artur Girenko 5e2bd28a47 use React Native 0.23.1 fixes #35 2016-04-08 13:16:03 +02:00
Artur Girenko ae881bde82 bump RN version to 0.22.2 2016-03-23 16:31:05 +01:00
Artur Girenko d7567b4de4 bump RN version to 0.22.0 2016-03-21 22:50:54 +01:00
Artur Girenko 0bab28a1d2 bump RN version to 0.21.0 2016-03-06 10:41:11 +01:00
Artur Girenko 14e5fa2bb8 provide feedback after use-ios-device command 2016-03-06 09:59:59 +01:00
Gabriel Horner d967daccea Add use-ios-device command - close #26
Also updated related configuration default, check and upgrade
2016-03-03 17:32:39 -05:00
Artur Girenko ba068b17f7 bump RN version to 0.20.0 - v0.2.25 2016-02-18 14:14:19 +01:00
Artur Girenko e4bd064083 fixed upgrade command to default the interface in .re-natal to 'reagent' if absent 2016-02-11 21:44:45 +01:00
Artur Girenko b73e7a1ed3 fix interface dependant usage instructions which are printed after init command finished 2016-02-11 13:11:56 +01:00
Artur Girenko f9631e3be3 validate interface name in init command 2016-02-11 12:54:05 +01:00
Artur Girenko 59edcd3591 move app-state and reconciler to separate namespace 2016-02-11 00:24:17 +01:00
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