skapi-js 0.0.43 → 0.0.46
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.
- package/README.md +1 -1
- package/deploy.py +14 -8
- package/dist/skapi.js +1 -1
- package/dist/skapi.js.map +1 -1
- package/dist/skapi.module.js +1 -1
- package/dist/skapi.module.js.map +1 -1
- package/package.json +1 -1
- package/src/skapi.ts +3 -5
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ let skapi = new Skapi('your_service_id', 'your_user_id');
|
|
|
33
33
|
For HTML projects:
|
|
34
34
|
```
|
|
35
35
|
<head>
|
|
36
|
-
<script src="https://
|
|
36
|
+
<script src="https://broadwayinc.dev/jslib/skapi/0.0.46/skapi.js">
|
|
37
37
|
</head>
|
|
38
38
|
<script>
|
|
39
39
|
let skapi = new Skapi('your_service_id', 'your_user_id');
|
package/deploy.py
CHANGED
|
@@ -3,16 +3,22 @@ import os
|
|
|
3
3
|
|
|
4
4
|
with open('./package.json', 'r') as p:
|
|
5
5
|
package = json.loads(p.read())
|
|
6
|
-
ret = os.system('
|
|
7
|
-
|
|
6
|
+
ret = os.system('git pull')
|
|
7
|
+
|
|
8
8
|
if ret != 0:
|
|
9
|
-
print('==Failed to
|
|
10
|
-
|
|
9
|
+
print('==Failed to pull==')
|
|
10
|
+
|
|
11
11
|
else:
|
|
12
|
-
ret = os.system(
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
ret = os.system('npm publish')
|
|
13
|
+
|
|
15
14
|
if ret != 0:
|
|
16
|
-
print('==Failed to
|
|
15
|
+
print('==Failed to publish==')
|
|
16
|
+
|
|
17
|
+
else:
|
|
18
|
+
ret = os.system(
|
|
19
|
+
f'aws s3 sync ./dist s3://broadwayinc.dev/jslib/skapi/{package["version"]} --acl public-read')
|
|
20
|
+
|
|
21
|
+
if ret != 0:
|
|
22
|
+
print('==Failed to upload==')
|
|
17
23
|
|
|
18
24
|
print('==END==')
|