151 Commits
Author SHA1 Message Date
Andrey Sitnik f802b854e0 Allow to set processor by object API 2014-08-27 12:49:52 +04:00
Andrey Sitnik 6418ab36a9 Fix indent 2014-08-27 12:49:52 +04:00
Andrey Sitnik 6c73021f4f Send process options to processors 2014-08-22 14:43:02 +04:00
Andrey Sitnik d92d0a3fe6 Use GNU style syntax error messages 2014-08-12 15:28:03 +04:00
Andrey Sitnik dfb6bede98 Add CssSyntaxError#reason 2014-08-11 15:43:15 +04:00
Andrey Sitnik f52e764e8a Add Node#replace 2014-08-11 15:40:40 +04:00
Andrey Sitnik 1bf5b44473 Fix UTF-8 support in inline maps 2014-08-08 02:41:37 +04:00
Andrey Sitnik 4bfe5c8f08 Better detect of rules splitter 2014-08-06 01:29:11 +04:00
Andrey Sitnik 867e866563 Autoclone node in insert methods 2014-08-06 01:01:41 +04:00
Andrey Sitnik ad5e64c7ae Allow to miss file name for inline maps 2014-08-06 00:53:21 +04:00
Andrey Sitnik dd5b227cda Add CSS example to syntax error 2014-07-26 20:22:43 +04:00
Andrey Sitnik d39a9f5645 Replace strict to safe mode 2014-07-16 10:28:20 +04:00
Andrey Sitnik b5ddfd4ba1 Fix code style 2014-07-13 15:34:56 +11:00
Andrey Sitnik 16d8d862b2 Use real Decl#important property instead of magic 2014-07-12 15:21:13 +11:00
Andrey Sitnik 5b3745b98c Fix unclosed value in non-strict mode 2014-07-12 15:10:34 +11:00
Andrey Sitnik a1f6f23edf Fix unclosed comment in non-strict mode 2014-07-12 14:55:53 +11:00
Andrey Sitnik 7240541bfa Fix proprty in unclosed block in non-strict mode 2014-07-12 14:45:25 +11:00
Andrey Sitnik 94a7f432b1 Close unclosed blocks in non-strict mode 2014-07-12 14:32:08 +11:00
Andrey Sitnik d1c4104e52 Throw missing property value in strict mode 2014-07-12 14:11:25 +11:00
Andrey Sitnik 0e3c0d7088 Clean raw properties magic to see property in inspect 2014-07-10 02:49:36 +11:00
Andrey Sitnik b01b41d949 Remove unnecessary Node.prop 2014-07-10 02:00:11 +11:00
Andrey Sitnik 0efb2dc97e Add Browserhacks to integration tests and fix parser for this hacks 2014-07-09 14:21:15 +11:00
Andrey Sitnik b516e5814d Clean up gulpfile.js 2014-07-08 20:54:12 +11:00
Andrey Sitnik 0b894e2044 Add JS lint and fix all warnings 2014-07-08 18:30:53 +11:00
Andrey Sitnik a4e8b61f0b Convert PreviousMap to ES6 2014-07-03 01:05:06 +09:00
Andrey Sitnik 7f39e71924 Fix comma 2014-07-03 01:05:06 +09:00
Andrey Sitnik 5a049010c1 Rewrite tests from CoffeeScript to ES6 2014-07-03 01:05:06 +09:00
Andrey Sitnik e06ad5cfde Allow to use ES6 code 2014-07-03 01:05:06 +09:00
Andrey Sitnik c0b8aa82fa Make Result object lazy 2014-06-21 09:55:52 +09:00
Andrey Sitnik 6f8a28bb67 Add test for PreviousMap#root 2014-06-20 04:24:50 +09:00
Simon Lydell 636235ee8f Fix relative paths from previous source maps
Before, all previous source maps were assumed to be located inside or
next its corresponding file. However, it could be saved in a different
directory. If so, all relative source paths in the previous source maps
must be rewritten according to _that_ directory.
2014-06-19 20:55:03 +02:00
Simon Lydell ca4594d7bc Fix: options.annotation should be relative to options.to
If `options.annotation` is set to a path, that string is inserted
after "sourceMappingURL=". That means that the path will be relative to
the output CSS file -- in other words, relative to `options.to`.
2014-06-19 15:55:01 +02:00
Andrey Sitnik 245daa7ab0 Fix relative paths if we use different path in annotation 2014-06-17 14:33:17 +09:00
Andrey Sitnik 9326383d25 Add map: "inline" shortcut 2014-06-16 18:06:48 +09:00
Andrey Sitnik a8add537ee Clean between style on declaration clone 2014-06-16 15:08:07 +09:00
Andrey Sitnik 30c09671ad Allow to use arrays in append methods 2014-06-16 15:02:41 +09:00
Andrey Sitnik 5de01fb483 Allow to set different path in annotation comment 2014-06-16 14:17:32 +09:00
Andrey Sitnik 9a6c042b61 Disable map autodetect if CSS has no annotation 2014-06-16 14:04:45 +09:00
Andrey Sitnik 3b7d731a8d Refactor map options 2014-06-16 14:02:00 +09:00
Andrey Sitnik 1acec39ae3 Rename .object() to .consumer() and .content to .withContent() in PreviousMap 2014-06-15 16:27:40 +09:00
Andrey Sitnik f7e61a5d1f Set sourcesContent to map 2014-06-15 16:24:38 +09:00
Andrey Sitnik 3dc49e64a1 Better PreviousMap#withSources test 2014-06-15 15:30:21 +09:00
Andrey Sitnik a4b4590b4e Add .withSources and .object() to PreviousMap and rename .map to .text 2014-06-15 15:26:16 +09:00
Andrey Sitnik 74600aa2a2 Add PreviousMap#source 2014-06-15 14:58:41 +09:00
Andrey Sitnik 406d2a603f Better errors on previous map reading 2014-06-15 14:56:29 +09:00
Andrey Sitnik acdf669b7d Use SourceMapGenerator for Result#map 2014-06-15 14:49:16 +09:00
Andrey Sitnik a78e3c09b6 Works with maps from several inputs 2014-06-14 08:39:14 +09:00
Andrey Sitnik b627ecdb48 Save absolute path to node.source.file 2014-06-13 13:50:30 +09:00
Andrey Sitnik cba5d85491 Allow to use Result or Root as proces argument 2014-05-30 13:34:55 +08:00
Andrey Sitnik e7c78187cb Save parsed AST to Result 2014-05-30 13:23:43 +08:00