Skip to content

Commit

Permalink
Migrated to Typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel-Raju committed Jan 27, 2020
1 parent f4fdf23 commit 12ac5f1
Show file tree
Hide file tree
Showing 75 changed files with 3,539 additions and 4,130 deletions.
6 changes: 1 addition & 5 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ node_modules
# OSX
.DS_Store

# flow-typed
flow-typed/npm/*
!flow-typed/npm/module_vx.x.x.js

# App packaged
release
app/main.prod.js
Expand All @@ -49,4 +45,4 @@ main.js.map

.idea
npm-debug.log.*
.*.dockerfile
.*.dockerfile
7 changes: 3 additions & 4 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ node_modules
# OSX
.DS_Store

# flow-typed
flow-typed/npm/*
!flow-typed/npm/module_vx.x.x.js

# App packaged
release
app/main.prod.js
Expand All @@ -54,3 +50,6 @@ __snapshots__
# Package.json
package.json
.travis.yml
*.css.d.ts
*.sass.d.ts
*.scss.d.ts
10 changes: 8 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
module.exports = {
extends: 'erb',
extends: 'erb/typescript',
rules: {
// A temporary hack related to IDE not resolving correct package.json
'import/no-extraneous-dependencies': 'off'
},
settings: {
'import/resolver': {
// See https://github.com/benmosher/eslint-plugin-import/issues/1396#issuecomment-575727774 for line below
node: {},
webpack: {
config: require.resolve('./configs/webpack.config.eslint.js')
}
}
}
}
};
26 changes: 0 additions & 26 deletions .flowconfig

This file was deleted.

8 changes: 5 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
run: |
yarn package-ci
yarn lint
yarn flow
yarn build-e2e
yarn test-e2e
yarn ts
# Failing beacuse virtual framebuffer not installed
# yarn build-e2e
# yarn test-e2e
7 changes: 3 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ node_modules
# OSX
.DS_Store

# flow-typed
flow-typed/npm/*
!flow-typed/npm/module_vx.x.x.js

# App packaged
release
app/main.prod.js
Expand All @@ -49,6 +45,9 @@ main.js.map

.idea
npm-debug.log.*
*.css.d.ts
*.sass.d.ts
*.scss.d.ts

native/target
native/index.node
Expand Down
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ cache:
directories:
- node_modules
- $(npm config get prefix)/lib/node_modules
- flow-typed
- $HOME/.cache/electron
- $HOME/.cache/electron-builder

Expand Down Expand Up @@ -67,8 +66,7 @@ before_script:
script:
- yarn package-ci
- yarn lint
- yarn flow
# HACK: Temporarily ignore `yarn test` on linux
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then yarn test; fi
- yarn ts
- yarn test
- yarn build-e2e
- yarn test-e2e
7 changes: 1 addition & 6 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"dzannotti.vscode-babel-coloring",
"EditorConfig.EditorConfig",
"flowtype.flow-for-vscode"
]
"recommendations": ["dbaeumer.vscode-eslint", "EditorConfig.EditorConfig"]
}
8 changes: 3 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,14 @@
".stylelintrc": "json",

".dockerignore": "ignore",
".eslintignore": "ignore",
".flowconfig": "ignore"
".eslintignore": "ignore"
},

"javascript.validate.enable": false,
"javascript.format.enable": false,
"typescript.validate.enable": false,
"typescript.format.enable": false,

"flow.useNPMPackagedFlow": true,
"search.exclude": {
".git": true,
".eslintcache": true,
Expand All @@ -25,11 +23,11 @@
"app/main.prod.js.map": true,
"bower_components": true,
"dll": true,
"flow-typed": true,
"release": true,
"node_modules": true,
"npm-debug.log.*": true,
"test/**/__snapshots__": true,
"yarn.lock": true
"yarn.lock": true,
"*.{css,sass,scss}.d.ts": true
}
}
Loading

0 comments on commit 12ac5f1

Please sign in to comment.