mirror of
https://github.com/zhigang1992/examples.git
synced 2026-01-12 17:13:21 +08:00
Update postpublish example
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
27
with-postpublish-hooks/app.json
Normal file
27
with-postpublish-hooks/app.json
Normal 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 |
@@ -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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -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
Reference in New Issue
Block a user