react-native-macos/local-cli
Geoffrey Goh e7521a114f Add pre/postunlink
Summary:
An attempt to address https://github.com/facebook/react-native/issues/9156.

cc grabbou Kureev

**Test plan (required)**

1. Added the following to the `package.json` of a `react-native-plugin`

```
  "rnpm": {
    "commands": {
      "preunlink": "node node_modules/react-native-plugin/scripts/preunlink"
      "postunlink": "node node_modules/react-native-plugin/scripts/postunlink"
    }
  }
```

2. Added files, `scripts/preunlink.js` and `scripts/postunlink.js` to the plugin. Each of them simply logs a string to the console.

3. Ran `react-native unlink react-native-plugin` to verify that those logs get printed.
Closes https://github.com/facebook/react-native/pull/9157

Differential Revision: D3749434

fbshipit-source-id: 40b94c9026db4f11e8f5be4a417a0670e8069be6
2016-08-24 10:58:46 -07:00
..
__mocks__ Fix more tests 2015-09-16 13:05:30 -07:00
__tests__ Temporarily disable cli tests 2015-11-12 07:05:01 -08:00
android Bring back missing android command 2016-08-23 04:28:36 -07:00
bundle Fix building without writing a source map 2016-08-09 09:43:26 -07:00
core Further RNPM integration 2016-08-22 08:58:37 -07:00
dependencies Merge `rnpm cli` into react-native 2016-07-30 09:13:46 -07:00
generate Revert "Add folders to attempt to unblock sync" 2015-10-26 22:48:10 +00:00
generator Mention double tapping R to reload in the app template 2016-06-23 06:43:27 -07:00
generator-android Add missing character into BUCK android template 2016-06-24 17:28:30 -07:00
generator-ios Fix tabs in project.pbxproj of iOS template 2016-08-09 13:28:19 -07:00
init Merge `rnpm cli` into react-native 2016-07-30 09:13:46 -07:00
install Further RNPM integration 2016-08-22 08:58:37 -07:00
library Merge `rnpm cli` into react-native 2016-07-30 09:13:46 -07:00
link Add pre/postunlink 2016-08-24 10:58:46 -07:00
logAndroid Merge `rnpm cli` into react-native 2016-07-30 09:13:46 -07:00
logIOS Merge `rnpm cli` into react-native 2016-07-30 09:13:46 -07:00
runAndroid Add `checkAndroid` back 2016-08-17 17:43:53 -07:00
runIOS Merge `rnpm cli` into react-native 2016-07-30 09:13:46 -07:00
server add keyboard shortcuts to aggrow 2016-08-17 11:28:31 -07:00
upgrade Merge `rnpm cli` into react-native 2016-07-30 09:13:46 -07:00
util Add `--config` option to CLI to allow passing a path to an `rn-cli.config.js` 2016-08-12 11:58:33 -07:00
cli.js Use a separate babel config for the local-cli and the packager 2016-05-21 06:58:26 -07:00
cliEntry.js Add `--config` option to CLI to allow passing a path to an `rn-cli.config.js` 2016-08-12 11:58:33 -07:00
commands.js Bring back missing android command 2016-08-23 04:28:36 -07:00
default.config.js Further RNPM integration 2016-08-22 08:58:37 -07:00
generate-android.js Add license headers to local-cli 2015-10-20 09:55:21 -07:00
generator-utils.js flowconfig adds flow/ folder 2016-03-21 06:26:34 -07:00
setup_env.bat Fix comments on .bat file 2015-10-28 21:36:07 -04:00
setup_env.sh Change ulimit to 2048 for non root Mac users 2016-02-06 11:45:37 -08:00
wrong-react-native.js Fix usage of react-native cli inside package.json scripts 2016-04-26 15:42:35 -07:00