Commit Graph
1206 Commits
Author SHA1 Message Date
Kacper Wiszczuk 2ff7ef9260 feat: use logger to cliEntry and bin files (#120)
* feat: add logger

* feat: change separator of logs

* feat: use logger

* feat: add logger in bin and cliEntry files

* feat: review suggestions
2019-01-28 17:36:48 +01:00
Michał Pierzchała 56e890dc7f fix: normalize paths for Gradle on Windows (#130)
Summary:
---------

Fixes #129


Test Plan:
----------

I added a test that simulates Windows on POSIX machines, because we don't run our tests on Windows.
@cherniavskii can you test this on a Windows machine?
2019-01-28 17:36:18 +01:00
Michał Pierzchała baae22176c feat: use logger in info, init, install, uninstall (#122)
Summary:
---------

More files using `logger`!

Test Plan:
----------

Green CI
2019-01-28 17:28:15 +01:00
Michał Pierzchała fa3ae496c5 chore: upgrade Jest to v24 (#127)
Summary:
---------

Jest 24 is out at last!


Test Plan:
----------

Green
2019-01-25 17:04:10 +01:00
Kacper Wiszczuk 5c6f29b7ed docs: add issue and PR templates (#121)
* docs: add templates

* feat: add labels
2019-01-24 18:16:40 +01:00
Arnab Sen 03dc0768f7 Update runAndroid.js (#119)
Remove non-existent react-native android message
2019-01-24 16:46:07 +01:00
Michał Pierzchała ec1e97d7a0 feat: add logger to link command (#118)
* feat: add logger to link command

* chore: simplify jest config

* fix: lint
2019-01-24 12:33:40 +01:00
K. P. Sroka 1c181095c2 feat: Removes calls to process.pwd() in favor of using context.root (#116)
* feat: use ctx.root instead of process.cwd() in several commands

* test: upgrading patch version of jest to avoid worker system bug
2019-01-23 19:59:16 +01:00
Kacper Wiszczuk 7ca57a5ad8 feat: use common logger part 1
Introduce logger to bundle core and eject
2019-01-23 19:04:27 +01:00
Kacper Wiszczuk 802e4ec3f2 feat: add logger (#113)
Add simple logger.
2019-01-23 18:28:36 +01:00
Michał Pierzchała 61bc2882f5 chore: setup monorepo with Lerna (#109)
* chore: setup monorepo with lerna

* chore: move flow to root

* fix: lint

* chore: add watch command
2019-01-23 18:04:01 +01:00
Michał Pierzchała 861b0c3fb4 chore: don't publish src now that we build it (#108) 2019-01-21 14:18:54 +01:00
Michał Pierzchała db27b413a2 chore: use babel --copy-files flag (#106) 2019-01-21 13:54:05 +01:00
Michał Pierzchała 5480060e5f chore: followup after #104 (#105)
* feat: build before publishing

* fix(tests): use jest.doMock instead of setMock

* chore: rename local-cli -> cli

* chore: get rid of local-cli leftovers

* fix: typo
2019-01-21 13:49:30 +01:00
Michał Pierzchała 3aac9df01c feat: build before publishing (#104)
* feat: build before publishing

* fix(tests): use jest.doMock instead of setMock

* chore: rename local-cli -> cli
2019-01-21 13:40:58 +01:00
Michał Pierzchała ee9cef59b7 fix: make link understand 'api project' (#98) 2019-01-17 17:53:26 +01:00
Mike Grabowski ee49594000 chore: release a new version 2019-01-17 16:48:37 +01:00
Mike Grabowski c15e6147f5 fix: init requires folder, but require.resolve returns a file 2019-01-17 16:48:18 +01:00
Mike Grabowski 158f0d02cc chore: update package name and version 2019-01-17 15:35:57 +01:00
Kacper Wiszczuk 4c6d1d2d11 build: use template from react-native (#84)
* build: use template from react-native

* build: adjust init of new project

* fix: display name replace

* fix: rename helloworld files

* build: use require.resolve
2019-01-17 10:53:51 +01:00
Christoph Nakazawa 90b9d839a7 fix: add newline in package.json (#94)
The initial version of the package.json file does not contain a newline at the end. This means that the first time a user modifies the file using either an IDE that inserts trailing newlines or using Yarn, the last line will be changed and visible in version control. This is not a big deal, but it is annoying and shows a lack of polish.

I tested this by manually patching this file in a current version of React Native because there is currently no way to test the master of RN and RN cli together.
2019-01-16 16:49:58 +01:00
Christoph Nakazawa 1cb78bbe20 fix: typo (#93)
Fixes a small typo and adds some missing trailing commas.
2019-01-16 16:24:49 +01:00
Kacper Wiszczuk 664fa66662 build: deprecate link all behavior (#85)
* build: deprecate link all behavior

* Link project assets too

This reverts previous behaviour

* Fix small issue

* Add URL to an issue
2019-01-15 17:45:18 +01:00
Mike Grabowski 38502ce7c7 fix: Fix metro config when running from source (#56)
* Fix metro config when running from source

* nit

* Few tweaks
2019-01-15 14:36:32 +01:00
Telmen Munkhdalai 6441f4d152 style: remove double default value description in react-native run-ios (#86) 2019-01-14 13:02:23 +01:00
Alexander Zubko 9ed4c55688 fix: Prevent crash in findMatchingSimulator (#59) 2019-01-11 19:02:32 +01:00
Ferran Negre 9aaa508981 feat: be able to use link for specific --platforms only (#77)
* feat: be able to use link for specific --platforms only

* fix rawPackageName

* fix flow

* Fix test specifying package name.

* Minor corrections.

* Replace setMock for doMock.
2019-01-11 18:45:45 +01:00
Michał Pierzchała 4b1aa98af8 fix: android duplicates in linked packages (#81)
* fix: android duplicates in linked packages

* chore: add a comment
2019-01-11 17:53:19 +01:00
Michał Pierzchała 12eb5a834e chore: update global-cli paths (#82)
chore: update global-cli paths
2019-01-11 17:53:04 +01:00
Kacper Wiszczuk de2c1966de Merge pull request #83 from thymikee/chore/jest-projects
chore: better monorepo with jest packages and global Flow
2019-01-11 17:51:10 +01:00
Michał Pierzchała abc00a372b chore: ease work with monorepo with jest packages and global Flow 2019-01-11 17:37:25 +01:00
Kacper Wiszczuk 89cdd7921f fix: revert dependencies removal (#80)
Bring back `dependencies` command with a deprecation warning.
2019-01-11 14:25:20 +01:00
Kacper Wiszczuk a88c78f18b fix: Flow erros (#79)
* fix: Fix flow erros

* fix: fix lint
2019-01-11 13:31:33 +01:00
Kacper Wiszczuk c0780b8cab docs: Add CONTIBUTING.md (#69)
This PR includes:
- [x] - Adding `CONTRIBUTING.md`
- [x] - Setting up `husky` with `commitlint` to force meaningul commit messages

Fixes #62
2019-01-11 13:28:18 +01:00
Kacper Wiszczuk c503519f04 Merge pull request #78 from ferrannp/fix/link-assets-test
fix: link tests
2019-01-10 17:25:18 +01:00
ferrannp 4db5fc01f3 fix: link tests 2019-01-10 17:23:01 +01:00
Ferran Negre 5c35f00311 fix: --appFolder should only install specific app on Android. (#67)
* fix: --appFolder should only install specific app on Android.

* Extract function from runAndroid and add tests for runOnAllDevices.

* Default to installDebug if no --appFolder is specified.

* Update the `getCommand`
2019-01-10 15:52:13 +01:00
Kacper Wiszczuk 1e83499f3b imp: Make package name a required argument in link (#64)
* imp: Make package name a required argument in link

* imp: Change function comment

* Update link.js

* Update link.js
2019-01-10 15:49:33 +01:00
Ferran Negre c5e37435e5 fix: no need from cd - on package.json so we can pass custom arguments. (#72) 2019-01-10 15:15:53 +01:00
Kacper Wiszczuk 9eba0f767e chore: Update yarn.lock (#66) 2019-01-09 18:23:36 +01:00
Janic Duplessis 6de63fed2c Fix launching chrome dev tools (#63) 2019-01-08 18:18:23 +01:00
Kacper Wiszczuk 260874d20c fix: Re-enable some unit tests (#58) 2018-12-20 23:24:42 +01:00
Mike Grabowski 861947180c Bump Metro dependency, use new Metro Transformer and remove old packages (#55) 2018-12-19 20:25:31 +01:00
Mike Grabowski 08962ecfc9 Add ESLint (#52)
* Fix skipped test for add file to project

* Add ESLint config and fix all the errors

* Use proper lint command

* Function is required here

* This file is unused

* Remove extraneous files and move utils to correct folders

* Add strict mode to global-cli again and use preset for other places

* Revert changes to debugger-ui for browser compatibility

* Revert changes in global-cli, package should run on older Node too
2018-12-19 17:49:48 +01:00
Ignacio 601cbd4b42 Fix skipped test for add file to project (#44) 2018-12-15 11:03:11 +01:00
Mike Grabowski b8b5c98fff Remove manual check of the node version 2018-12-15 10:54:23 +01:00
Ville Immonen f9bf60e858 Add repository URLs to package.json files (#45) 2018-12-15 10:51:19 +01:00
Michał Pierzchała 6b598eb6a6 feat: restrict Node with engineStrict (#24) 2018-12-15 10:50:34 +01:00
Mike Grabowski f344c9c4c9 Decouple Metro config from CLI config (#30)
* Initial commit - delete Metro-related config

* Rewrite of the config, part 2

* Finish adopting link & unlink to new config format

* Rewrite 'server' command and the way we load config

* Fix errors and make server run

* Use require.resolve

* Simplify runServer code

* Updates to the config

* Remove duplicate platforms

* Use real and unified project root

* Fix projectRoots

* Unifiy root paths

* Remove projectRoot from type

* Leave two todos for tomororw

* Use projectRoot to read the root

* Fix projectRoot and implement config again

* Improve Metro config

* Fix configuration again

* Fix remaining Flow issues inside bundle

* Fix two failing test suites

* Fix getDependencyConfig tests and use snapshots

* Remove console

* Fix remaining Jest tests

* Remove console.log

* Fix issues with link/unlink tested in production

* Add legacy config to avoid breaking changes

* Fix a typo

* Exclude React Native CLI from being linked

* Remove console.log from production code

* Update getCommands.js

* Update loadMetroConfig.js

* Update package.json

* Update package.json
2018-12-15 10:49:21 +01:00
Mike Grabowski f0576af072 Bump Metro and Flow dependencies 2018-12-03 14:06:41 +01:00