-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- strong types on node type enum - use native flatMap over R.chain - specify reporter in CLI flags - save history of run results in run-record.json - fix the signature of some unused filter functions - test isStringRequire - upgrade to Node 12, TS 3.7, lib es2019
- Loading branch information
Showing
23 changed files
with
304 additions
and
91 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
12.5.0 |
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 |
---|---|---|
@@ -1 +1,3 @@ | ||
- should encourage running with the fork runner, it needs to be faster. probably need to implement worker pooling | ||
- ~run-record should keep a history with a time log~ | ||
- reporters should be able to display progress, which means they need to hold state |
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
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,13 +1,89 @@ | ||
const S = require("estraverse").Syntax; | ||
// copied from https://github.com/estools/estraverse/blob/54d608c4ce0eb36d9bade685edcc3177e90e9f3c/estraverse.js#L75-L148 | ||
// the @types/estraverse package does not include this enum of node types | ||
|
||
S.LOOP_NODES = [S.WhileStatement, S.DoWhileStatement, S.ForStatement]; | ||
enum S { | ||
AssignmentExpression = "AssignmentExpression", | ||
AssignmentPattern = "AssignmentPattern", | ||
ArrayExpression = "ArrayExpression", | ||
ArrayPattern = "ArrayPattern", | ||
ArrowFunctionExpression = "ArrowFunctionExpression", | ||
AwaitExpression = "AwaitExpression", // CAUTION: It's deferred to ES7. | ||
BlockStatement = "BlockStatement", | ||
BinaryExpression = "BinaryExpression", | ||
BreakStatement = "BreakStatement", | ||
CallExpression = "CallExpression", | ||
CatchClause = "CatchClause", | ||
ClassBody = "ClassBody", | ||
ClassDeclaration = "ClassDeclaration", | ||
ClassExpression = "ClassExpression", | ||
ComprehensionBlock = "ComprehensionBlock", // CAUTION: It's deferred to ES7. | ||
ComprehensionExpression = "ComprehensionExpression", // CAUTION: It's deferred to ES7. | ||
ConditionalExpression = "ConditionalExpression", | ||
ContinueStatement = "ContinueStatement", | ||
DebuggerStatement = "DebuggerStatement", | ||
DirectiveStatement = "DirectiveStatement", | ||
DoWhileStatement = "DoWhileStatement", | ||
EmptyStatement = "EmptyStatement", | ||
ExportAllDeclaration = "ExportAllDeclaration", | ||
ExportDefaultDeclaration = "ExportDefaultDeclaration", | ||
ExportNamedDeclaration = "ExportNamedDeclaration", | ||
ExportSpecifier = "ExportSpecifier", | ||
ExpressionStatement = "ExpressionStatement", | ||
ForStatement = "ForStatement", | ||
ForInStatement = "ForInStatement", | ||
ForOfStatement = "ForOfStatement", | ||
FunctionDeclaration = "FunctionDeclaration", | ||
FunctionExpression = "FunctionExpression", | ||
GeneratorExpression = "GeneratorExpression", // CAUTION: It"s deferred to ES7. | ||
Identifier = "Identifier", | ||
IfStatement = "IfStatement", | ||
ImportExpression = "ImportExpression", | ||
ImportDeclaration = "ImportDeclaration", | ||
ImportDefaultSpecifier = "ImportDefaultSpecifier", | ||
ImportNamespaceSpecifier = "ImportNamespaceSpecifier", | ||
ImportSpecifier = "ImportSpecifier", | ||
Literal = "Literal", | ||
LabeledStatement = "LabeledStatement", | ||
LogicalExpression = "LogicalExpression", | ||
MemberExpression = "MemberExpression", | ||
MetaProperty = "MetaProperty", | ||
MethodDefinition = "MethodDefinition", | ||
ModuleSpecifier = "ModuleSpecifier", | ||
NewExpression = "NewExpression", | ||
ObjectExpression = "ObjectExpression", | ||
ObjectPattern = "ObjectPattern", | ||
Program = "Program", | ||
Property = "Property", | ||
RestElement = "RestElement", | ||
ReturnStatement = "ReturnStatement", | ||
SequenceExpression = "SequenceExpression", | ||
SpreadElement = "SpreadElement", | ||
Super = "Super", | ||
SwitchStatement = "SwitchStatement", | ||
SwitchCase = "SwitchCase", | ||
TaggedTemplateExpression = "TaggedTemplateExpression", | ||
TemplateElement = "TemplateElement", | ||
TemplateLiteral = "TemplateLiteral", | ||
ThisExpression = "ThisExpression", | ||
ThrowStatement = "ThrowStatement", | ||
TryStatement = "TryStatement", | ||
UnaryExpression = "UnaryExpression", | ||
UpdateExpression = "UpdateExpression", | ||
VariableDeclaration = "VariableDeclaration", | ||
VariableDeclarator = "VariableDeclarator", | ||
WhileStatement = "WhileStatement", | ||
WithStatement = "WithStatement", | ||
YieldExpression = "YieldExpression", | ||
}; | ||
|
||
S.TEST_NODES = [S.IfStatement, S.ConditionalExpression, S.SwitchCase]; | ||
export const LOOP_NODES = [S.WhileStatement, S.DoWhileStatement, S.ForStatement]; | ||
|
||
S.FUNC_NODES = [ | ||
export const TEST_NODES = [S.IfStatement, S.ConditionalExpression, S.SwitchCase]; | ||
|
||
export const FUNC_NODES = [ | ||
S.FunctionDeclaration, | ||
S.FunctionExpression, | ||
S.ArrowFunctionExpression, | ||
]; | ||
|
||
export default S; | ||
export default S; |
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.