1778 Commits

Author SHA1 Message Date
Logan Smyth
df2c3f3d25 Use the common space helper everywhere to ensure we get the smallest output possible. 2016-06-16 22:00:24 -07:00
Logan Smyth
5c74ebb87e Remove unneeded space check. 2016-06-16 22:00:24 -07:00
Logan Smyth
1514d0a1ad Drop some space-insertion logic. 2016-06-16 22:00:23 -07:00
Logan Smyth
39896b4d91 Automatically prepend a space when writing a word immediately after a word. 2016-06-16 22:00:23 -07:00
Logan Smyth
4286cb4f2a Explicitly label standalone tokens and words. 2016-06-16 22:00:23 -07:00
Logan Smyth
e702e67233 Split all of the pushes into individual tokens. 2016-06-16 22:00:23 -07:00
Logan Smyth
22e2c88269 Drop the unneeded noIndent function param. 2016-06-16 22:00:23 -07:00
Logan Smyth
f566700657 Avoid processing indentation for every pushed string. 2016-06-16 21:59:51 -07:00
Logan Smyth
8336aa52e8 Split all of the separators into functions. 2016-06-16 20:31:19 -07:00
Logan Smyth
3e1a661eb6 Use the general list handlers and the default separator. 2016-06-16 20:31:19 -07:00
Logan Smyth
315c075419 Remove the unnecessary push/_push division. 2016-06-16 20:31:19 -07:00
Logan Smyth
528128f62d Avoid looking for raw values for all nodes. 2016-06-16 20:31:19 -07:00
Logan Smyth
710f151d31 Use the standard space helper for comment space. 2016-06-16 20:31:19 -07:00
Logan Smyth
680fcc16d7 Standardize on .endsWith 2016-06-16 20:31:19 -07:00
Logan Smyth
2f790889eb Make sure to roll back the generated position markers when trimming spaces. 2016-06-16 20:31:19 -07:00
Logan Smyth
9ddf9aabfc Don't track position when sourcemaps are off. 2016-06-16 20:31:19 -07:00
Logan Smyth
61e3b1d314 Remove incorrect function/class check. 2016-06-16 20:31:19 -07:00
Logan Smyth
0be2f1cf48 Remove unnecessary ensureSemicolon. 2016-06-16 20:31:19 -07:00
Logan Smyth
67763085ab Be consistent with semicolons. 2016-06-16 20:31:19 -07:00
Logan Smyth
c1ba5e6ac8 Remove unused force param. 2016-06-16 20:31:19 -07:00
Logan Smyth
d042ddfdda Clarify that the code generator class is not public. 2016-06-16 20:31:19 -07:00
Logan Smyth
efea2c19f2 Add more tests for minified output. 2016-06-16 20:31:19 -07:00
Logan Smyth
e64aeb7316 v6.10.1 2016-06-11 00:36:09 -07:00
Logan Smyth
57328c1fbd Merge pull request #3526 from loganfsmyth/fix-switch-error
Fix an issue with the switch handing from PR #3490.
2016-06-11 00:32:37 -07:00
Logan Smyth
5ddce1372b Fix an issue with the switch handing from PR #3490. 2016-06-11 00:17:36 -07:00
Aleksey Smolenchuk
2033c1da30 remove shorthand of --skip-initial-build
-s is already taken by --source-maps
2016-06-10 22:46:24 -07:00
Henry Zhu
c5ae951f98 v6.10.0 2016-06-11 00:05:21 -04:00
Henry Zhu
b567c02413 generator tests 2016-06-10 18:05:54 -04:00
Henry Zhu
ff42a744df add back in identifier 2016-06-10 17:07:03 -04:00
Henry Zhu
63e8313788 add type def 2016-06-08 16:16:22 -04:00
Henry Zhu
ad0e1ba6de Support changes in flow parsing 2016-06-08 13:07:58 -04:00
Logan Smyth
61b3a6314b Merge pull request #3490 from jayphelps/T7324
create new lexical env inside switch statement blocks, fixes #T7324
2016-05-30 14:42:29 -07:00
Logan Smyth
85ec7834d0 Merge pull request #3489 from lxe/optinal-nocompile-watch
babel-cli: add --skip-initial-build option to only compile on changes when watching
2016-05-30 14:29:30 -07:00
Henry Zhu
5b3db3aceb v6.9.2 2016-05-29 19:16:15 -04:00
Henry Zhu
e95ff9effb Fix: for babel-runtime, regenerator-runtime should be a dependency now (#3516) 2016-05-29 19:14:42 -04:00
Henry Zhu
77ac82b9f5 v6.9.1 2016-05-29 15:50:04 -04:00
Ben Newman
b3acf9100e Make babel-runtime use regenerator-runtime from npm. (#3494)
The source repository for regenerator-runtime can now be found at
https://github.com/facebook/regenerator/tree/master/packages/regenerator-runtime

This also removes the babel-regenerator-runtime package, now that the only
difference between it and regenerator-runtime has been resolved:
bc8d2d672c
2016-05-28 19:04:48 -04:00
Andrew Johnston
f408f28a02 Fix: assign _this to this when there is no Superclass - Fixes T7364
Closes gh-3508
2016-05-28 09:51:28 -04:00
Lukas Eipert
8532bb8334 update license field with a valid SPDX expression (#3507) 2016-05-28 09:39:06 -04:00
Leonid Nikiforenko
822e8804d5 Make JSXText Immutable (#3510) 2016-05-25 23:30:29 -04:00
Aleksey Smolenchuk
4bf6f8ab18 cli: --skip-initial-build option to compile only on watched changes 2016-05-20 09:47:41 -07:00
Lukas Eipert
13c961d29d Adds repository field to babel-regenerator-runtime (#3506)
Similiar to #3370.

One of our licensing checking scripts throws warnings, as we expect npm dependencies to contain the repository field.
2016-05-20 11:41:48 -04:00
Jesse McCarthy
ff044bbb0f Use more ideal mocha hooks (#3446)
* setup() instead of manual before().
* suiteTeardown() instead of afterEach().
2016-05-19 08:26:59 -04:00
Henry Zhu
cf6304a34b v6.9.0 2016-05-17 14:49:17 -04:00
Shuhei Kagawa
be9be86919 Add decorators to argument types (#3470) 2016-05-16 16:48:20 -04:00
Denis Pushkarev
16ad574e48 Update core-js to 2.4 (#3480) 2016-05-16 16:46:22 -04:00
Guy Bedford
40c4e7c2ea Modules systemjs system global name, use strict wrapping (#3482)
* modules systemjs system global name, use strict wrapping

* document systemGlobal option in readme
2016-05-16 16:46:06 -04:00
Alexander Kotliarskyi
8fa1174b32 Skip adding __source if it already exists (#3504) 2016-05-16 16:45:33 -04:00
dlwalsh
cdb465a834 remove repeating dependency from babel-traverse (#3501) 2016-05-16 09:54:37 -04:00
dlwalsh
9f8cd91605 Replace trim-right with _.trimEnd (#3502) 2016-05-16 09:53:48 -04:00