-
-
Notifications
You must be signed in to change notification settings - Fork 552
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(all): rewrote in typescript
* well here we go * refactor(all-makers): rewrote in typescript * now some publishers * more publishers * pretty much everything * Finish typescript conversion with core tests * Conflict resolution * Ensure ts output is generated (forgot the tsconfig) * Fix ES5 inclusion of fetch-mock * Remove .vscode
- Loading branch information
1 parent
129e4ab
commit a3faa61
Showing
173 changed files
with
3,385 additions
and
1,822 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 |
---|---|---|
|
@@ -12,6 +12,7 @@ | |
"node": "6" | ||
} | ||
} | ||
] | ||
], | ||
"@babel/typescript" | ||
] | ||
} |
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,4 +1,7 @@ | ||
node_modules | ||
dist | ||
yarn-error.log | ||
packages/.old | ||
packages/.old | ||
**/tsconfig.json | ||
!/tsconfig.json | ||
.vscode |
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,2 +1,3 @@ | ||
--require @babel/register | ||
--require ../../../tools/test-setup.js | ||
--timeout 800000 |
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 was deleted.
Oops, something went wrong.
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,41 @@ | ||
import { api, InstallAsset } from '@electron-forge/core'; | ||
import inquirer from 'inquirer'; | ||
|
||
import program from 'commander'; | ||
|
||
import './util/terminate'; | ||
|
||
(async () => { | ||
let repo!: string; | ||
|
||
program | ||
.version(require('../package.json').version) | ||
.arguments('[repository]') | ||
.option('--prerelease', 'Fetch prerelease versions') | ||
.action((repository) => { | ||
repo = repository; | ||
}) | ||
.parse(process.argv); | ||
|
||
const chooseAsset = async (assets: InstallAsset[]) => { | ||
const choices: { name: string, value: string }[] = []; | ||
assets.forEach((asset) => { | ||
choices.push({ name: asset.name, value: asset.id }); | ||
}); | ||
const { assetID } = await inquirer.createPromptModule()<{ assetID: string }>({ | ||
type: 'list', | ||
name: 'assetID', | ||
message: 'Multiple potential assets found, please choose one from the list below:'.cyan, | ||
choices, | ||
}); | ||
|
||
return assets.find(asset => asset.id === assetID)!; | ||
} | ||
|
||
await api.install({ | ||
repo, | ||
interactive: true, | ||
chooseAsset, | ||
prerelease: program.prerelease, | ||
}); | ||
})(); |
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
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.