Skip to content

Commit d135185

Browse files
author
Bastien Wirtz
committed
Initial commit
0 parents  commit d135185

File tree

206 files changed

+22926
-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.

206 files changed

+22926
-0
lines changed

.eslintignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
test/reports/*
2+
dist

.eslintrc.json

+87
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
{
2+
"extends": "eslint:recommended",
3+
"env": {
4+
"browser": true,
5+
"es6": true,
6+
"node": true,
7+
"jest": true
8+
},
9+
"parserOptions": {
10+
"ecmaVersion": 6
11+
},
12+
"rules": {
13+
// Possible errors
14+
"no-console": "error",
15+
"no-extra-parens": "error",
16+
"no-loss-of-precision": "error",
17+
"no-promise-executor-return": "error",
18+
"no-template-curly-in-string": "error",
19+
"no-unreachable-loop": "error",
20+
"require-atomic-updates": "error",
21+
"no-useless-backreference": "error",
22+
// Best practices
23+
"array-callback-return": ["error", { "checkForEach": true }],
24+
"block-scoped-var": "error",
25+
"consistent-return": "error",
26+
"curly": "error",
27+
"default-case": "error",
28+
"default-case-last": "error",
29+
"default-param-last": "error",
30+
"dot-notation": "error",
31+
"eqeqeq": "error",
32+
"no-constructor-return": "error",
33+
"no-else-return": "error",
34+
"no-extra-bind": "error",
35+
"no-multi-spaces" : "error",
36+
"no-underscore-dangle": "error",
37+
"no-sequences": "error",
38+
"no-unused-expressions": "warn",
39+
"prefer-regex-literals": "warn",
40+
"valid-jsdoc": ["error", {"requireReturn": false}],
41+
// Strict mode
42+
"strict": "error",
43+
// Variables
44+
"no-shadow": "error",
45+
"no-undefined": "error",
46+
"no-use-before-define": "error",
47+
// Stylistic issues
48+
"array-bracket-newline": ["error", "consistent"],
49+
"array-bracket-spacing": ["error", "never"],
50+
"array-element-newline": ["error", "consistent"],
51+
"block-spacing": "error",
52+
"brace-style": "error",
53+
"camelcase": ["error", {"ignoreDestructuring": true, "ignoreGlobals": true}],
54+
"comma-dangle": ["error", "only-multiline"],
55+
"computed-property-spacing": ["error", "never", { "enforceForClassMembers": true }],
56+
"consistent-this": ["error", "self"],
57+
"eol-last": ["error", "always"],
58+
"func-call-spacing": ["error", "never"],
59+
"func-style": ["error", "declaration", { "allowArrowFunctions": true }],
60+
"indent": ["error", 4],
61+
"keyword-spacing": "error",
62+
"linebreak-style": ["error", "unix"],
63+
"max-len": ["error", 120, {"ignoreComments": true}],
64+
"multiline-comment-style": ["error", "starred-block"],
65+
"new-cap": ["error", { "properties": false }],
66+
"new-parens": "error",
67+
"newline-per-chained-call": "error",
68+
"no-multi-assign": "error",
69+
"no-multiple-empty-lines": ["error", { "max": 1 } ],
70+
"no-trailing-spaces": "error",
71+
"object-curly-spacing": ["error", "never"],
72+
"padded-blocks": ["error", "never"],
73+
"quotes": ["error", "single"],
74+
"semi": ["error", "always"],
75+
"semi-style": ["error", "last"],
76+
"space-before-function-paren": ["error", "never"],
77+
"space-in-parens": ["error", "never"],
78+
"spaced-comment": ["error", "always"],
79+
// ECMAScript 6
80+
"arrow-parens": ["error", "always"],
81+
"arrow-spacing": "error",
82+
"no-confusing-arrow": "error",
83+
"no-var": "error",
84+
"prefer-const": "error",
85+
"prefer-spread": "error"
86+
}
87+
}

.github/ISSUE_TEMPLATE.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
## Prerequisites
2+
3+
- [ ] I've read & comply with the [contributing guidelines](https://github.com/Genymobile/genymotion-device-web-player/blob/main/CONTRIBUTING.md)
4+
* [ ] I've searched open issues if my demand is already reported.
5+
6+
## Description
7+
8+
Description of the bug or feature / support request .
9+
10+
## Steps to Reproduce
11+
12+
1. [First Step]
13+
2. [Second Step]
14+
3. [and so on...]
15+
16+
**Expected behavior:**
17+
18+
What you expected to happen.
19+
20+
**Actual behavior:**
21+
22+
What actually happened.
23+
24+
## Versions / environment
25+
26+
If you are reporting a bug, please describe your environement and the versions you are using (you can get this information from executing `npm version`).

.github/PULL_REQUEST_TEMPLATE.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
## Description
2+
3+
Please include a summary of the change and which issue is fixed if any. Please also include relevant motivation and context (a screenshot is appreciated).
4+
5+
Fixes #<issue>
6+
7+
## Type of change
8+
9+
- [ ] Bug fix (non-breaking change which fixes an issue)
10+
- [ ] New feature (non-breaking change which adds functionality)
11+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
12+
13+
## Checklist:
14+
15+
- [ ] I've read & comply with the [contributing guidelines](https://github.com/Genymobile/genymotion-device-web-player/blob/main/CONTRIBUTING.md)
16+
- [ ] I have tested my code for new features & regressions on both mobile & desktop devices, using the latest version of major browsers.
17+
- [ ] I have made corresponding changes to the documentation (README.md).
18+
- [ ] I've checked my modifications for any breaking changes.

.github/workflows/integration.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Integration
5+
6+
on:
7+
push:
8+
branches: [ main ]
9+
pull_request:
10+
branches: [ main ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
matrix:
19+
node-version: [12.x]
20+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
21+
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: Use Node.js ${{ matrix.node-version }}
25+
uses: actions/setup-node@v2
26+
with:
27+
node-version: ${{ matrix.node-version }}
28+
cache: 'yarn'
29+
- run: yarn install
30+
- run: yarn validate
31+
- run: yarn test
32+

.github/workflows/release.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This workflow will run lints & tests then create a GitHub release and publish a package to NPM
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3+
4+
name: Release
5+
6+
on:
7+
push:
8+
tags: [v*]
9+
10+
jobs:
11+
release:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-node@v2
16+
with:
17+
node-version: 12
18+
registry-url: https://registry.npmjs.org/
19+
- name: Build project
20+
run: |
21+
yarn install
22+
yarn validate
23+
yarn test
24+
yarn build
25+
- name: Create GitHub Release
26+
uses: actions/create-release@v1
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
with:
30+
tag_name: ${{ github.ref }}
31+
release_name: Release ${{ github.ref }}
32+
draft: false
33+
prerelease: false
34+
35+
- name: NPM Release
36+
run: yarn publish --access public
37+
env:
38+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

.gitignore

+148
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
2+
# Created by https://www.gitignore.io/api/node,jetbrains,linux,osx,virtualenv
3+
4+
# Build artifact
5+
/dist
6+
7+
### Node ###
8+
# Logs
9+
logs
10+
*.log
11+
npm-debug.log*
12+
13+
# Runtime data
14+
pids
15+
*.pid
16+
*.seed
17+
18+
# Documentation
19+
docs/private
20+
docs/public
21+
22+
# Directory for instrumented libs generated by jscoverage/JSCover
23+
lib-cov
24+
25+
# Coverage directory used by tools like istanbul
26+
coverage
27+
28+
# test report directory
29+
tests/reports
30+
31+
# nyc test coverage
32+
.nyc_output
33+
34+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
35+
.grunt
36+
37+
# node-waf configuration
38+
.lock-wscript
39+
40+
# Compiled binary addons (http://nodejs.org/api/addons.html)
41+
build/Release
42+
43+
# Dependency directories
44+
node_modules
45+
jspm_packages
46+
47+
# Optional npm cache directory
48+
.npm
49+
50+
# Optional REPL history
51+
.node_repl_history
52+
53+
### Microsoft ###
54+
# Visual Studio Code
55+
.vscode/
56+
57+
### JetBrains ###
58+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
59+
.idea/*
60+
*.iml
61+
62+
## File-based project format:
63+
*.iws
64+
65+
## Plugin-specific files:
66+
67+
# IntelliJ
68+
/out/
69+
70+
# mpeltonen/sbt-idea plugin
71+
.idea_modules/
72+
73+
# JIRA plugin
74+
atlassian-ide-plugin.xml
75+
76+
# Crashlytics plugin (for Android Studio and IntelliJ)
77+
com_crashlytics_export_strings.xml
78+
crashlytics.properties
79+
crashlytics-build.properties
80+
fabric.properties
81+
82+
### JetBrains Patch ###
83+
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
84+
85+
# *.iml
86+
# modules.xml
87+
88+
89+
### Linux ###
90+
*~
91+
92+
# temporary files which can be created if a process still has a handle open of a deleted file
93+
.fuse_hidden*
94+
95+
# KDE directory preferences
96+
.directory
97+
98+
# Linux trash folder which might appear on any partition or disk
99+
.Trash-*
100+
101+
102+
### OSX ###
103+
*.DS_Store
104+
.AppleDouble
105+
.LSOverride
106+
107+
# Icon must end with two \r
108+
Icon
109+
110+
111+
# Thumbnails
112+
._*
113+
114+
# Files that might appear in the root of a volume
115+
.DocumentRevisions-V100
116+
.fseventsd
117+
.Spotlight-V100
118+
.TemporaryItems
119+
.Trashes
120+
.VolumeIcon.icns
121+
.com.apple.timemachine.donotpresent
122+
123+
# Directories potentially created on remote AFP share
124+
.AppleDB
125+
.AppleDesktop
126+
Network Trash Folder
127+
Temporary Items
128+
.apdisk
129+
130+
131+
### VirtualEnv ###
132+
# Virtualenv
133+
# http://iamzed.com/2009/05/07/a-primer-on-virtualenv/
134+
.Python
135+
[Bb]in
136+
[Ii]nclude
137+
[Ll]ib
138+
[Ll]ib64
139+
[Ll]ocal
140+
[Ss]cripts
141+
pyvenv.cfg
142+
.venv
143+
pip-selfcheck.json
144+
145+
146+
### Other ###
147+
# Swap files
148+
*.swp

0 commit comments

Comments
 (0)