-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Bastien Wirtz
committed
Oct 22, 2021
0 parents
commit d135185
Showing
206 changed files
with
22,926 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
test/reports/* | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
{ | ||
"extends": "eslint:recommended", | ||
"env": { | ||
"browser": true, | ||
"es6": true, | ||
"node": true, | ||
"jest": true | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 6 | ||
}, | ||
"rules": { | ||
// Possible errors | ||
"no-console": "error", | ||
"no-extra-parens": "error", | ||
"no-loss-of-precision": "error", | ||
"no-promise-executor-return": "error", | ||
"no-template-curly-in-string": "error", | ||
"no-unreachable-loop": "error", | ||
"require-atomic-updates": "error", | ||
"no-useless-backreference": "error", | ||
// Best practices | ||
"array-callback-return": ["error", { "checkForEach": true }], | ||
"block-scoped-var": "error", | ||
"consistent-return": "error", | ||
"curly": "error", | ||
"default-case": "error", | ||
"default-case-last": "error", | ||
"default-param-last": "error", | ||
"dot-notation": "error", | ||
"eqeqeq": "error", | ||
"no-constructor-return": "error", | ||
"no-else-return": "error", | ||
"no-extra-bind": "error", | ||
"no-multi-spaces" : "error", | ||
"no-underscore-dangle": "error", | ||
"no-sequences": "error", | ||
"no-unused-expressions": "warn", | ||
"prefer-regex-literals": "warn", | ||
"valid-jsdoc": ["error", {"requireReturn": false}], | ||
// Strict mode | ||
"strict": "error", | ||
// Variables | ||
"no-shadow": "error", | ||
"no-undefined": "error", | ||
"no-use-before-define": "error", | ||
// Stylistic issues | ||
"array-bracket-newline": ["error", "consistent"], | ||
"array-bracket-spacing": ["error", "never"], | ||
"array-element-newline": ["error", "consistent"], | ||
"block-spacing": "error", | ||
"brace-style": "error", | ||
"camelcase": ["error", {"ignoreDestructuring": true, "ignoreGlobals": true}], | ||
"comma-dangle": ["error", "only-multiline"], | ||
"computed-property-spacing": ["error", "never", { "enforceForClassMembers": true }], | ||
"consistent-this": ["error", "self"], | ||
"eol-last": ["error", "always"], | ||
"func-call-spacing": ["error", "never"], | ||
"func-style": ["error", "declaration", { "allowArrowFunctions": true }], | ||
"indent": ["error", 4], | ||
"keyword-spacing": "error", | ||
"linebreak-style": ["error", "unix"], | ||
"max-len": ["error", 120, {"ignoreComments": true}], | ||
"multiline-comment-style": ["error", "starred-block"], | ||
"new-cap": ["error", { "properties": false }], | ||
"new-parens": "error", | ||
"newline-per-chained-call": "error", | ||
"no-multi-assign": "error", | ||
"no-multiple-empty-lines": ["error", { "max": 1 } ], | ||
"no-trailing-spaces": "error", | ||
"object-curly-spacing": ["error", "never"], | ||
"padded-blocks": ["error", "never"], | ||
"quotes": ["error", "single"], | ||
"semi": ["error", "always"], | ||
"semi-style": ["error", "last"], | ||
"space-before-function-paren": ["error", "never"], | ||
"space-in-parens": ["error", "never"], | ||
"spaced-comment": ["error", "always"], | ||
// ECMAScript 6 | ||
"arrow-parens": ["error", "always"], | ||
"arrow-spacing": "error", | ||
"no-confusing-arrow": "error", | ||
"no-var": "error", | ||
"prefer-const": "error", | ||
"prefer-spread": "error" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
## Prerequisites | ||
|
||
- [ ] I've read & comply with the [contributing guidelines](https://github.com/Genymobile/genymotion-device-web-player/blob/main/CONTRIBUTING.md) | ||
* [ ] I've searched open issues if my demand is already reported. | ||
|
||
## Description | ||
|
||
Description of the bug or feature / support request . | ||
|
||
## Steps to Reproduce | ||
|
||
1. [First Step] | ||
2. [Second Step] | ||
3. [and so on...] | ||
|
||
**Expected behavior:** | ||
|
||
What you expected to happen. | ||
|
||
**Actual behavior:** | ||
|
||
What actually happened. | ||
|
||
## Versions / environment | ||
|
||
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`). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
## Description | ||
|
||
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). | ||
|
||
Fixes #<issue> | ||
|
||
## Type of change | ||
|
||
- [ ] Bug fix (non-breaking change which fixes an issue) | ||
- [ ] New feature (non-breaking change which adds functionality) | ||
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) | ||
|
||
## Checklist: | ||
|
||
- [ ] I've read & comply with the [contributing guidelines](https://github.com/Genymobile/genymotion-device-web-player/blob/main/CONTRIBUTING.md) | ||
- [ ] I have tested my code for new features & regressions on both mobile & desktop devices, using the latest version of major browsers. | ||
- [ ] I have made corresponding changes to the documentation (README.md). | ||
- [ ] I've checked my modifications for any breaking changes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# 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 | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | ||
|
||
name: Integration | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [12.x] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'yarn' | ||
- run: yarn install | ||
- run: yarn validate | ||
- run: yarn test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# This workflow will run lints & tests then create a GitHub release and publish a package to NPM | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages | ||
|
||
name: Release | ||
|
||
on: | ||
push: | ||
tags: [v*] | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 12 | ||
registry-url: https://registry.npmjs.org/ | ||
- name: Build project | ||
run: | | ||
yarn install | ||
yarn validate | ||
yarn test | ||
yarn build | ||
- name: Create GitHub Release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
draft: false | ||
prerelease: false | ||
|
||
- name: NPM Release | ||
run: yarn publish --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
|
||
# Created by https://www.gitignore.io/api/node,jetbrains,linux,osx,virtualenv | ||
|
||
# Build artifact | ||
/dist | ||
|
||
### Node ### | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
|
||
# Documentation | ||
docs/private | ||
docs/public | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# test report directory | ||
tests/reports | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules | ||
jspm_packages | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
### Microsoft ### | ||
# Visual Studio Code | ||
.vscode/ | ||
|
||
### JetBrains ### | ||
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm | ||
.idea/* | ||
*.iml | ||
|
||
## File-based project format: | ||
*.iws | ||
|
||
## Plugin-specific files: | ||
|
||
# IntelliJ | ||
/out/ | ||
|
||
# mpeltonen/sbt-idea plugin | ||
.idea_modules/ | ||
|
||
# JIRA plugin | ||
atlassian-ide-plugin.xml | ||
|
||
# Crashlytics plugin (for Android Studio and IntelliJ) | ||
com_crashlytics_export_strings.xml | ||
crashlytics.properties | ||
crashlytics-build.properties | ||
fabric.properties | ||
|
||
### JetBrains Patch ### | ||
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721 | ||
|
||
# *.iml | ||
# modules.xml | ||
|
||
|
||
### Linux ### | ||
*~ | ||
|
||
# temporary files which can be created if a process still has a handle open of a deleted file | ||
.fuse_hidden* | ||
|
||
# KDE directory preferences | ||
.directory | ||
|
||
# Linux trash folder which might appear on any partition or disk | ||
.Trash-* | ||
|
||
|
||
### OSX ### | ||
*.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
|
||
# Icon must end with two \r | ||
Icon | ||
|
||
|
||
# Thumbnails | ||
._* | ||
|
||
# Files that might appear in the root of a volume | ||
.DocumentRevisions-V100 | ||
.fseventsd | ||
.Spotlight-V100 | ||
.TemporaryItems | ||
.Trashes | ||
.VolumeIcon.icns | ||
.com.apple.timemachine.donotpresent | ||
|
||
# Directories potentially created on remote AFP share | ||
.AppleDB | ||
.AppleDesktop | ||
Network Trash Folder | ||
Temporary Items | ||
.apdisk | ||
|
||
|
||
### VirtualEnv ### | ||
# Virtualenv | ||
# http://iamzed.com/2009/05/07/a-primer-on-virtualenv/ | ||
.Python | ||
[Bb]in | ||
[Ii]nclude | ||
[Ll]ib | ||
[Ll]ib64 | ||
[Ll]ocal | ||
[Ss]cripts | ||
pyvenv.cfg | ||
.venv | ||
pip-selfcheck.json | ||
|
||
|
||
### Other ### | ||
# Swap files | ||
*.swp |
Oops, something went wrong.