Skip to content

Convert the scripts to TypeScript#3675

Merged
iAmWillShepherd merged 72 commits intodesktop:masterfrom
j-f1:my-hands-are-typing
Jul 6, 2018
Merged

Convert the scripts to TypeScript#3675
iAmWillShepherd merged 72 commits intodesktop:masterfrom
j-f1:my-hands-are-typing

Conversation

@j-f1
Copy link
Contributor

@j-f1 j-f1 commented Dec 24, 2017

Fixes #48.

TODO:

const input = Fs.createReadStream(assetPath)

hash.on('finish', () => {
const sha = hash.read().toString('hex')

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

teetsmelange
teetsmelange previously approved these changes Dec 30, 2017
package.json Outdated
"eslint:fix": "yarn eslint --fix",
"eslint-check": "eslint --print-config .eslintrc.* | eslint-config-prettier-check",
"publish": "node script/publish",
"publish": "ts-node script/publish",

This comment was marked as spam.

script/debug.ts Outdated
@@ -0,0 +1,37 @@
'use strict'

This comment was marked as spam.

@j-f1
Copy link
Contributor Author

j-f1 commented Jan 6, 2018

Depends on DefinitelyTyped/DefinitelyTyped#22722 @types/legal-eagle getting published.

@j-f1
Copy link
Contributor Author

j-f1 commented Jan 17, 2018

🔷

@j-f1
Copy link
Contributor Author

j-f1 commented Jan 17, 2018

Can someone restart the Travis CI build? Thanks!

@shiftkey
Copy link
Member

a02d8c4 now merges the Webpack 4 changes into this PR, and there's a couple of type errors that are outstanding now - almost ready for another round of review!

@iAmWillShepherd iAmWillShepherd removed their assignment May 23, 2018
@shiftkey shiftkey removed their assignment May 24, 2018
@shiftkey
Copy link
Member

Alright, I'm dropping myself as a reviewer because I've been heavily involved in this, but I think this is close to merging in. Could someone else give this a pass and a 👍?

@shiftkey
Copy link
Member

shiftkey commented Jul 3, 2018

Friendly bump on this @desktop/core - would love to figure out if we can land this soon


import { forceUnwrap as u } from '../app/src/lib/fatal-error'

import configs = require('../app/webpack.development')

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

script/start.ts Outdated

function startApp() {
const runningApp = run({ stdio: 'inherit' })
if (!runningApp) {

This comment was marked as spam.

tsconfig.json Outdated
"app/**/*.ts",
"app/**/*.tsx",
"app/**/*.d.tsx",
"app/webpack.*.ts"

This comment was marked as spam.

s3.upload(
uploadParams,
(error: Error, data: AWS.S3.ManagedUpload.SendData) => {
if (error) {

This comment was marked as spam.

sha = sha.substr(0, 8)
const sha = getSha().substr(0, 8)

const getSecret = () => {

This comment was marked as spam.

This comment was marked as spam.

cp.execSync('yarn package')
execSync('yarn package')

const getSha = () => {

This comment was marked as spam.

if (
!currentTipSHA ||
!currentTipSHA.toUpperCase().startsWith(releaseSHA.toUpperCase())
!currentTipSHA.toUpperCase().startsWith(releaseSHA!.toUpperCase())

This comment was marked as spam.

This comment was marked as spam.

@iAmWillShepherd iAmWillShepherd self-assigned this Jul 3, 2018
@iAmWillShepherd iAmWillShepherd merged commit 80791f1 into desktop:master Jul 6, 2018
@j-f1 j-f1 deleted the my-hands-are-typing branch July 6, 2018 14:53
@shiftkey
Copy link
Member

shiftkey commented Jul 6, 2018

Thanks @j-f1 for this work!

@lock lock bot locked as resolved and limited conversation to collaborators Sep 4, 2018
@desktop desktop unlocked this conversation Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Issues and pull requests related to scripts and tooling for GitHub Desktop ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants