Skip to content

Commit 432ad62

Browse files
UrielChov3rk1lldrauggres
authored
V3.0 (#79)
* relint + convert to TS Signed-off-by: urielch <[email protected]> * replace some Bluebird buy vanilla Promise Signed-off-by: urielch <[email protected]> * use some async Signed-off-by: urielch <[email protected]> * rollback Signed-off-by: urielch <[email protected]> * update commanderJS Signed-off-by: urielch <[email protected]> * update test deps Signed-off-by: urielch <[email protected]> * update deps Signed-off-by: urielch <[email protected]> * update typing Signed-off-by: urielch <[email protected]> * update deps Signed-off-by: urielch <[email protected]> * updatedeps Signed-off-by: urielch <[email protected]> * prepare update Bluebird version Signed-off-by: urielch <[email protected]> * prepare update Bluebird 3 Signed-off-by: urielch <[email protected]> * fix Buffer usage Signed-off-by: urielch <[email protected]> * small patches Signed-off-by: urielch <[email protected]> * bluebird 3 Signed-off-by: urielch <[email protected]> * update generator Signed-off-by: urielch <[email protected]> * remove callback + split client Signed-off-by: urielch <[email protected]> * clean code Signed-off-by: urielch <[email protected]> * clean Signed-off-by: urielch <[email protected]> * test are now run as TS Signed-off-by: urielch <[email protected]> * add 'client.getPackagesWithFlags' for flags in 'pm list packages' (#56) Issue: #55 Signed-off-by: ov3rk1ll <[email protected]> Signed-off-by: urielch <[email protected]> * add flag argument to client.getPackages #56 Signed-off-by: urielch <[email protected]> * add showcase long-running shell commands (#59) Signed-off-by: urielch <[email protected]> * update doc Signed-off-by: urielch <[email protected]> * more typing, more docs Signed-off-by: urielch <[email protected]> * update doc Signed-off-by: urielch <[email protected]> * patch package..json Signed-off-by: urielch <[email protected]> * roll back tab size from 4 to 2. Signed-off-by: urielch <[email protected]> * update doc Signed-off-by: urielch <[email protected]> * fix tesrt unit Signed-off-by: urielch <[email protected]> * Extend original `getPackages` method, keep compatibility (#61) * Extend original `getPackages` method, keep compatibility Signed-off-by: Sergey Volkov <[email protected]> * Rename local single character variables Signed-off-by: Sergey Volkov <[email protected]> Signed-off-by: urielch <[email protected]> * publish project Signed-off-by: urielch <[email protected]> * last cleanup Signed-off-by: urielch <[email protected]> * resync original package name. Signed-off-by: urielch <[email protected]> * Update README.md. Add @DeviceFarmer scope (#50) Signed-off-by: Sergey Volkov <[email protected]> Signed-off-by: urielch <[email protected]> * add 'client.getPackagesWithFlags' for flags in 'pm list packages' (#56) Issue: #55 Signed-off-by: ov3rk1ll <[email protected]> Signed-off-by: urielch <[email protected]> * Update README.md Signed-off-by: urielch <[email protected]> * fix merge error Signed-off-by: urielch <[email protected]> * merge Signed-off-by: urielch <[email protected]> * clean merge error Signed-off-by: urielch <[email protected]> Co-authored-by: ov3rk1ll <[email protected]> Co-authored-by: Sergey Volkov <[email protected]>
1 parent 5bd7a66 commit 432ad62

File tree

270 files changed

+9665
-10020
lines changed

Some content is hidden

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

270 files changed

+9665
-10020
lines changed

.editorconfig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@
33
root = true
44

55
[*]
6-
indent_style = tab
7-
end_of_line = lf
6+
indent_style = space
7+
# end_of_line = lf
88
charset = utf-8
99
trim_trailing_whitespace = true
1010
insert_final_newline = true
1111

1212
[*.js]
1313
indent_style = space
14-
indent_size = 2
14+
indent_size = 4
1515

1616
[*.json]
1717
indent_style = space
18-
indent_size = 2
18+
indent_size = 4
1919

2020
[*.md]
2121
indent_style = space
22-
indent_size = 2
22+
indent_size = 4

.eslintignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
dist/**/*
12
test/**/*.js
23
*.js
3-
/lib/**/*.d.ts
4+
lib/**/*.d.ts
5+
test/**/*.ts

.eslintrc

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,14 @@
55
"prettier",
66
"prettier/@typescript-eslint"
77
],
8-
"plugins": [
9-
"progress",
10-
"@typescript-eslint",
11-
"prettier"
12-
],
13-
"parserOptions": {
14-
"ecmaVersion": 2020,
15-
"sourceType": "module"
8+
"plugins": ["progress", "@typescript-eslint", "prettier"],
9+
"parserOptions": {
10+
"ecmaVersion": 2020,
11+
"sourceType": "module"
1612
},
1713
"rules": {
18-
"progress/activate": 1
14+
"progress/activate": 1,
15+
"indent": ["error", 2, {"SwitchCase": 1}]
1916
},
2017
"overrides": [
2118
]

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/node_modules/
2-
/lib/**/*.js
3-
/lib/**/*.d.ts
42
/temp/
53
/index.js
64
/index.d.ts
75
/*.tgz
86
package-lock.json
7+
/dist
8+
*.log

.npmignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
index.ts
2+
src/
3+
test/
4+
dist/test/
5+
tasks/
6+
bench/
7+
dist/bench/
8+
.prettierrc
9+
.editorconfig
10+
.semaphore
11+
.vscode
12+
.eslintignore
13+
.eslintrc
14+
tsconfig.json
15+
tsconfig-dist.json

.prettierrc

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
2-
"semi": true,
3-
"trailingComma": "all",
4-
"singleQuote": true,
5-
"printWidth": 120,
6-
"tabWidth": 2
2+
"semi": true,
3+
"useTabs": false,
4+
"trailingComma": "all",
5+
"endOfLine": "auto",
6+
"singleQuote": true,
7+
"printWidth": 120,
8+
"tabWidth": 2
79
}

.semaphore/publish.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
version: v1.0
22
name: Publish
33
blocks:
4-
- name: Publish
5-
task:
6-
jobs:
7-
- name: NPM publish
8-
commands:
9-
- checkout
10-
- sem-version node 12
11-
- cache restore
12-
- npm install
13-
- npm publish --access public
14-
secrets:
15-
- name: npmjs
4+
- name: Publish
5+
task:
6+
jobs:
7+
- name: NPM publish
8+
commands:
9+
- checkout
10+
- sem-version node 12
11+
- cache restore
12+
- npm install
13+
- npm publish --access public
14+
secrets:
15+
- name: npmjs
1616
agent:
17-
machine:
18-
type: e1-standard-2
19-
os_image: ubuntu1804
17+
machine:
18+
type: e1-standard-2
19+
os_image: ubuntu1804

.semaphore/semaphore.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
version: v1.0
22
name: NPM Test
33
agent:
4-
machine:
5-
type: e1-standard-2
6-
os_image: ubuntu1804
4+
machine:
5+
type: e1-standard-2
6+
os_image: ubuntu1804
77
blocks:
8-
- name: Test
9-
task:
10-
jobs:
11-
- name: Test
12-
commands:
13-
- checkout
14-
- 'wget https://dl.google.com/android/repository/platform-tools-latest-linux.zip -O ~/platform-tools-latest-linux.zip'
15-
- unzip ~/platform-tools-latest-linux.zip -d ~
16-
- 'export PATH=$PATH:~/platform-tools'
17-
- sem-version node 12
18-
- cache restore
19-
- npm install
20-
- cache store
21-
- npm run build --if-present
22-
- npm test
8+
- name: Test
9+
task:
10+
jobs:
11+
- name: Test
12+
commands:
13+
- checkout
14+
- 'wget https://dl.google.com/android/repository/platform-tools-latest-linux.zip -O ~/platform-tools-latest-linux.zip'
15+
- unzip ~/platform-tools-latest-linux.zip -d ~
16+
- 'export PATH=$PATH:~/platform-tools'
17+
- sem-version node 12
18+
- cache restore
19+
- npm install
20+
- cache store
21+
- npm run build --if-present
22+
- npm test
2323
promotions:
24-
- name: NPM publish
25-
pipeline_file: publish.yml
26-
auto_promote:
27-
when: (branch = 'master' OR tag =~ '.*') AND result = 'passed'
24+
- name: NPM publish
25+
pipeline_file: publish.yml
26+
auto_promote:
27+
when: (branch = 'master' OR tag =~ '.*') AND result = 'passed'

.vscode/launch.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
"configurations": [
7+
{
8+
"cwd": "${workspaceFolder}",
9+
"args": [
10+
"-r",
11+
"ts-node/register",
12+
"--project",
13+
"tsconfig.json",
14+
"--no-timeouts",
15+
"--colors",
16+
"${workspaceFolder}/test/**/*.ts"
17+
],
18+
"internalConsoleOptions": "openOnSessionStart",
19+
"name": "Mocha Tests",
20+
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
21+
"request": "launch",
22+
"skipFiles": [
23+
"<node_internals>/**"
24+
],
25+
"type": "pwa-node"
26+
}
27+
]
28+
}

