Skip to content

Commit 7a09f48

Browse files
committed
initial commit
0 parents  commit 7a09f48

File tree

135 files changed

+70386
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+70386
-0
lines changed

.eslintrc.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
parser: 'typescript-eslint-parser',
3+
plugins: ['typescript'],
4+
rules: {
5+
'typescript/no-unused-vars': 'error',
6+
},
7+
};

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!--- Information about referencing Github Issues: https://help.github.com/articles/basic-writing-and-formatting-syntax/#referencing-issues-and-pull-requests --->
2+
3+
FEATURES:
4+
5+
6+
ENHANCEMENTS:
7+
8+
9+
BUG FIXES:
10+

.github/workflows/workflow.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Running Code Coverage
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
strategy:
11+
matrix:
12+
node-version: [10.x, 12.x, 14.x]
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v2
17+
with:
18+
fetch-depth: 2
19+
20+
- name: Set up Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v1
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
25+
- name: Install dependencies
26+
run: npm install
27+
28+
- name: Run the tests
29+
run: npm run coverage
30+
31+
- name: Upload coverage to Codecov
32+
uses: codecov/codecov-action@v2

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
*.swp
2+
.idea/
3+
dist/
4+
node_modules/
5+
yarn-error.log
6+
coverage/

.npmignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*
2+
!lib/index.js
3+
README.md

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@types

.prettierrc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"printWidth": 80,
3+
"tabWidth": 2,
4+
"semi": true,
5+
"singleQuote": true,
6+
"trailingComma": "es5",
7+
"useTabs": false,
8+
"parser": "babel-ts",
9+
"overrides": [
10+
{
11+
"files": "*.json",
12+
"options": { "parser": "json", "printWidth": 200 }
13+
}
14+
]
15+
}

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 [email protected]
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

Makefile

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
help:
2+
@echo "help"
3+
4+
.PHONY: test
5+
test:
6+
npm run test
7+
8+
test-cov:
9+
npm run coverage
10+
11+
lint:
12+
npm run tslint
13+
npm run prettier:check
14+
15+
fmt:
16+
npm run prettier:write
17+
18+
build:
19+
npm run publish
20+
21+
gen:
22+
ucloud-spec create opensdk \
23+
--only "UFS" \
24+
--only "UDisk" \
25+
--only "UHost" \
26+
--only "PathX" \
27+
--only "UDDB" \
28+
--only "UCDN" \
29+
--only "UNet" \
30+
--only "VPC2.0" \
31+
--only "UDB" \
32+
--only "UMem" \
33+
--only "ULB" \
34+
--only "Cube" \
35+
--only "UK8S" \
36+
--only "IPSecVPN" \
37+
--only "UAccount" \
38+
--only "UDPN" \
39+
--only "UBill" \
40+
--only "UPHost" \
41+
--only "UFile" \
42+
--only "USMS" \
43+
--only "UEC" \
44+
--public \
45+
-s https://git.ucloudadmin.com/apispec/apispec.git \
46+
/Users/user/code/oas/plugins/template-opensdk-js .

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# ucloud-sdk-js

0 commit comments

Comments
 (0)