52 Commits

Author SHA1 Message Date
Sebastian McKenzie
bd91bbee71 put experimental ES7 features behind a flag --experimental and experimental option 2014-11-21 19:36:35 +11:00
Sebastian McKenzie
71ad511322 add File::generateUidIdentifier method 2014-11-20 21:08:33 +11:00
Sebastian McKenzie
aa7eb9c1c9 remove unused opts arg 2014-11-20 00:49:01 +11:00
Lars Kappert
df0e4f6431 Reuse Formatter::getModuleName(), fix opts 2014-11-19 08:43:28 +01:00
Lars Kappert
a37f2093bc Merge branch 'master' of github.com:6to5/6to5 into amd-module-id
Conflicts:
	lib/6to5/file.js
	lib/6to5/transformation/modules/umd.js
2014-11-19 08:39:02 +01:00
Sebastian McKenzie
6822c854d4 add interop-require declaration 2014-11-19 12:40:44 +11:00
Sebastian McKenzie
221d78d2e2 arrayify whitelist and blacklist, inherit moduleRoot from sourceRoot and vice versa 2014-11-19 12:13:00 +11:00
Richard Eames
bc3502d695 Allow module transformers to be directly passed into opts. 2014-11-18 15:29:59 -07:00
Lars Kappert
8db466c698 Make AMD module id's optional 2014-11-18 22:04:41 +01:00
Sebastian McKenzie
8a9a205122 fix up comments option 2014-11-17 11:59:52 +11:00
Lars Kappert
e1cc1dcb4b Introduce --remove-comments (-c) option 2014-11-16 20:33:50 +01:00
Sebastian McKenzie
3777af6bbd add filenameRelative default and make sourceFileName and sourceMapName inherit form it 2014-11-16 19:19:25 +11:00
Sebastian McKenzie
9fb8a80f60 support raw property on tagged template literals - closes #164 2014-11-15 03:00:53 +11:00
Sebastian McKenzie
ed7378cc2d add apply-constructor declaration and add support for not returning generated code in opts.code 2014-11-12 18:29:03 +11:00
Sebastian McKenzie
b4232699d2 add newline after shebang 2014-11-11 15:23:31 +11:00
Sebastian McKenzie
6f05466cf5 normalise windows path separators to unix 2014-11-11 13:36:59 +11:00
Sebastian McKenzie
1400dee0c1 delegate code and opts assurance to File 2014-11-11 01:06:29 +11:00
Sebastian McKenzie
9e2fc6db9c clone options - sindresorhus/grunt-6to5#7 2014-11-11 01:04:39 +11:00
Sebastian McKenzie
ab9cd4e630 add support for an optional runtime - closes #129 2014-11-09 12:02:06 +11:00
Sebastian McKenzie
5c6d57c51b add transformation and generation folders 2014-11-08 09:17:12 +11:00
Sebastian McKenzie
56ac964e54 remove newline assurance and add optional Error constructor to File::errorWithNode 2014-11-07 13:51:31 +11:00
Sebastian McKenzie
346f72be05 ensure files end with a newline 2014-11-07 12:32:48 +11:00
Sebastian McKenzie
d7ae3b506a fix linting errors 2014-11-04 15:53:11 +11:00
Sebastian McKenzie
d1088583ba default generateUid scope to Program 2014-11-04 12:57:06 +11:00
Sebastian McKenzie
d28496006e implement Scope so we can keep track of references to avoid collisions when generating ids 2014-11-04 12:46:47 +11:00
Sebastian McKenzie
816c1d304b remove builders and move them to automatially generated types 2014-11-03 21:13:35 +11:00
Sebastian McKenzie
c963c30107 fix errorWithNode line mapping 2014-11-03 17:50:25 +11:00
Sebastian McKenzie
85f0f6fb14 add whitespace option and move util.errorWithNode to File 2014-11-03 11:09:58 +11:00
Sebastian McKenzie
8a1ea82e97 remove legacy generator options 2014-10-31 11:38:04 +11:00
Sebastian McKenzie
ea7ac4cd2d change acorn-ast-types to internal builders 2014-10-30 13:09:12 +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
9abda34e59 simplify transform call chain 2014-10-25 17:23:27 +11:00
Sebastian McKenzie
65ba4d35e7 fix jshint errors 2014-10-25 09:09:31 +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
035829e726 add custom module formatters 2014-10-22 21:43:43 +11:00
Sebastian McKenzie
73f65ae634 fix jshint spacing issues 2014-10-20 08:35:02 +11:00
Sebastian McKenzie
45bab5709f change require("recast").types to require("ast-types") 2014-10-19 17:52:41 +11:00
Sebastian McKenzie
fceff4b52f add amd module formatter #82 2014-10-19 17:05:24 +11:00
Sebastian McKenzie
a1adca6b65 add support for custom module formatters - #82 2014-10-19 12:11:12 +11:00
Sebastian McKenzie
d3b088cc6d move declaration insertion to a hidden transformer, add tabWidth to recast prettyPrint 2014-10-18 15:45:22 +11:00
Sebastian McKenzie
7fb023c2b0 move util.generate to File::generate 2014-10-14 14:58:18 +11:00
Sebastian McKenzie
c9f56b838f return vanilla object instead of modifying the recast PrintResult 2014-10-14 14:58:18 +11:00
Sebastian McKenzie
04466e3fea move code generation to new method 2014-10-14 14:58:18 +11:00
Sebastian McKenzie
73b8daf370 add generators support via regenerator 2014-10-14 14:58:18 +11:00
Sebastian McKenzie
3b22cb283b use templates instead of separate declarations logic 2014-10-14 14:58:17 +11:00
Sebastian McKenzie
1f61e7675b add file alias declarations so we can alias certain long function calls - resolves #62 2014-10-14 08:49:53 +11:00
Sebastian McKenzie
9d18905ce9 output shebang in transpiled code - fixes #55 2014-10-13 15:47:22 +11:00
Sebastian McKenzie
453502b4f2 add Transformer class that deals with running a transformer against a File 2014-10-13 14:45:15 +11:00
Sebastian McKenzie
eaf98de962 normalise transformers to improve performance 2014-10-13 14:36:11 +11:00
Sebastian McKenzie
51db2ee136 support shebangs - fixes #55 2014-10-13 11:55:33 +11:00