This repository has been archived by the owner on Sep 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 262
Typescriptify - Conversion to TypeScript. #133
Open
BurtHarris
wants to merge
26
commits into
jayphelps:master
Choose a base branch
from
BurtHarris:typescriptify
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
9122175
added package-lock.json generated by npm@5
4cdbe0d
feat: remove deprecated decorators
55de621
further work on removing obsolete decorators
7b96d89
Update build scripts to use TypeScript exclusively
b70f978
Convert the easy functions to TypeScript
b93c248
Build src with gulp
1752052
Build tests w/ Babel at build time
2e95f60
Add gulp build of tests for Typescript
10b7b78
Fix gulpfile for typescript test sourcemaps
4ae646f
Push test sources into test/src
c2473c8
Revert "Push test sources into test/src"
64d5f65
continued gulp/TypeScript conversion
88519c0
Enable eslint in build
c339ce2
Wrapup making all tests run under both Babel and TypeScript
585ca8a
insert_final_newline
1804235
Whitespace fixes
a81f8ac
Removed unneeded change to .editorconfig
4ea03a0
+ comment re: yarn's upcoming 1.0 release
559b393
Clarifying yarn comment in gulpfile
9324ab1
Whitespace/indentation fixes
ea71047
Removed extranious comment in util.ts
b83569e
eslint tune-up
ea6e3e0
Support Yarn
645a243
cleanup remaining lint & test issues
5ac29b6
Update describing TypeScript support in README.md
4533023
fix module capitilization
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,4 @@ | ||
lib/**/*.js | ||
esm/**/*.js | ||
test/babel/**/*.js | ||
test/typescript/**/*.js |
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,24 @@ | ||
{ | ||
"extends": "eslint:recommended", | ||
"env": { | ||
"commonjs": true, | ||
"es6": true, | ||
"node": true, | ||
"mocha": true | ||
}, | ||
"parser": "babel-eslint", | ||
"parserOptions": { | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
"camelcase": "off", | ||
"no-unreachable": "warn", | ||
"no-unused-vars": "warn", | ||
"no-throw-literal": "warn", | ||
"no-unused-expressions": "off", | ||
"no-console": "off", | ||
"indent": ["error", 2], | ||
"semi": ["error", "always"], | ||
"space-before-function-paren": ["error", "never"] | ||
} | ||
} |
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,5 +1,7 @@ | ||
node_modules | ||
/lib/ | ||
/es/ | ||
/node_modules/ | ||
/built/ | ||
/esm/ | ||
/test/babel/ | ||
/test/typescript/ | ||
*.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 |
---|---|---|
@@ -1,20 +1,18 @@ | ||
{ | ||
// Use IntelliSense to learn about possible Node.js debug attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Mocha Tests", | ||
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha", | ||
"args": [ | ||
"--compilers", "js:babel-core/register", | ||
"--require", "babel-polyfill", | ||
"${workspaceRoot}/test/**/*.spec.js", | ||
"--debug" | ||
] | ||
} | ||
] | ||
// Use IntelliSense to learn about possible Node.js debug attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Mocha Tests", | ||
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha", | ||
"args": [ | ||
"--no-timeouts", | ||
"--debug" | ||
] | ||
} | ||
] | ||
} |
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,27 @@ | ||
// Place your settings in this file to overwrite default and user settings. | ||
{ | ||
// Mocha: Options to run Mocha | ||
"mocha.options": { | ||
"opts": "test/mocha.opts" | ||
}, | ||
// Mocha: Glob to search for test files | ||
"mocha.files.glob": "test/babel/*.spec.js", | ||
// Mocha: Globs to ignore when searching for test files | ||
"mocha.files.ignore": [ | ||
"**/.git/**/*", | ||
"**/node_modules/**/*", | ||
"**/unit/*.spec.js" | ||
], | ||
// Mocha: Environment variables to run your tests | ||
"mocha.env": {}, | ||
// Mocha: Options to pass to node executable | ||
"mocha.node_options": [], | ||
// Mocha: Subdirectory in the Workspace where run mocha from | ||
"mocha.subfolder": "", | ||
// Mocha: List of files to require before running mocha | ||
"mocha.requires": [ | ||
"babel-register", | ||
"source-map-support/register" | ||
] | ||
|
||
} |
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,11 +1,21 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "0.1.0", | ||
"command": "tsc", | ||
"isShellCommand": true, | ||
"args": ["-w", "-p", "."], | ||
"showOutput": "silent", | ||
"isBackground": true, | ||
"problemMatcher": "$tsc-watch" | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"type": "gulp", | ||
"task": "watch", | ||
"isBackground": true, | ||
"problemMatcher": [ | ||
"$gulp-tsc", | ||
"$eslint-stylish" | ||
], | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
} | ||
} | ||
|
||
] | ||
} |
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests, from both transpilers, now build into these
test
subdirectories so that they can be compared.