Commit Graph

141 Commits

Author SHA1 Message Date
Artur Girenko 620d0b39a7 explicitly require babel-plugin-transform-es2015-block-scoping@6.15.0 in package.json. Fixes #77 2016-10-31 18:51:48 +01:00
Artur Girenko 40d3de4eeb RN 0.35.0, lein-cljsbuild 1.1.4 2016-10-11 20:42:04 +02:00
Artur Girenko 52a98ae843 allow to specify IP in command use-android-device, fixes #67 2016-09-24 13:51:05 +02:00
Artur Girenko bc65ccf355 use reagent 0.6.0 2016-09-24 13:24:13 +02:00
Artur Girenko c51630e570 bump RN vesrion to 0.34.0 2016-09-24 13:19:38 +02:00
Artur Girenko d3d29af45c update CLI messages 2016-09-11 14:50:57 +02:00
Artur Girenko c4cdedf645 bump rum version to 0.9.1 2016-09-11 14:28:12 +02:00
Artur Girenko 31d53a09c7 update instructions to react-native run-ios instead of opening xcode 2016-09-11 14:15:49 +02:00
Artur Girenko dee11fe672 bump RN vesrion to 0.33.0 2016-09-11 13:36:40 +02:00
Artur Girenko 70c4fcc004 improve CLI messages 2016-09-11 13:36:20 +02:00
Tyler Morten 886693905e lein prod-build does not compile with dependency on om 1.0.0-alpha35 and corresponding clojurescirpt 1.9.198 2016-09-05 21:00:57 -05:00
Artur Girenko ebceff1db8 bump RN and re-frame version
- RN 0.32.0
- re-frame 0.8.0
2016-08-28 13:28:05 +02:00
Artur Girenko e52b9cd4fd use re-frame 0.8.0 in reagent6 template 2016-08-07 14:01:34 +02:00
Artur Girenko 1b3c897e8d bump RN version 0.31.0 2016-08-07 10:03:15 +02:00
Gabriel Horner 3f9323b391 Switch schema for cljs.spec - close #60 2016-07-25 00:08:17 +02:00
Artur Girenko b6388ba6f4 use RN 0.30.0 2016-07-24 12:19:41 +02:00
Artur Girenko fc341e723b bump versions RN-> 0.29.2, Clojure/ClojureScript -> 1.8, Reagent -> 0.6.0-rc
- ReactNative server host updates had to be changed for 0.29.2: AppDelegate.m does not have host anymore, RegExp for host in RCTWebSocketExecutor.m had to be changed.
2016-07-20 11:34:06 +02:00
Artur Girenko 096eb22f2b bump RN version to 0.27.2 2016-06-10 22:54:45 +02:00
Artur Girenko 863bd1f281 add a hint in output of re-natal upgrade command that it does not upgrade RN version in project 2016-06-10 22:26:26 +02:00
Artur Girenko 8329be903e make reagent6 the default interface since React 15 is now used by RN 2016-05-21 17:05:03 +02:00
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
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