@capgo/cli 0.7.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/.cz.toml +8 -0
- package/.eslintignore +2 -0
- package/.eslintrc +53 -0
- package/.github/FUNDING.yml +1 -0
- package/.github/workflows/build.yml +31 -0
- package/.github/workflows/bump_version.yml +23 -0
- package/.prettierignore +6 -0
- package/.vscode/launch.json +23 -0
- package/.vscode/settings.json +4 -0
- package/.vscode/tasks.json +42 -0
- package/CHANGELOG.md +148 -0
- package/LICENCE +665 -0
- package/README.md +115 -0
- package/capacitor.config.ts +33 -0
- package/dist/index.js +2 -0
- package/package.json +73 -0
- package/pnpm-lock.yaml +4535 -0
- package/src/bin/add.ts +54 -0
- package/src/bin/delete.ts +41 -0
- package/src/bin/index.ts +38 -0
- package/src/bin/set.ts +59 -0
- package/src/bin/upload.ts +124 -0
- package/src/bin/utils.ts +12 -0
- package/tsconfig.json +14 -0
- package/webpack.config.js +30 -0
package/.cz.toml
ADDED
package/.eslintignore
ADDED
package/.eslintrc
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": ["airbnb-base", "plugin:@typescript-eslint/recommended", "eslint-config-prettier"],
|
|
3
|
+
"parser": "@typescript-eslint/parser",
|
|
4
|
+
"plugins": ["@typescript-eslint", "prettier"],
|
|
5
|
+
"settings": {
|
|
6
|
+
"import/parsers": {
|
|
7
|
+
"@typescript-eslint/parser": [".ts", ".tsx"]
|
|
8
|
+
},
|
|
9
|
+
"import/resolver": {
|
|
10
|
+
"typescript": {}
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"rules": {
|
|
14
|
+
"import/prefer-default-export": 0,
|
|
15
|
+
"no-param-reassign": 0,
|
|
16
|
+
"import/no-extraneous-dependencies": [
|
|
17
|
+
2,
|
|
18
|
+
{
|
|
19
|
+
"devDependencies": ["**/spec.tsx", "**/spec.ts", "__tests__/**/*"]
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"import/extensions": 0,
|
|
23
|
+
"indent": "off",
|
|
24
|
+
"@typescript-eslint/indent": ["error", 2],
|
|
25
|
+
"eofline": 0,
|
|
26
|
+
"arrow-parens": 0,
|
|
27
|
+
"ordered-imports": 0,
|
|
28
|
+
"object-literal-sort-keys": 0,
|
|
29
|
+
"no-empty": 2,
|
|
30
|
+
"no-unused-expression": 0,
|
|
31
|
+
"linebreak-style": 0,
|
|
32
|
+
"@typescript-eslint/explicit-function-return-type": 0,
|
|
33
|
+
"max-len": [
|
|
34
|
+
"error",
|
|
35
|
+
{
|
|
36
|
+
"code": 140
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"@typescript-eslint/no-use-before-define": 0,
|
|
40
|
+
"@typescript-eslint/no-empty-function": 0,
|
|
41
|
+
"no-unused-expressions": 0,
|
|
42
|
+
"operator-linebreak": 0,
|
|
43
|
+
"implicit-arrow-linebreak": 0,
|
|
44
|
+
"no-implicit-dependencies": 0,
|
|
45
|
+
"no-use-before-define": 0,
|
|
46
|
+
"class-methods-use-this": 0,
|
|
47
|
+
"no-restricted-syntax": 0,
|
|
48
|
+
"no-await-in-loop": 0,
|
|
49
|
+
"no-continue": 0,
|
|
50
|
+
"no-underscore-dangle": 0,
|
|
51
|
+
"no-console": 0
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
github: riderx
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
name: Build source code and send to Capgo
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- '*'
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
deploy:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
name: "Build code and release"
|
|
12
|
+
steps:
|
|
13
|
+
- name: Check out
|
|
14
|
+
uses: actions/checkout@v2
|
|
15
|
+
- uses: pnpm/action-setup@v2.0.1
|
|
16
|
+
with:
|
|
17
|
+
version: 6.22.2
|
|
18
|
+
- name: Install dependencies
|
|
19
|
+
id: install_code
|
|
20
|
+
run: pnpm i
|
|
21
|
+
- name: Lint
|
|
22
|
+
id: lint_code
|
|
23
|
+
run: pnpm lint
|
|
24
|
+
- name: Build
|
|
25
|
+
id: build_code
|
|
26
|
+
run: pnpm build
|
|
27
|
+
- uses: JS-DevTools/npm-publish@v1
|
|
28
|
+
with:
|
|
29
|
+
token: ${{ secrets.NPM_TOKEN }}
|
|
30
|
+
|
|
31
|
+
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
name: Bump version
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
bump-version:
|
|
10
|
+
if: "!startsWith(github.event.head_commit.message, 'bump:')"
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
name: "Bump version and create changelog with commitizen"
|
|
13
|
+
steps:
|
|
14
|
+
- name: Check out
|
|
15
|
+
uses: actions/checkout@v2
|
|
16
|
+
with:
|
|
17
|
+
fetch-depth: 0
|
|
18
|
+
token: '${{ secrets.PERSONAL_ACCESS_TOKEN }}'
|
|
19
|
+
- name: Create bump and changelog
|
|
20
|
+
uses: commitizen-tools/commitizen-action@0.7.0
|
|
21
|
+
with:
|
|
22
|
+
github_token: '${{ secrets.PERSONAL_ACCESS_TOKEN }}'
|
|
23
|
+
branch: 'main'
|
package/.prettierignore
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
// Use IntelliSense to learn about possible attributes.
|
|
3
|
+
// Hover to view descriptions of existing attributes.
|
|
4
|
+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
5
|
+
"version": "0.2.0",
|
|
6
|
+
|
|
7
|
+
"configurations": [
|
|
8
|
+
{
|
|
9
|
+
"type": "node",
|
|
10
|
+
"request": "launch",
|
|
11
|
+
"name": "Launch",
|
|
12
|
+
"program": "${workspaceFolder}/dist/index.js",
|
|
13
|
+
"args": ["-u", "Edwin Hubble", "-w", "y"]
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"type": "node",
|
|
17
|
+
"request": "launch",
|
|
18
|
+
"name": "Launch with other params",
|
|
19
|
+
"program": "${workspaceFolder}/dist/index.js",
|
|
20
|
+
"args": ["-u", "Enrico Fermi", "-w", "y"]
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
|
3
|
+
// for the documentation about the tasks.json format
|
|
4
|
+
"version": "2.0.0",
|
|
5
|
+
"tasks": [
|
|
6
|
+
{
|
|
7
|
+
"type": "typescript",
|
|
8
|
+
"tsconfig": "tsconfig.json",
|
|
9
|
+
"problemMatcher": ["$tsc"],
|
|
10
|
+
"group": "build"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"type": "shell",
|
|
14
|
+
"label": "webpack dev",
|
|
15
|
+
"command": "npx",
|
|
16
|
+
"options": {
|
|
17
|
+
"env": {
|
|
18
|
+
"NODE_ENV": "development"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"isBackground": true,
|
|
22
|
+
"args": ["webpack", "--config webpack.config.js"],
|
|
23
|
+
"problemMatcher": [
|
|
24
|
+
{
|
|
25
|
+
"pattern": [
|
|
26
|
+
{
|
|
27
|
+
"regexp": ".",
|
|
28
|
+
"file": 1,
|
|
29
|
+
"location": 2,
|
|
30
|
+
"message": 3
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"background": {
|
|
34
|
+
"activeOnStart": true,
|
|
35
|
+
"beginsPattern": ".",
|
|
36
|
+
"endsPattern": ".",
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
## 0.7.0 (2022-04-08)
|
|
2
|
+
|
|
3
|
+
### Feat
|
|
4
|
+
|
|
5
|
+
- add hard limit of big app, max 30mb
|
|
6
|
+
|
|
7
|
+
## 0.6.1 (2022-04-08)
|
|
8
|
+
|
|
9
|
+
### Fix
|
|
10
|
+
|
|
11
|
+
- upload in new supabase method
|
|
12
|
+
|
|
13
|
+
## 0.6.0 (2022-04-06)
|
|
14
|
+
|
|
15
|
+
### Feat
|
|
16
|
+
|
|
17
|
+
- allow external url for upload
|
|
18
|
+
|
|
19
|
+
## 0.5.6 (2022-04-06)
|
|
20
|
+
|
|
21
|
+
### Fix
|
|
22
|
+
|
|
23
|
+
- mobile app url
|
|
24
|
+
|
|
25
|
+
## 0.5.5 (2022-04-05)
|
|
26
|
+
|
|
27
|
+
### Fix
|
|
28
|
+
|
|
29
|
+
- CLI messages
|
|
30
|
+
|
|
31
|
+
## 0.5.4 (2022-04-05)
|
|
32
|
+
|
|
33
|
+
### Fix
|
|
34
|
+
|
|
35
|
+
- upload multipart on new supabase function
|
|
36
|
+
|
|
37
|
+
## 0.5.3 (2022-04-05)
|
|
38
|
+
|
|
39
|
+
### Fix
|
|
40
|
+
|
|
41
|
+
- remove useless key for now
|
|
42
|
+
|
|
43
|
+
## 0.5.2 (2022-04-05)
|
|
44
|
+
|
|
45
|
+
### Fix
|
|
46
|
+
|
|
47
|
+
- revert to old upload logic
|
|
48
|
+
|
|
49
|
+
## 0.5.1 (2022-04-01)
|
|
50
|
+
|
|
51
|
+
### Fix
|
|
52
|
+
|
|
53
|
+
- put all env var in same file
|
|
54
|
+
|
|
55
|
+
## 0.5.0 (2022-04-01)
|
|
56
|
+
|
|
57
|
+
### Feat
|
|
58
|
+
|
|
59
|
+
- use supbase function instead of netlify to handle timeout
|
|
60
|
+
|
|
61
|
+
## 0.4.5 (2022-03-31)
|
|
62
|
+
|
|
63
|
+
### Fix
|
|
64
|
+
|
|
65
|
+
- npm listing
|
|
66
|
+
|
|
67
|
+
## 0.4.4 (2022-03-31)
|
|
68
|
+
|
|
69
|
+
### Fix
|
|
70
|
+
|
|
71
|
+
- issue in npm listing
|
|
72
|
+
|
|
73
|
+
## 0.4.3 (2022-03-24)
|
|
74
|
+
|
|
75
|
+
### Fix
|
|
76
|
+
|
|
77
|
+
- make channel optional
|
|
78
|
+
|
|
79
|
+
## 0.4.2 (2022-03-24)
|
|
80
|
+
|
|
81
|
+
### Fix
|
|
82
|
+
|
|
83
|
+
- remove version from mendatory field in set
|
|
84
|
+
|
|
85
|
+
## 0.4.1 (2022-03-24)
|
|
86
|
+
|
|
87
|
+
### Fix
|
|
88
|
+
|
|
89
|
+
- better logs for set
|
|
90
|
+
|
|
91
|
+
## 0.4.0 (2022-03-24)
|
|
92
|
+
|
|
93
|
+
### Feat
|
|
94
|
+
|
|
95
|
+
- allow set chanel state
|
|
96
|
+
|
|
97
|
+
## 0.3.1 (2022-03-17)
|
|
98
|
+
|
|
99
|
+
### Fix
|
|
100
|
+
|
|
101
|
+
- format upload
|
|
102
|
+
|
|
103
|
+
## 0.3.0 (2022-03-17)
|
|
104
|
+
|
|
105
|
+
### Feat
|
|
106
|
+
|
|
107
|
+
- allow format switch
|
|
108
|
+
|
|
109
|
+
## 0.2.1 (2022-03-16)
|
|
110
|
+
|
|
111
|
+
### Fix
|
|
112
|
+
|
|
113
|
+
- keywords npm
|
|
114
|
+
|
|
115
|
+
## 0.2.0 (2022-03-14)
|
|
116
|
+
|
|
117
|
+
### Feat
|
|
118
|
+
|
|
119
|
+
- update package and allow delete only one version
|
|
120
|
+
- add channel system
|
|
121
|
+
- add delete app method
|
|
122
|
+
- add add feature
|
|
123
|
+
- make upload work
|
|
124
|
+
|
|
125
|
+
### Fix
|
|
126
|
+
|
|
127
|
+
- delete logs
|
|
128
|
+
- deploy new version builded
|
|
129
|
+
- better error throw
|
|
130
|
+
- cli throw error when upload fail
|
|
131
|
+
- delete wrong log
|
|
132
|
+
- publish right version
|
|
133
|
+
- naming in doc and cli
|
|
134
|
+
- pack version for deploy
|
|
135
|
+
- url use new one
|
|
136
|
+
- version number
|
|
137
|
+
- upload for folder bigger than 6 mb
|
|
138
|
+
- error message
|
|
139
|
+
- test other error log
|
|
140
|
+
- description
|
|
141
|
+
- add default path for icon
|
|
142
|
+
- upload allow channel
|
|
143
|
+
- remove production option and use only channel
|
|
144
|
+
- deploy to npm
|
|
145
|
+
- host to service
|
|
146
|
+
- upload
|
|
147
|
+
- use appId as identifier
|
|
148
|
+
- dep issue
|