Update postpublish example

This commit is contained in:
Brent Vatne
2017-11-12 19:31:41 -08:00
parent eb5a875a73
commit 10b8ab883d
8 changed files with 1201 additions and 1003 deletions

View File

@@ -5,9 +5,9 @@
## Configure it
- Create an incoming webhook for your Slack server and replace
`https://hooks.slack.com/put-your-stuff-here` in `exp.json` with your
`https://hooks.slack.com/put-your-stuff-here` in `app.json` with your
webhook url -- or remove the `expo-postpublish-slack-notify` hook
entirely from `exp.json`.
entirely from `app.json`.
## Running the app

View File

@@ -0,0 +1,27 @@
{
"expo": {
"name": "with-postpublish-hooks",
"slug": "with-postpublish-hooks",
"description": "Demo project with postPublish hooks. The actual app itself is empty, the interesting part is in the hooks configuration in exp.json",
"privacy": "unlisted",
"sdkVersion": "22.0.0",
"version": "1.0.0",
"orientation": "portrait",
"hooks": {
"postPublish": [
{
"file": "./hooks/echo",
"config": {
"message": "hello brent"
}
},
{
"file": "expo-postpublish-slack-notify",
"config": {
"webhookUrl": "https://hooks.slack.com/your-webhook-info-here"
}
}
]
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 KiB

View File

@@ -1,36 +0,0 @@
{
"name": "with-postpublish-hooks",
"description": "Demo project with postPublish hooks. The actual app itself is empty, the interesting part is in the hooks configuration in exp.json",
"slug": "with-postpublish-hooks",
"privacy": "unlisted",
"sdkVersion": "16.0.0",
"version": "1.0.0",
"orientation": "portrait",
"icon": "https://s3.amazonaws.com/exp-brand-assets/ExponentEmptyManifest_192.png",
"loading": {
"icon": "https://s3.amazonaws.com/exp-brand-assets/ExponentEmptyManifest_192.png",
"hideExponentText": false
},
"packagerOpts": {
"assetExts": [
"ttf",
"mp4"
]
},
"hooks": {
"postPublish": [
{
"file": "./hooks/echo",
"config": {
"message": "hello brent"
}
},
{
"file": "expo-postpublish-slack-notify",
"config": {
"webhookUrl": "https://hooks.slack.com/put-your-stuff-here"
}
}
]
}
}

View File

@@ -1,14 +1,11 @@
{
"name": "with-postpublish-hooks",
"version": "0.0.0",
"description": "Hello Expo!",
"author": null,
"private": true,
"main": "main.js",
"main": "node_modules/expo/AppEntry.js",
"dependencies": {
"expo": "16.0.0",
"expo": "^22.0.0",
"expo-postpublish-slack-notify": "^1.0.0",
"react": "16.0.0-alpha.6",
"react-native": "https://github.com/expo/react-native/archive/sdk-16.0.0.tar.gz"
"react": "16.0.0-beta.5",
"react-native": "https://github.com/expo/react-native/archive/sdk-22.0.2.tar.gz"
}
}
}

File diff suppressed because it is too large Load Diff