-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: rewrite to typescript (#169)
* refactor: rewrite to typescript * fix: handle older electron versions
- Loading branch information
1 parent
412a088
commit 9fad2da
Showing
12 changed files
with
365 additions
and
1,931 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
node_modules | ||
dist | ||
xunit.xml | ||
yarn-error.log |
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 |
---|---|---|
|
@@ -4,13 +4,13 @@ | |
"description": "An easy way to install Dev Tools extensions into Electron applications", | ||
"main": "dist/index.js", | ||
"scripts": { | ||
"prettier:check": "prettier --check \"src/**/*.js\" \"test/**/*.js\"", | ||
"prettier:write": "prettier --write \"src/**/*.js\" \"test/**/*.js\"", | ||
"compile": "babel src --out-dir dist", | ||
"prettier:check": "prettier --check \"src/**/*.ts\" \"test/**/*.ts\"", | ||
"prettier:write": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", | ||
"compile": "tsc", | ||
"prepare": "npm run compile", | ||
"pretest-unit": "npm run compile", | ||
"test": "npm run prettier:check && npm run test-unit", | ||
"test-unit": "electron-mocha ./test --recursive --require @babel/register --timeout 60000 -R spec-xunit-file -r test/setup.js" | ||
"test-unit": "electron-mocha ./test/**/*_spec.ts --recursive --require ts-node/register --timeout 60000 -R spec-xunit-file -r test/setup.ts" | ||
}, | ||
"keywords": [ | ||
"electron", | ||
|
@@ -20,7 +20,7 @@ | |
"author": { | ||
"name": "Samuel Attard", | ||
"email": "[email protected]", | ||
"url": "www.samuelattard.com" | ||
"url": "https://www.samuelattard.com" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/MarshallOfSound/electron-devtools-installer/issues" | ||
|
@@ -31,31 +31,31 @@ | |
"url": "https://github.com/MarshallOfSound/electron-devtools-installer.git" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.8.4", | ||
"@babel/core": "^7.9.0", | ||
"@babel/polyfill": "^7.10.1", | ||
"@babel/preset-env": "^7.9.0", | ||
"@babel/register": "^7.9.0", | ||
"@continuous-auth/semantic-release-npm": "^2.0.0", | ||
"@types/chai": "^4.2.14", | ||
"@types/chai-as-promised": "^7.1.3", | ||
"@types/chai-fs": "^2.0.2", | ||
"@types/mocha": "^8.2.0", | ||
"@types/node": "^12.0.0", | ||
"@types/rimraf": "^3.0.0", | ||
"@types/semver": "^7.3.4", | ||
"chai": "^4.2.0", | ||
"chai-as-promised": "^7.1.1", | ||
"chai-fs": "chaijs/chai-fs", | ||
"electron": "7.2.1", | ||
"electron-mocha": "^8.2.1", | ||
"mocha-testdata": "^1.2.0", | ||
"prettier": "^2.0.4", | ||
"spec-xunit-file": "0.0.1-3" | ||
"spec-xunit-file": "0.0.1-3", | ||
"ts-node": "^9.1.1", | ||
"typescript": "^4.1.4" | ||
}, | ||
"dependencies": { | ||
"rimraf": "^3.0.2", | ||
"semver": "^7.2.1", | ||
"tslib": "^2.1.0", | ||
"unzip-crx-3": "^0.2.0" | ||
}, | ||
"babel": { | ||
"presets": [ | ||
"@babel/preset-env" | ||
] | ||
}, | ||
"files": [ | ||
"LICENSE", | ||
"README.md", | ||
|
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
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
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
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
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
Oops, something went wrong.