.vscode/settings.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"files.exclude": {
3+
"lib/**/*.js": true,
4+
"lib/**/*.d.ts": true,
5+
"lib/**/*.map": true
6+
},
7+
"eslint.format.enable": true
8+
}

CONTRIBUTING.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ We are happy to accept any contributions that make sense and respect the rules l
1313

1414
## Rules
1515

16-
* **Do** use feature branches.
17-
* **Do** conform to existing coding style so that your contribution fits in.
18-
* **Do** use [EditorConfig] to enforce our [whitespace rules](.editorconfig). If your editor is not supported, enforce the settings manually.
19-
* **Do** run `npm test` for ESLint and unit test coverage.
20-
* **Do not** touch the `version` field in [package.json](package.json).
21-
* **Do not** commit any generated files, unless already in the repo. If absolutely necessary, explain why.
22-
* **Do not** create any top level files or directories. If absolutely necessary, explain why and update [.npmignore](.npmignore).
16+
- **Do** use feature branches.
17+
- **Do** conform to existing coding style so that your contribution fits in.
18+
- **Do** use [EditorConfig] to enforce our [whitespace rules](.editorconfig). If your editor is not supported, enforce the settings manually.
19+
- **Do** run `npm test` for ESLint and unit test coverage.
20+
- **Do not** touch the `version` field in [package.json](package.json).
21+
- **Do not** commit any generated files, unless already in the repo. If absolutely necessary, explain why.
22+
- **Do not** create any top level files or directories. If absolutely necessary, explain why and update [.npmignore](.npmignore).
2323

2424
## License
2525

2626
By contributing your code, you agree to license your contribution under our [LICENSE](LICENSE).
2727

28-
[editorconfig]: <http://editorconfig.org/>
28+
[editorconfig]: http://editorconfig.org/

0 commit comments

Comments
 (0)