-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Replace Flowtype with Typescript (#3)
Setting up the repo to run with Typescript instead of Flowtype. This required changing the initial code, updating Jest & updating ESLint. Also: - Set up .travis.yml - Move eslint configuration into its own `.eslintrc.json` - Removing Babel as its replaced by Typescript (except `babel-eslint` which is needed by `eslint-config-eventbrite`)
- Loading branch information
1 parent
045d95e
commit 98d06d7
Showing
16 changed files
with
152 additions
and
7,364 deletions.
There are no files selected for viewing
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
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,20 @@ | ||
# Configuration files | ||
tsconfig.json | ||
config | ||
|
||
# Source code | ||
src | ||
|
||
# Dependency directories | ||
node_modules | ||
yarn.lock | ||
|
||
# Editor settings | ||
.vscode | ||
|
||
# Logs | ||
logs | ||
*.log | ||
|
||
# Test files | ||
**/*.spec.* |
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,11 @@ | ||
language: node_js | ||
node_js: | ||
- "node" | ||
- "8" | ||
- "6" | ||
|
||
# Cache dependencies in $HOME/.yarn-cache across builds | ||
cache: yarn | ||
|
||
# Run the the validate script with code coverage | ||
script: yarn run validate |
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,12 @@ | ||
const path = require("path"); | ||
const tsc = require("typescript"); | ||
const tsConfig = require("../tsconfig.json"); | ||
|
||
module.exports = { | ||
process(src, fullPath) { | ||
if (path.extname(fullPath) === ".ts") { | ||
return tsc.transpile(src, tsConfig.compilerOptions, fullPath, []); | ||
} | ||
return src; | ||
} | ||
}; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.