Skip to content

Commit

Permalink
Merge pull request #126 from Oxalin/master
Browse files Browse the repository at this point in the history
Decaffeinate, add new features and possible API breakage
  • Loading branch information
4ver authored Apr 8, 2024
2 parents 4f5730f + 64f54c5 commit 48511cc
Show file tree
Hide file tree
Showing 23 changed files with 919 additions and 587 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" ]
}
10 changes: 6 additions & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@
root = true

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

[*.coffee]
indent_style = space
indent_size = 4
[{package.json,package-lock.json}]
indent_size = 2

[*.js]
indent_style = space
Expand Down
29 changes: 29 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"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", 4, { "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"
}
}
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
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 25 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
{
"name": "auto-launch",
"version": "5.1.0",
"version": "6.0.0-rc.2",
"description": "Launch node applications or executables at login (Mac, Windows, Linux and FreeBSD)",
"main": "dist/index.js",
"type": "module",
"main": "./src/index.js",
"exports": "./src/index.js",
"scripts": {
"test": "mocha --compilers coffee:coffeescript/register tests/*.coffee",
"lint": "coffeelint -f ./node_modules/teamwork-coffeelint-rules/coffeelint.json src/ tests/",
"build": "coffee -c -o dist/ src/"
"lint": "eslint --ext .js src tests",
"lint:fix": "pnpm lint --fix",
"test": "mocha tests/test.js --reporter spec"
},
"pre-commit": {
"run": [
"test"
]
},
"engines": {
"node": ">=12.0.0"
"node": ">=14.0.0"
},
"repository": {
"type": "git",
"url": "https://github.com/4ver/node-auto-launch"
"url": "https://github.com/Teamwork/node-auto-launch"
},
"keywords": [
"login",
Expand All @@ -27,25 +34,24 @@
"contributors": [
"Adam Lynch <[email protected]>"
],
"homepage": "https://github.com/Teamwork/node-auto-launch",
"license": "MIT",
"bugs": {
"url": "https://github.com/4ver/node-auto-launch/issues"
"url": "https://github.com/Teamwork/node-auto-launch/issues"
},
"devDependencies": {
"@coffeelint/cli": "^5.2.11",
"chai": "^3.5.0",
"coffeescript": "^2.7.0",
"mocha": "^3.0.0",
"teamwork-coffeelint-rules": "0.0.1"
"@babel/core": "^7.23.6",
"@babel/eslint-parser": "^7.23.0",
"@babel/preset-env": "^7.23.6",
"chai": "^4.3.0",
"eslint": "^8.55.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.29.0",
"mocha": "^10.2.0"
},
"homepage": "https://github.com/4ver/node-auto-launch",
"dependencies": {
"applescript": "^1.0.0",
"mkdirp": "^0.5.1",
"untildify": "^3.0.2",
"untildify": "^5.0.0",
"winreg": "1.2.4"
},
"overrides": {
"graceful-fs": "^4.2.11"
}
}
49 changes: 0 additions & 49 deletions src/AutoLaunchLinux.coffee

This file was deleted.

99 changes: 0 additions & 99 deletions src/AutoLaunchMac.coffee

This file was deleted.

65 changes: 0 additions & 65 deletions src/AutoLaunchWindows.coffee

This file was deleted.

Loading

0 comments on commit 48511cc

Please sign in to comment.