Skip to content

Commit 48511cc

Browse files
authored
Merge pull request #126 from Oxalin/master
Decaffeinate, add new features and possible API breakage
2 parents 4f5730f + 64f54c5 commit 48511cc

23 files changed

+919
-587
lines changed

.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": [ "@babel/preset-env" ]
3+
}

.editorconfig

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44
root = true
55

66
[*]
7-
charset = "utf8"
7+
charset = "utf-8"
8+
indent_style = space
9+
indent_size = 4
10+
end_of_line = lf
811
trim_trailing_whitespace = true
912
insert_final_newline = true
1013

11-
[*.coffee]
12-
indent_style = space
13-
indent_size = 4
14+
[{package.json,package-lock.json}]
15+
indent_size = 2
1416

1517
[*.js]
1618
indent_style = space

.eslintrc.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"extends": "airbnb-base",
3+
"env": {
4+
"browser": true,
5+
"mocha": true
6+
},
7+
"parser": "@babel/eslint-parser",
8+
"parserOptions": {
9+
"requireConfigFile": false,
10+
"sourceType": "module"
11+
},
12+
"rules": {
13+
"brace-style": "warn",
14+
"class-methods-use-this": 0,
15+
"comma-dangle": ["warn", "only-multiline"],
16+
"indent": ["warn", 4, { "SwitchCase": 1 }],
17+
"lines-between-class-members": "off",
18+
"linebreak-style": "off",
19+
"max-len": ["warn", 128],
20+
"no-promise-executor-return": "warn",
21+
"no-var": "error",
22+
"no-useless-constructor": "off",
23+
"object-curly-newline": "warn",
24+
"object-curly-spacing": "warn",
25+
"prefer-arrow-callback": "off",
26+
"prefer-const": "warn",
27+
"prefer-destructuring": "off"
28+
}
29+
}

.github/workflows/ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ jobs:
66
strategy:
77
matrix:
88
os: [macos-latest, windows-latest, ubuntu-latest]
9-
node-version: ["12", "14", "16", "18", "20"]
9+
node-version: ["14", "16", "18", "20"]
1010

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

1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v3
1515

1616
- name: Set up Node.js ${{ matrix.node-version }}
17-
uses: actions/setup-node@v2
17+
uses: actions/setup-node@v3
1818
with:
1919
node-version: ${{ matrix.node-version }}
2020

.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
*
2-
!dist/*
2+
!src/*
33
!README.md
44
!LICENSE.md
55
!package.json

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,26 @@
11
{
22
"name": "auto-launch",
3-
"version": "5.1.0",
3+
"version": "6.0.0-rc.2",
44
"description": "Launch node applications or executables at login (Mac, Windows, Linux and FreeBSD)",
5-
"main": "dist/index.js",
5+
"type": "module",
6+
"main": "./src/index.js",
7+
"exports": "./src/index.js",
68
"scripts": {
7-
"test": "mocha --compilers coffee:coffeescript/register tests/*.coffee",
8-
"lint": "coffeelint -f ./node_modules/teamwork-coffeelint-rules/coffeelint.json src/ tests/",
9-
"build": "coffee -c -o dist/ src/"
9+
"lint": "eslint --ext .js src tests",
10+
"lint:fix": "pnpm lint --fix",
11+
"test": "mocha tests/test.js --reporter spec"
12+
},
13+
"pre-commit": {
14+
"run": [
15+
"test"
16+
]
1017
},
1118
"engines": {
12-
"node": ">=12.0.0"
19+
"node": ">=14.0.0"
1320
},
1421
"repository": {
1522
"type": "git",
16-
"url": "https://github.com/4ver/node-auto-launch"
23+
"url": "https://github.com/Teamwork/node-auto-launch"
1724
},
1825
"keywords": [
1926
"login",
@@ -27,25 +34,24 @@
2734
"contributors": [
2835
"Adam Lynch <[email protected]>"
2936
],
37+
"homepage": "https://github.com/Teamwork/node-auto-launch",
3038
"license": "MIT",
3139
"bugs": {
32-
"url": "https://github.com/4ver/node-auto-launch/issues"
40+
"url": "https://github.com/Teamwork/node-auto-launch/issues"
3341
},
3442
"devDependencies": {
35-
"@coffeelint/cli": "^5.2.11",
36-
"chai": "^3.5.0",
37-
"coffeescript": "^2.7.0",
38-
"mocha": "^3.0.0",
39-
"teamwork-coffeelint-rules": "0.0.1"
43+
"@babel/core": "^7.23.6",
44+
"@babel/eslint-parser": "^7.23.0",
45+
"@babel/preset-env": "^7.23.6",
46+
"chai": "^4.3.0",
47+
"eslint": "^8.55.0",
48+
"eslint-config-airbnb-base": "^15.0.0",
49+
"eslint-plugin-import": "^2.29.0",
50+
"mocha": "^10.2.0"
4051
},
41-
"homepage": "https://github.com/4ver/node-auto-launch",
4252
"dependencies": {
4353
"applescript": "^1.0.0",
44-
"mkdirp": "^0.5.1",
45-
"untildify": "^3.0.2",
54+
"untildify": "^5.0.0",
4655
"winreg": "1.2.4"
47-
},
48-
"overrides": {
49-
"graceful-fs": "^4.2.11"
5056
}
5157
}

src/AutoLaunchLinux.coffee

Lines changed: 0 additions & 49 deletions
This file was deleted.

src/AutoLaunchMac.coffee

Lines changed: 0 additions & 99 deletions
This file was deleted.

src/AutoLaunchWindows.coffee

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)