Liam Newman
2e6972bbc1
Avoid joining content twice for most elements
2018-07-31 21:19:00 -07:00
Liam Newman
e3f01c58c0
Simpler and faster unformatted processing
...
get_unformatted is heavily used - in particular for string reading.
This change results in perf improvement of 20% in most cases,
up to 3000% in the base64 image edge case.
2018-07-31 21:11:20 -07:00
Liam Newman
93c5efdd0c
Do not lowercase elements
...
Fixes #1464
2018-07-31 21:01:37 -07:00
Liam Newman
cfe797f6e4
Regression test for #1461
2018-07-31 11:04:09 -07:00
Liam Newman
2b0d6e8e86
Fix adding spaces and indents to handlebars
...
Fixes #1460
2018-07-26 16:02:45 -07:00
Liam Newman
d75357aa31
More cleanup
2018-07-26 14:46:48 -07:00
Liam Newman
bd1610fad9
Refactor number recognition to regex
2018-07-26 11:14:32 -07:00
Liam Newman
bdb82fb80d
Add TOKEN object
2018-07-25 23:28:13 -07:00
Liam Newman
4556d25f67
Merge pull request #1455 from vivainio/master
...
Use entry_points to create script. Fix #1266 (script not working on Windows)
2018-07-25 22:56:25 -07:00
Liam Newman
e1a6de6385
Reorganizing build pipeline
2018-07-25 22:40:25 -07:00
L. D. MacKrell
3993da255a
Update comment on spidermonkey sharp in tokenizer
2018-07-25 13:19:45 -07:00
L. D. MacKrell
05e10caa9b
Fix LESS variable formatting
2018-07-25 11:55:01 -07:00
Liam Newman
2fc2daf483
Add node packaging and tests
...
Fixed #1254
2018-07-25 07:05:21 -07:00
L. D. MacKrell
ad7841ee19
Update handle operator to preserve newline before unary
2018-07-23 15:02:08 -07:00
L. D. MacKrell
d8a2b21ef8
Make output debuggable
2018-07-23 13:20:30 -07:00
Liam Newman
008721a9ed
Remove html beautifier peekString
2018-07-20 11:54:26 -07:00
Liam Newman
1f15cb81fc
Clean up content reading
2018-07-20 00:41:09 -07:00
Liam Newman
75a6f153ca
Move Html beautifier to InputScanner
2018-07-18 21:50:09 -07:00
Liam Newman
5f44759790
CSS Beautifier using InputScanner
2018-07-18 14:01:21 -07:00
Liam Newman
1eae819f77
Remove PeekCharCode
2018-07-16 23:40:30 -07:00
Liam Newman
c34633b73e
Add readWhile for matching
2018-07-16 12:46:07 -07:00
Liam Newman
8362eb3402
CommonJS loads from src
2018-07-12 15:28:06 -07:00
Liam Newman
869739069a
Apply jshint to more files
2018-07-10 17:19:20 -07:00
Liam Newman
54f8e464b4
Add first unit test for input scanner
2018-07-10 00:15:54 -07:00
Liam Newman
2fe86d18ad
Add mocha for unit testing
2018-07-10 00:15:24 -07:00
L. D. MacKrell
fc231b101b
Refactor beautifier startStatement function
2018-07-09 11:10:07 -07:00
L. D. MacKrell
c0d6989d7a
Fix inputscanner
2018-07-09 11:07:53 -07:00
L. D. MacKrell
91ffb9babd
Update copyright dates
2018-07-09 10:42:23 -07:00
L. D. MacKrell
94a8231c1f
Refactor Options with comments
2018-07-09 10:39:20 -07:00
L. D. MacKrell
7548943100
Refactor inputscanner with comments
2018-07-09 10:31:10 -07:00
Liam Newman
054cf55dcd
Fix hanging run
2018-07-08 20:39:32 -07:00
Liam Newman
f8c1d47da8
Fix up merge issues
2018-07-08 18:48:19 -07:00
L. D. MacKrell
a63c5c6cc1
Fix xml detection and test
2018-07-08 18:48:19 -07:00
Liam Newman
a135077fcd
Apply beautifier to more project code
2018-07-06 20:29:17 -07:00
Liam Newman
c8ff7d47a6
Build fixes
2018-07-06 19:14:50 -07:00
Liam Newman
6abc46d50d
Test for comment position
...
Closes #1440
2018-07-06 15:57:09 -07:00
Liam Newman
325d9371be
Switch to 2 space indents
2018-07-06 15:54:51 -07:00
Liam Newman
f535610cc5
Update build and tools
2018-07-06 15:52:16 -07:00
Liam Newman
504d0450d5
Merge remote-tracking branch 'beautify-web/master' into lib-cleanup
2018-07-06 15:50:28 -07:00
Liam Newman
f63714a1ef
Build clean up
2018-07-05 13:26:26 -07:00
Liam Newman
3ac947ec9d
Remove lib from git history
2018-07-05 12:44:04 -07:00
L. D. MacKrell
f491716330
Keeps inline comments with closing tag
2018-07-02 15:55:54 -07:00
Liam Newman
6c6fa835c9
Test for increment indent
...
Fixed #814
2018-06-30 15:46:22 -07:00
Liam Newman
8df34ded0f
Another line wrap test
...
Fixed #1223
2018-06-30 15:16:40 -07:00
Liam Newman
7f0cfda40f
Await import() support
...
Fixed #1228
2018-06-30 14:18:56 -07:00
Liam Newman
42a9c697b7
Merge branch 'master' into wrap-test
2018-06-30 13:05:42 -07:00
Liam Newman
07d746b57c
More test for fixed issues
...
Fixes #882
Fixes #1041
Fixes #1167
Fixes #1184
2018-06-30 13:04:50 -07:00
Liam Newman
48539e2a20
Add line wrap test
2018-06-30 11:34:51 -07:00
Liam Newman
371adf465c
Merge pull request #1297 from cheerypick/master
...
Add 'aligned' option that align attributes after specific line length…
2018-06-30 10:58:08 -07:00
Liam Newman
82039ac0f0
Changed name to aligned-multiple
2018-06-30 10:51:18 -07:00