Sebastian McKenzie
|
79045e15c5
|
remove second canCompile declaration
|
2014-11-10 16:42:04 +11:00 |
|
Sebastian McKenzie
|
778cab33d5
|
move canCompile method to util
|
2014-11-10 12:59:24 +11:00 |
|
Sebastian McKenzie
|
e0d3e18865
|
add allowReturnOutsideFunction to util.parse and make nodes optional in util.template
|
2014-11-10 08:16:22 +11:00 |
|
Sebastian McKenzie
|
8f435d59da
|
change sebmck to new 6to5 org
|
2014-11-09 20:08:36 +11:00 |
|
Sebastian McKenzie
|
98df094e60
|
fix cached templates exporting
|
2014-11-09 16:40:37 +11:00 |
|
Sebastian McKenzie
|
83286cccd2
|
use file node builder and save parents to ast tree
|
2014-11-09 16:26:52 +11:00 |
|
Sebastian McKenzie
|
0b86a2fef8
|
use acorns preserveParens
|
2014-11-09 12:06:56 +11:00 |
|
Sebastian McKenzie
|
d0a33ab933
|
add inherits option to util.template
|
2014-11-08 12:00:12 +11:00 |
|
Sebastian McKenzie
|
a04513a3c7
|
faster util.pushMutatorMap aliases
|
2014-11-07 12:28:52 +11:00 |
|
Sebastian McKenzie
|
5ff6f445b2
|
fix class computed methods
|
2014-11-04 15:53:36 +11:00 |
|
Sebastian McKenzie
|
6519ceaa63
|
move util.getIds to types.getIds
|
2014-11-04 12:47:03 +11:00 |
|
Sebastian McKenzie
|
816c1d304b
|
remove builders and move them to automatially generated types
|
2014-11-03 21:13:35 +11:00 |
|
Sebastian McKenzie
|
620e5791af
|
use t.is* methods to nicen up code
|
2014-11-03 18:10:52 +11:00 |
|
Sebastian McKenzie
|
47ee2cc99f
|
simplify err.loc references
|
2014-11-03 17:53:08 +11:00 |
|
Sebastian McKenzie
|
95f3ca6348
|
Merge branch 'master' into code-generator
Conflicts:
lib/6to5/transformers/classes.js
test/fixtures/transformation/source-maps/class/expected.js
test/fixtures/transformation/source-maps/class/source-mappings.json
|
2014-11-03 13:38:44 +11:00 |
|
Sebastian McKenzie
|
c17878913b
|
add classProps declaration to simplify/nicen up class property defining - closes #88
|
2014-11-03 13:36:23 +11:00 |
|
Sebastian McKenzie
|
85f0f6fb14
|
add whitespace option and move util.errorWithNode to File
|
2014-11-03 11:09:58 +11:00 |
|
Sebastian McKenzie
|
1a5ee7d5da
|
change acorn-jsx to acorn-6to5
|
2014-11-01 23:07:53 +11:00 |
|
Sebastian McKenzie
|
6e41309ede
|
add err.stack test to code frame error capture
|
2014-11-01 19:28:35 +11:00 |
|
Sebastian McKenzie
|
378832d31b
|
add comments with estraverse
|
2014-10-31 11:37:17 +11:00 |
|
Sebastian McKenzie
|
e797be518f
|
move some util and traverse methods into types
|
2014-10-30 13:26:06 +11:00 |
|
Sebastian McKenzie
|
b31f3666c8
|
yank out acorn-recast and replace it with our own code generator
|
2014-10-29 20:51:52 +11:00 |
|
Sebastian McKenzie
|
a03fd0f43a
|
fix formatting
|
2014-10-28 10:52:48 +11:00 |
|
Sebastian McKenzie
|
a7d860aab4
|
fix error stack not getting updated
|
2014-10-25 13:03:44 +11:00 |
|
Sebastian McKenzie
|
5f8420f23e
|
move from ast-types and recast to acorn-ast-types and acorn-recast
|
2014-10-23 09:00:27 +11:00 |
|
Sebastian McKenzie
|
2b70df4141
|
add util.resolve
|
2014-10-22 21:43:35 +11:00 |
|
Sebastian McKenzie
|
45bab5709f
|
change require("recast").types to require("ast-types")
|
2014-10-19 17:52:41 +11:00 |
|
Sebastian McKenzie
|
e76462303e
|
add umd module formatter - closes #82
|
2014-10-19 17:39:41 +11:00 |
|
Sebastian McKenzie
|
fceff4b52f
|
add amd module formatter #82
|
2014-10-19 17:05:24 +11:00 |
|
Sebastian McKenzie
|
a75248d2d2
|
remove jsx from valid extensions since we're now using acorn
|
2014-10-19 14:21:27 +11:00 |
|
Sebastian McKenzie
|
1f274a3b95
|
monkeypatch in acorn instead of esprima - immediately fixes #38, fixes #67 @thejameskyle
|
2014-10-19 13:21:56 +11:00 |
|
Sebastian McKenzie
|
aeac003dc8
|
add util.ensureExpressionType which will change a node from a declaration to an expression
|
2014-10-17 11:48:25 +11:00 |
|
Sebastian McKenzie
|
45c8c29cdf
|
add --ignore and --extensions flag to 6to5-node to compliment require hook options
|
2014-10-16 10:02:16 +11:00 |
|
Sebastian McKenzie
|
7fb023c2b0
|
move util.generate to File::generate
|
2014-10-14 14:58:18 +11:00 |
|
Sebastian McKenzie
|
6af0ffd97e
|
nicer automatic reference variables for comptued property names and property method assignment #54
|
2014-10-14 08:50:34 +11:00 |
|
Sebastian McKenzie
|
7bb53314a8
|
move util.isPattern to traverse.isPattern
|
2014-10-13 20:12:28 +11:00 |
|
Sebastian McKenzie
|
5accf49ebf
|
fix mutatormap property bug
|
2014-10-13 16:36:07 +11:00 |
|
Sebastian McKenzie
|
8b7d58fc1f
|
add ignore to dotfile templates
|
2014-10-13 14:25:19 +11:00 |
|
Sebastian McKenzie
|
964f50bdc8
|
remove ast-types dependency and use the exported recast ast-types
|
2014-10-13 14:11:08 +11:00 |
|
Sebastian McKenzie
|
737c349775
|
add util.isReferenced to check if a node is directly referenced
|
2014-10-13 05:34:18 +11:00 |
|
Sebastian McKenzie
|
da4a5d48ad
|
much better let scoping without wrapping functions #52 #49 #24
|
2014-10-13 04:37:28 +11:00 |
|
Sebastian McKenzie
|
aa7c9488b0
|
hardcode aliasArguments
|
2014-10-13 03:27:27 +11:00 |
|
Sebastian McKenzie
|
73c491ecb4
|
better arguments aliasing for arrow functions, add it to block binding - fixes #52
|
2014-10-12 15:32:40 +11:00 |
|
Sebastian McKenzie
|
86903f1087
|
remove unused formatJSON method, more reliable parse errors
|
2014-10-12 13:41:52 +11:00 |
|
Sebastian McKenzie
|
16010575b5
|
add missing util tests and remove dead util methods
|
2014-10-11 23:39:56 +11:00 |
|
Sebastian McKenzie
|
01413e5153
|
recapture stack trace in case the stack was built prior
|
2014-10-11 22:40:09 +11:00 |
|
Sebastian McKenzie
|
9a8dfd105e
|
add jsx to canCompile
|
2014-10-11 22:00:22 +11:00 |
|
Sebastian McKenzie
|
1571ba2045
|
add sourceMapName and sourceFileName options, make them default to the filename option - resolves #44
|
2014-10-11 15:01:42 +11:00 |
|
Sebastian McKenzie
|
ab46a26508
|
treat arrow functions as another function type when transforming
|
2014-10-11 14:08:53 +11:00 |
|
Sebastian McKenzie
|
a40cbc2cee
|
make class methods unenumerable - fixes #41
|
2014-10-11 11:49:03 +11:00 |
|