Commit Graph

1006 Commits

Author SHA1 Message Date
Natalie Weizenbaum
224dc91792
Forbid empty custom properties (#343) 2018-05-31 20:39:33 -04:00
Natalie Weizenbaum
c26903e30e
Don't consider drive separators to be path-separating colons (#342)
Closes #340
2018-05-31 20:38:45 -04:00
Natalie Weizenbaum
a4b076560c
Merge pull request #341 from sass/dart-1
Re-add support for Dart 1
2018-05-31 14:54:23 -04:00
Natalie Weizenbaum
0a9a503ae0 Further clarify importer docs
[skip ci]
2018-05-31 14:38:40 -04:00
Natalie Weizenbaum
94c0968b53 Remove an additional Dart 2-ism 2018-05-31 14:37:21 -04:00
Natalie Weizenbaum
0fb5d25ee2 Revert "Merge pull request #320 from sass/remove-path-workaround"
This reverts commit 08bfb46f16, reversing
changes made to ad73a91f84.
2018-05-31 14:37:21 -04:00
Natalie Weizenbaum
942d1e4099
Error out on ambiguous imports (#339)
Closes #335
2018-05-30 21:03:23 -04:00
Natalie Weizenbaum
c854e341fe Make the current pubspec a dev version
[skip ci]
2018-05-30 19:27:53 -04:00
Natalie Weizenbaum
2f2ba2d506
Merge pull request #295 from jathak/interactive
Add interactive mode
2018-05-30 19:15:59 -04:00
Natalie Weizenbaum
920a79b408 Pubspec and changelog
[skip ci]
2018-05-30 19:15:06 -04:00
Natalie Weizenbaum
8435be5f4b Style tweaks 2018-05-30 18:59:49 -04:00
Natalie Weizenbaum
1d7b0aa5ad Merge branch 'master' into jathak-interactive 2018-05-30 18:41:15 -04:00
Natalie Weizenbaum
8e97e66426 Remove unused test/cli_shared.dart
[skip ci]
2018-05-30 18:37:55 -04:00
Natalie Weizenbaum
5f944c9c7e Move _StderrLogger to logger/stderr.dart 2018-05-30 18:36:42 -04:00
Natalie Weizenbaum
32d0525157 merge ^^ 2018-05-30 18:36:42 -04:00
Natalie Weizenbaum
0c637b2e6a
Split CLI tests into multiple suites (#337) 2018-05-30 18:35:35 -04:00
Natalie Weizenbaum
3ac3adab13 Move executable_options.dart to executable/options.dart 2018-05-30 18:03:11 -04:00
Natalie Weizenbaum
d4655f22bd
Fix an Importer-calling bug (#338)
We were resolving URLs relative to the canonical URL rather than the
original URL, which broke importers for which those were different,
like the package importer.

Closes #334
2018-05-30 17:47:37 -04:00
Jen Thakar
930f361026 Merge branch 'master' of git://github.com/sass/dart-sass into interactive 2018-05-29 21:33:53 -07:00
Jen Thakar
da44841498 Add TrackingLogger and uses it in --interactive
If a warning or debug message is emitted, and then the line errors,
a simpler error message is output instead of highlighting the bad
input in the original line.
2018-05-29 21:27:36 -07:00
Natalie Weizenbaum
fba35fe0da
Merge pull request #332 from sass/update
Add an --update flag
2018-05-28 17:44:19 -04:00
Natalie Weizenbaum
ac8c01a595 Add an --update flag
Partially addresses #264
2018-05-28 16:58:09 -04:00
Natalie Weizenbaum
17d3c1ae63 Add Importer.modificationTime() 2018-05-28 16:57:56 -04:00
Natalie Weizenbaum
08bfb46f16
Merge pull request #320 from sass/remove-path-workaround
Remove the workaround for dart-lang/sdk#30098
2018-05-28 16:55:19 -04:00
Natalie Weizenbaum
56d9551a33 Stop testing against Dart's stable channel
Once Dart 2 stable is released, we'll resume testing against stable
releases.
2018-05-28 15:25:09 -04:00
Natalie Weizenbaum
31c77fb1cc Remove the workaround for dart-lang/sdk#30098 2018-05-28 15:23:47 -04:00
Jen Thakar
eb71e2d5a7 Fix logging and invalid options for --interactive
--interactive now uses the ExecutableOptions' logger, so it respects
the --quiet option.

An invalid option used with --interactive will now be output.
2018-05-26 22:49:13 -07:00
Jen Thakar
027392ac30 Add variables argument to _EvaluateVisitor 2018-05-26 22:30:34 -07:00
Jen Thakar
6351458f35 Merge branch 'master' of git://github.com/sass/dart-sass into interactive 2018-05-26 21:49:48 -07:00
Jen Thakar
590b2a02c5 Fix bugs in interactive mode
The REPL no longer crashes when syntax errors point after the end of
the input; it also ignores empty lines.
2018-05-26 21:37:18 -07:00
Natalie Weizenbaum
ad73a91f84
Match Node Sass's logic around source map file names (#333)
When sourceMap is a string and outFile is null, Node Sass determines
the source map filename from the input filename.
2018-05-24 19:16:14 -04:00
Natalie Weizenbaum
8007892075
Improve handling of invalid semicolons in the indented syntax (#330)
This improves the error message and fixes a bug where semicolons were
allowed after declarations.
2018-05-24 19:15:56 -04:00
Natalie Weizenbaum
7c26959156
Node API: generate a source map even when outFile isn't set (#331)
Contrary to documentation, Node Sass generates a source map when
outFile is unset as long as sourceMap is a string.
2018-05-24 18:42:16 -04:00
Natalie Weizenbaum
cd47c06905
Merge pull request #326 from sass/import-cache
Cache imports across compilations in the executable
2018-05-24 17:49:46 -04:00
Natalie Weizenbaum
a7118824b5 Fix source map path canonicalization
We need to canonicalize rather than normalize to ensure a consistent
output.
2018-05-24 17:21:19 -04:00
Natalie Weizenbaum
8e1d80c479
Test against live LTS releases for Node (#329) 2018-05-24 16:03:12 -04:00
Natalie Weizenbaum
c2987d4cf2 Cache imports across compilations in the executable 2018-05-24 14:31:07 -04:00
Natalie Weizenbaum
5b9765c833 Add an ImportCache
This will allow cached imports to be shared outside of the context of
a single stylesheet compilation.
2018-05-24 14:31:07 -04:00
Natalie Weizenbaum
6ef2631c9a
Merge pull request #327 from sass/fix-source-map-tests
Normalize source map paths before converting to URLs
2018-05-24 14:23:47 -04:00
Natalie Weizenbaum
5afe2a98e3 Pin the stable Node version to 10.1.0
This works around laverdet/node-fibers#378.
2018-05-24 13:15:43 -04:00
Natalie Weizenbaum
d17b3e73fe Normalize source map paths before converting to URLs
This ensures that source map URLs are always consistent on Windows,
where the case may be different from run to run.
2018-05-24 12:21:28 -04:00
Nicholas Shahan
45073b08e1 Add details to documentation for implementing an importer (#325) 2018-05-22 23:07:08 +01:00
Natalie Weizenbaum
d68acf9ac2
Support compiling entire directories at once (#324)
Partially addresses #264
2018-05-22 23:06:33 +01:00
Natalie Weizenbaum
0c9e3683c6
Merge pull request #323 from sass/cli-colons
Support input:output syntax for compiling multiple files at once
2018-05-21 14:11:36 +01:00
Natalie Weizenbaum
1450c241c6 Support input:output syntax for compiling multiple files at once
Partially addresses #264
2018-05-20 20:57:33 +01:00
Natalie Weizenbaum
beff4a1011 Add infrastructure for compiling multiple sources at once
This will allow us to use the same code path for --update as we do for
normal compilation.
2018-05-20 19:44:09 +01:00
Jen Thakar
6d86b5fbdf Merge branch 'master' of git://github.com/sass/dart-sass into interactive 2018-05-08 10:23:33 -07:00
Jen Thakar
49198f55ed Add proper error logging to --interactive
Errors are now logged w/o the Sass stack trace and with arrows
pointing to the piece of the input that caused the error.

The bad input will also be highlighted in red if color is enabled.

Adds tests for error logging, both with and without color.
2018-05-08 09:54:35 -07:00
Jen Thakar
87c01bc503 Fix signature of expression evaluator.
evaluateExpression and evaluateExpressionAsync now take in a map
of variables instead of an environment. They also take in a logger
and an iterable of functions (like evaluate and evaluateAsync).
2018-05-08 00:21:25 -07:00
Jen Thakar
3f0fd9b180 Inline _runLine 2018-05-08 00:11:38 -07:00