usf-cli 1.1.3 → 1.2.0
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 +11 -1
- package/package.json +1 -1
- package/.idea/modules.xml +0 -8
- package/.idea/usf-cli.iml +0 -12
- package/.idea/vcs.xml +0 -6
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Install usf-cli
|
|
4
4
|
```bash
|
|
5
|
-
npm install -g
|
|
5
|
+
npm install -g usf-cli
|
|
6
6
|
```
|
|
7
7
|
|
|
8
8
|
## Create project
|
|
@@ -47,4 +47,14 @@ npm install .
|
|
|
47
47
|
usf-cli -r --f=helloWorld
|
|
48
48
|
# or with specified event data json(e.g. you have created a test.json in your project dir)
|
|
49
49
|
usf-cli -r --f=helloWorld --e=./test.json
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Deploy function
|
|
53
|
+
```bash
|
|
54
|
+
# before delpoying function, you should set app id and service secret for this project (used for generating auth token)
|
|
55
|
+
usf-cli -a --id=<app-id> --secret=<service-secret>
|
|
56
|
+
# and then you can deploy it
|
|
57
|
+
usf-cli -d
|
|
58
|
+
# Func Stateless also support install dependency online, so that if the size of your project is larger than 50MB, you can set 'installDenpendency'
|
|
59
|
+
usf-cli -d --installDependency
|
|
50
60
|
```
|
package/package.json
CHANGED
package/.idea/modules.xml
DELETED
package/.idea/usf-cli.iml
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="WEB_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager">
|
|
4
|
-
<content url="file://$MODULE_DIR$">
|
|
5
|
-
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
|
6
|
-
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
|
7
|
-
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
|
8
|
-
</content>
|
|
9
|
-
<orderEntry type="inheritedJdk" />
|
|
10
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
11
|
-
</component>
|
|
12
|
-
</module>
|