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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Install usf-cli
4
4
  ```bash
5
- npm install -g git+https://e.coding.net/unitychina/uos/usf-cli.git
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "usf-cli",
3
- "version": "1.1.3",
3
+ "version": "1.2.0",
4
4
  "description": "usf-cli helps uos stateless function developers with local running, boosting their development efficiency.",
5
5
  "main": "index.js",
6
6
  "bin": {
package/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/usf-cli.iml" filepath="$PROJECT_DIR$/.idea/usf-cli.iml" />
6
- </modules>
7
- </component>
8
- </project>
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>
package/.idea/vcs.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="" vcs="Git" />
5
- </component>
6
- </project>