@momo-kits/webview 0.0.1-beta → 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +16 -19
  2. package/publish.sh +9 -2
package/package.json CHANGED
@@ -1,20 +1,17 @@
1
1
  {
2
- "name": "@momo-kits/webview",
3
- "version": "0.0.1-beta",
4
- "private": false,
5
- "scripts": {
6
- "publish": "bash publish.sh"
7
- },
8
- "dependencies": {
9
- "lodash": "^4.17.15",
10
- "prop-types": "^15.7.2",
11
- "react": "16.9.0"
12
- },
13
- "peerDependencies": {
14
- "react": "16.9.0",
15
- "react-native": ">=0.55"
16
- },
17
- "devDependencies": {},
18
- "license": "MOMO"
19
- }
20
-
2
+ "name": "@momo-kits/webview",
3
+ "version": "0.0.1",
4
+ "private": false,
5
+ "main": "index.js",
6
+ "dependencies": {
7
+ "lodash": "^4.17.15",
8
+ "prop-types": "^15.7.2",
9
+ "react": "16.9.0"
10
+ },
11
+ "peerDependencies": {
12
+ "react": "16.9.0",
13
+ "react-native": ">=0.55"
14
+ },
15
+ "devDependencies": {},
16
+ "license": "MoMo"
17
+ }
package/publish.sh CHANGED
@@ -4,10 +4,15 @@ mkdir dist
4
4
 
5
5
  cp . ./dist
6
6
 
7
+ # GET VERSION from mck_package.json
8
+ VERSIONSTRING=( v$(jq .version package.json) )
9
+ VERSION=(${VERSIONSTRING//[\"]/})
10
+ echo VERSION: $VERSION
11
+
7
12
  rsync -r --verbose --exclude '*.mdx' --exclude '*Demo.js' --exclude 'props-type.js' --exclude 'prop-types.js' ./* dist
8
13
 
9
14
  # #babel component to dist
10
- babel ./dist -d dist --copy-files
15
+ #babel ./dist -d dist --copy-files
11
16
 
12
17
  #copy option
13
18
  #cp -r ./src/ dist
@@ -18,4 +23,6 @@ babel ./dist -d dist --copy-files
18
23
  cd dist
19
24
  npm publish --access=public
20
25
  cd ..
21
- rm -rf dist
26
+ rm -rf dist
27
+
28
+ curl -X POST -H 'Content-Type: application/json' 'https://chat.googleapis.com/v1/spaces/AAAAbP8987c/messages?key=AIzaSyDdI0hCZtE6vySjMm-WEfRq3CPzqKqqsHI&token=UGSFRvk_oYb9uGsAgs31bVvMm6jDkmD8zihGm3eyaQA%3D&threadKey=JoaXTEYaNNkl' -d '{"text": "@momo-kits/webview new version release: '*"$VERSION"*' https://www.npmjs.com/package/@momo-kits/webview"}'