Commit Graph

71 Commits

Author SHA1 Message Date
Artur Girenko 6e11cd0eb1 bump RN version to 0.26.0
- use latest alpha2 of Reagent 0.6.0 - it supports react 15
- use latest alpha35 of Om Next - hopefully it supports react 15
2016-05-21 10:13:04 +02:00
Gabriel Horner 7ab13eec75 Fix help typo introduced in #27 2016-05-14 20:09:41 -04:00
Artur Girenko 3cb3af47e3 make om-next and rum templates work nicely with RN 0.25+
- fix usage of React and ReactNative API by removing natal-shell dependency
2016-05-13 23:57:39 +02:00
Mark Lakewood 180427e6b6 .DS_Store file is "required" by node if found in the images directory
If a .DS_Store file is created by OS X in the images directory then natal will attempt to
require it like any other image file. This causes an error in the simulator as javascript cannot load
the file. As there isnt any reason why a .DS_Store file should be loaded I've added an automatic exclusion for this file
name in any part of the image path.

Additions that could be made:

We could expose the exclude list as a configuration in the .re-natal file so that people could see what is being excluded and add to it if needed.
2016-05-11 12:00:02 -07:00
Artur Girenko 2c1913038e adopt reagent and reagent6 templates for RN 0.25 2016-05-05 18:35:20 +02:00
Hao-kang Den 5cf02cc758
bump RN version to 0.25.0 2016-05-05 00:15:08 +08:00
Eric Webb 976b34910c Add Rum support 2016-05-02 18:18:58 -07:00
Artur Girenko 14554b60f3 bump RN version to 0.24.1 2016-04-22 22:06:19 +02:00
Artur Girenko ea9500db73 compact console output about updating ios files 2016-04-22 21:42:20 +02:00
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