@serverless-devs/s3 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.
package/package.json ADDED
@@ -0,0 +1,98 @@
1
+ {
2
+ "name": "@serverless-devs/s3",
3
+ "version": "0.0.1",
4
+ "description": "Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",
5
+ "homepage": "https://www.serverless-devs.com",
6
+ "keywords": [
7
+ "serverless",
8
+ "alibaba",
9
+ "tencent",
10
+ "azure",
11
+ "baidu",
12
+ "huawei",
13
+ "google",
14
+ "function",
15
+ "faas",
16
+ "serverless-devs"
17
+ ],
18
+ "publishConfig": {
19
+ "access": "public",
20
+ "registry": "https://registry.npmjs.org"
21
+ },
22
+ "license": "Apache 2.0",
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "https://github.com/Serverless-Devs/Serverless-Devs"
26
+ },
27
+ "bugs": {
28
+ "url": "https://github.com/Serverless-Devs/Serverless-Devs/issues"
29
+ },
30
+ "scripts": {
31
+ "start": "npm run watch",
32
+ "test": "jest --testTimeout 10000",
33
+ "test:watch": "jest --testTimeout 10000 --watchAll",
34
+ "format": "prettier --write src/ __tests__/**/*.test.ts",
35
+ "watch": "npm run build -- --watch",
36
+ "build": "node ./scripts/build.js",
37
+ "prepkg": "npm run build",
38
+ "pkg": "pkg bin/s",
39
+ "prepublishOnly": "npm run build",
40
+ "beta": "npm publish --tag=beta",
41
+ "pub": "npm publish"
42
+ },
43
+ "main": "./lib/index.js",
44
+ "bin": {
45
+ "s3": "bin/s"
46
+ },
47
+ "engines": {
48
+ "node": ">=14.14.0"
49
+ },
50
+ "devDependencies": {
51
+ "@serverless-devs/core": "^0.1.64",
52
+ "@serverless-devs/credential": "^0.0.2-beta.4",
53
+ "@serverless-devs/engine": "^0.0.1-beta.30",
54
+ "@serverless-devs/load-application": "^0.0.3-beta.21",
55
+ "@serverless-devs/load-component": "^0.0.2-beta.15",
56
+ "@serverless-devs/logger": "^0.0.2-beta.15",
57
+ "@serverless-devs/parse-spec": "^0.0.1-beta.35",
58
+ "@serverless-devs/registry": "^0.0.2-beta.11",
59
+ "@serverless-devs/utils": "^0.0.8",
60
+ "@types/fs-extra": "^11.0.2",
61
+ "@types/inquirer": "^9.0.3",
62
+ "@types/jest": "^29.5.5",
63
+ "@types/js-yaml": "^4.0.6",
64
+ "@types/lodash": "^4.14.198",
65
+ "@types/node": "^20.6.3",
66
+ "@types/semver": "^7.5.2",
67
+ "axios": "^1.5.0",
68
+ "boxen": "^7.1.1",
69
+ "chalk": "^5.3.0",
70
+ "commander": "^11.0.0",
71
+ "dotenv": "^16.3.1",
72
+ "dotenv-expand": "^10.0.0",
73
+ "esbuild": "^0.19.3",
74
+ "fs-extra": "^11.1.1",
75
+ "global-agent": "^3.0.0",
76
+ "inquirer": "^9.2.11",
77
+ "inquirer-autocomplete-prompt": "^3.0.0",
78
+ "is-docker": "^3.0.0",
79
+ "jest": "^29.7.0",
80
+ "js-yaml": "^4.1.0",
81
+ "latest-version": "^7.0.0",
82
+ "leven": "^4.0.0",
83
+ "lodash": "^4.17.21",
84
+ "pkg": "^5.8.1",
85
+ "prettier": "^3.0.3",
86
+ "prettyjson": "^1.2.5",
87
+ "rimraf": "^5.0.1",
88
+ "semver": "^7.5.4",
89
+ "semver-diff": "^4.0.0",
90
+ "table-layout": "^3.0.2",
91
+ "ts-jest": "^29.1.1",
92
+ "ts-node": "^10.9.1",
93
+ "typescript": "^5.2.2"
94
+ },
95
+ "lint-staged": {
96
+ "**/*.{js,jsx,ts}": "f2elint exec eslint"
97
+ }
98
+ }
package/readme.md ADDED
@@ -0,0 +1,127 @@
1
+ <div align=center> <img src="https://images.devsapp.cn/devs-github/logo.jpg" width="100%"/> </div>
2
+ <br>
3
+ <p align="center">
4
+ <a href="https://www.npmjs.com/package/@serverless-devs/s">
5
+ <img src="https://img.shields.io/npm/v/@serverless-devs/s" alt="npm version">
6
+ </a>
7
+ <a href="https://www.npmjs.com/package/@serverless-devs/s">
8
+ <img src="https://img.shields.io/npm/dy/@serverless-devs/s" alt="npm download">
9
+ </a>
10
+ <a href="https://bestpractices.coreinfrastructure.org/projects/6486"><img src="https://bestpractices.coreinfrastructure.org/projects/6486/badge"></a>
11
+ <a href="https://nodejs.org/en/">
12
+ <img src="https://img.shields.io/badge/node-%3E%3D%2012.0.0-brightgreen" alt="node.js version">
13
+ </a>
14
+ <a href="https://github.com/Serverless-Devs/Serverless-Devs/blob/master/LICENSE">
15
+ <img src="https://img.shields.io/badge/License-Apache2.0-green" alt="license">
16
+ </a>
17
+ <a href="https://github.com/Serverless-Devs/Serverless-Devs/issues">
18
+ <img src="https://img.shields.io/github/issues/serverless-devs/serverless-devs" alt="issues">
19
+ </a>
20
+ <a href="https://github.com/Serverless-Devs/Serverless-Devs/discussions">
21
+ <img src="https://img.shields.io/github/discussions/serverless-devs/serverless-devs" alt="discussions">
22
+ </a>
23
+ </p>
24
+
25
+ <p align="center">
26
+ <span><b>Serverless 应用全生命周期管理工具</b></span><br>
27
+ </p>
28
+
29
+ <p align="center">
30
+ <span><b><a href="./readme.md">中文</a> | <a href="./readme_en.md">English</a></b></span><br>
31
+ </p>
32
+
33
+ **Serverless Devs** 是一个开源开放的 Serverless 开发者平台,致力于为开发者提供强大的工具链体系。通过该平台,开发者不仅可以一键体验多云 Serverless 产品,极速部署 Serverless 项目,还可以在 Serverless 应用全生命周期进行项目的管理,并且非常简单快速的将 Serverless Devs 与其他工具/平台进行结合,进一步提升研发、运维效能。
34
+
35
+ ![图片alt](https://serverless-article-picture.oss-cn-hangzhou.aliyuncs.com/1635319587379_20211027072627561648.png)
36
+
37
+
38
+ > 更多关于 Serverless Devs 的介绍可以参考[项目介绍文档](./docs/zh/readme.md)
39
+
40
+ # 快速上手
41
+
42
+ ❶ 安装 Node.js(>=12.0.0) 与 NPM 包管理工具;
43
+ ❷ 安装 Serverless Devs 开发者工具;
44
+ ```shell script
45
+ $ npm install @serverless-devs/s -g
46
+ ```
47
+ ❸ 在命令行中执行命令`s`,并按回车,开启你的 Serverless 之旅;
48
+
49
+ > 更多详细信息可以参考[Serverless Devs 安装文档](./docs/zh/install.md)和[快速入门指南](./docs/zh/quick_start.md)
50
+
51
+ # 帮助文档
52
+
53
+ - [安装文档](./docs/zh/install.md)
54
+ - [命令行操作](./docs/zh/command/readme.md)
55
+ - [Yaml规范](./docs/zh/yaml.md)
56
+ - [配置继承/多环境](./docs/zh/extend.md)
57
+ - [CI/CD平台集成](./docs/zh/cicd.md)
58
+
59
+ > 如果您想为 Serverless Devs 贡献 Package(包括组件和应用),您可以参考 [Package开发文档](./docs/zh/package_dev.md)
60
+
61
+ > Serverless Devs 天然支持 Yaml 模式与 Cli 模式,关于两者的区别和试用场景,可以参考文档[ **Yaml 模式 Cli 模式对比**](./docs/zh/yaml_and_cli.md);关于[**Exit Code 定义**](./docs/zh/tool.md#exit-code-定义)、[**Yaml 文件优先级规范**](./docs/zh/tool.md#yaml-文件优先级规范)、[**密钥使用顺序与规范**](./docs/zh/tool.md#密钥使用顺序与规范)、[**通过环境变量设置密钥**](./docs/zh/tool.md#通过环境变量设置密钥)更多关于项目设计的一些细节可以参考[**开发者工具设计文档**](./docs/zh/tool.md)
62
+
63
+ # 相关资源
64
+
65
+ 目前 Serverless Devs 项目已经支持的 FaaS 平台/产品:
66
+
67
+ - Hosted
68
+ - 阿里云函数计算(FC): [项目仓库](https://github.com/devsapp/fc)
69
+ - AWS Lambda: [项目仓库](https://github.com/devscomp/lambda)
70
+ - 百度智能云函数计算(CFC): [项目仓库](https://github.com/xinwuyun/cfc)
71
+ - 华为云函数工作流(FG): [项目仓库](https://github.com/zy-linn/fgs-component)
72
+ - 腾讯云云函数(SCF): [项目仓库](https://github.com/devscomp/scf)
73
+ - Installable
74
+ - OpenFunction(ofn): [项目仓库](https://github.com/OpenFunction/serverless-devs)
75
+ - Laf: 开发中...
76
+
77
+ > 尽管以上 FaaS 平台/产品已经有人贡献或在持续维护中,但是我们仍然非常欢迎大家可以参与贡献/维护,除此之外,其他的 FaaS 平台/产品(例如 Google Cloud Platform Functions、Azure Functions等),我们也非常期望社区的小伙伴们可以参与开发和贡献。
78
+
79
+ > 🚀 除此之外 Serverless Devs 项目还拥有很多优秀的组件和应用,可以参考[Awesome](./docs/zh/awesome.md)
80
+
81
+ # 项目期望
82
+
83
+ - Serverless Devs 希望可以为 Serverless 开发者们提供一款可以无厂商锁定的,可以在 Serverless 应用全生命周期发挥作用的 Serverless 开发者工具;
84
+ - Serverless Registry 希望可以为 Serverless 生态提供一套完整的包管理规范,与 Python 中的 pypi, Nodejs 中的 npm 等类似,将以此来开放和分享 Serverless Package,建设 Serverless 生态;
85
+ - Serverless Developer Meetup 希望可以打造最符合 Serverless 开发者的社区活动,通过这个活动,我们希望更多人可以一起和我们交流、学习 Serverless 相关的产品;
86
+
87
+ # 项目贡献
88
+
89
+ 我们非常希望您可以和我们一起贡献这个项目。贡献内容包括不限于代码的维护、应用/组件的贡献、文档的完善等,更多详情可以参考[ 🏆 贡献指南](./CONTRIBUTING.md)。
90
+
91
+ 与此同时,我们也非常感谢所有[ 👬 参与贡献的小伙伴](./CONTRIBUTORS.md),为 Serverless Devs 项目贡献的努力和汗水。
92
+
93
+ # 规范与许可
94
+
95
+ Serverless Devs 遵循 [Apache-2.0 license](./LICENSE) 开源许可。
96
+
97
+ 位于`node_modules`和外部目录中的所有文件都是本软件使用的外部维护库,具有自己的许可证;我们建议您阅读它们,因为它们的条款可能与[Apache-2.0 license](./LICENSE)的条款不同。
98
+
99
+ > Serverless Devs adopts CNCF Code of Conduct. This open governance applies to all repos under kubevela org.
100
+
101
+ # 交流社区
102
+
103
+ <p align="center">
104
+ <br/><br/>
105
+ <img src="https://landscape.cncf.io/images/left-logo.svg" width="150"/>&nbsp;&nbsp;<img src="https://landscape.cncf.io/images/right-logo.svg" width="200"/>&nbsp;&nbsp;
106
+ <br/><br/>
107
+ Serverless Devs 是 CNCF Sandbox 项目,可以在 <a href="https://landscape.cncf.io/serverless?license=apache-license-2-0">CNCF Cloud Native Landscape</a> 中查看。
108
+ </p>
109
+
110
+
111
+ 您如果有关于错误的反馈或者未来的期待,您可以在 [Issues](https://github.com/serverless-devs/serverless-devs/issues) 和 [Discussions](https://github.com/serverless-devs/serverless-devs/discussions) 中进行反馈和交流。如果您想要加入我们的讨论组或者了解 Serverless Devs 的最新动态,您可以通过以下渠道进行:
112
+
113
+ <p align="center">
114
+
115
+ | <img src="https://img.alicdn.com/imgextra/i2/O1CN01zifTV61Mkg9QRNBUs_!!6000000001473-2-tps-466-462.png" width="200px" > | <img src="https://serverless-article-picture.oss-cn-hangzhou.aliyuncs.com/1635407044136_20211028074404326599.png" width="200px" > | <img src="https://img.alicdn.com/imgextra/i1/O1CN01ECE9wN1RMvgS6d1JM_!!6000000002098-0-tps-881-877.jpg" width="200px" > |
116
+ |--- | --- | --- |
117
+ | <center>关注微信公众号:`serverless`</center> | <center>联系微信小助手:`xiaojiangwh`</center> | <center>加入钉钉交流群:`33947367`</center> |
118
+
119
+ </p>
120
+
121
+ -----------
122
+
123
+ > Serverless Devs 开发者工具遵循 [Serverless Devs Model](./spec/readme.md),更多模型/规范信息可以参考 [Serverless Registry Model](./spec/zh/0.0.2/serverless_registry_model/readme.md),[Serverless User Model](./spec/zh/0.0.2/serverless_user_model/readme.md) 以及 [Serverless Package Model](./spec/zh/0.0.2/serverless_package_model/readme.md)。
124
+
125
+ > 隐私说明:为了给开发者提供可优化的使用体验,Serverless Devs会采集部分客户端的错误信息以帮助社区优化工具,当然这些错误信息都是被脱敏后的错误信息,如果您仍然存在疑虑或者不想使用这个功能,您可以通过命令`s set analysis disable`关闭该功能。
126
+
127
+