Skip to content

Commit

Permalink
Merge pull request #127 from Teamwork/decaffeinate
Browse files Browse the repository at this point in the history
This removes all CoffeeScript in favor of JavaScript and EM6 module.
Actually add AppX support.
Improve Linux support.
Improve test coverage.

API breakage: to better support extra arguments to be added at launch and to better structure the options, the API is changed. While it should still support the old options, I may have missed some cases.
  • Loading branch information
Oxalin authored Apr 9, 2024
2 parents 4f5730f + 5b21022 commit c332f54
Show file tree
Hide file tree
Showing 23 changed files with 6,242 additions and 1,067 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": [ "@babel/preset-env" ]
}
17 changes: 4 additions & 13 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,9 @@
root = true

[*]
charset = "utf8"
charset = "utf-8"
indent_style = space
indent_size = 2
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true

[*.coffee]
indent_style = space
indent_size = 4

[*.js]
indent_style = space
indent_size = 4

[*.json]
indent_style = space
indent_size = 4
48 changes: 48 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"extends": "airbnb-base",
"env": {
"browser": true,
"mocha": true
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"requireConfigFile": false,
"sourceType": "module"
},
"rules": {
"brace-style": "warn",
"class-methods-use-this": 0,
"comma-dangle": [
"warn",
"only-multiline"
],
"indent": [
"warn",
2,
{
"SwitchCase": 1
}
],
"lines-between-class-members": "off",
"linebreak-style": "off",
"max-len": [
"warn",
128
],
"no-promise-executor-return": "warn",
"no-var": "error",
"no-useless-constructor": "off",
"object-curly-newline": "warn",
"object-curly-spacing": "warn",
"prefer-arrow-callback": "off",
"prefer-const": "warn",
"prefer-destructuring": "off",
"import/extensions": [
"error",
"ignorePackages",
{
"js": "always"
}
]
}
}
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ jobs:
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
node-version: ["12", "14", "16", "18", "20"]
node-version: ["14", "16", "18", "20"]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

Expand Down
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
*
!dist/*
!src/*
!README.md
!LICENSE.md
!package.json
Loading

0 comments on commit c332f54

Please sign in to comment.