Commit Graph

1108 Commits

Author SHA1 Message Date
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
Jen Thakar
125b64760b Add usage error for invalid use of --interactive 2018-05-07 23:54:25 -07:00
Jen Thakar
adf2b80eeb Update cli_repl version 2018-05-07 23:29:43 -07:00
Natalie Weizenbaum
454603d160
Run Appveyor against the Dart 2 SDK (#319) 2018-05-03 17:37:37 -07:00
Natalie Weizenbaum
9fb508e338
Split grind.dart up into separate libraries (#318) 2018-05-03 17:37:25 -07:00
Natalie Weizenbaum
2d72f1cdca
Add support for @elseif (#317)
Closes #316
2018-05-03 17:12:40 -07:00
Natalie Weizenbaum
d9d55f168e Release against the Dart dev version on Chocolatey
This is now consistently updated with the latest SDK version.

[skip ci]
2018-05-03 11:48:06 -07:00
Natalie Weizenbaum
5d5f231a86 Use a script file to deploy to Heroku
Embedding this in YAML kept producing weird parsing issues.

[skip ci]
2018-05-02 17:32:10 -07:00
Natalie Weizenbaum
b5fd1409ce
Fix relative imports through relative load paths in the Node API (#315)
Closes #314
2018-05-02 17:04:36 -07:00
Natalie Weizenbaum
ecbf1aebce
Add a RecursiveStatementVisitor (#313)
This will make it easier to write utilities that traverse the syntax
tree.
2018-05-02 11:29:47 -07:00
Natalie Weizenbaum
166dac67d4 Add line continuations to the Heroku deploy script
[skip ci]
2018-04-25 19:14:39 -07:00
Natalie Weizenbaum
dd639b2a78
Merge pull request #312 from sass/release
Release 1.3.0
2018-04-25 19:03:05 -07:00
Natalie Weizenbaum
c060f29ba9 Release 1.3.0 2018-04-25 18:11:55 -07:00
Natalie Weizenbaum
6beb1ae8ac
Merge pull request #310 from sass/source-map-vars
Track variable declarations for source maps
2018-04-25 18:11:10 -07:00
Natalie Weizenbaum
5bf7773590 Track variable declarations for source maps
Closes #2
2018-04-25 17:50:24 -07:00
Natalie Weizenbaum
326f0fd86a Remove the span argument from _EvaluateVisitor._evaluateArguments()
This was too broad; we should use the individual expressions' spans
instead.
2018-04-25 17:49:45 -07:00
Natalie Weizenbaum
6a117905ab
Fix a crash when printing warnings through the Node API (#311)
Closes #307
2018-04-25 17:47:29 -07:00
Natalie Weizenbaum
50b820aed3 Add CHANGELOG entries for source map CLI support
See #2

[skip ci]
2018-04-25 17:10:02 -07:00
Natalie Weizenbaum
a1f56d783d Add a CHANGELOG entry for mbullington/node_preamble.dart#6
This doesn't actually require any changes in Dart Sass itself, but it
was producing behavior that was visible to our users (#301) so it
makes sense to include it in the CHANGELOG for the version that will
include the fix.

[skip ci]
2018-04-25 17:06:37 -07:00
Natalie Weizenbaum
234aa12e08
Add CLI source map support (#309)
Partially addresses #2
2018-04-25 16:12:37 -07:00
Natalie Weizenbaum
8c4180685a
Merge pull request #306 from sass/cli-refactor
Improve CLI option handling
2018-04-25 15:15:59 -07:00
Natalie Weizenbaum
829dc038f9 Remove an unnecessary dependency on Node Sass
This wasn't supposed to be committed.
2018-04-25 13:55:54 -07:00
Natalie Weizenbaum
7c616ef987 Limit the combinatorial explosion of compile calls 2018-04-25 13:41:22 -07:00
Natalie Weizenbaum
19408d943b Refactor the way CLI options are handled
Exposing the options through a stateless object makes it easier to
separate out the procedure of compilation from the logic behind
parsing each option.
2018-04-25 13:41:22 -07:00
Natalie Weizenbaum
3082a77b01 Add sections to the CLI --help documentation 2018-04-24 14:12:56 -07:00
Natalie Weizenbaum
dc8d8a6166
Run Dart Sass in checked mode in tests (#304)
Also fix a checked mode error.
2018-04-23 21:20:38 -07:00
Natalie Weizenbaum
2c967f0070
Merge pull request #303 from sass/relative-import-from-relative-path
Fix a relative import bug in the JS API
2018-04-21 15:24:57 -07:00
Natalie Weizenbaum
7a882bd3be Fix a relative import bug in the JS API
Closes #284
2018-04-21 00:50:23 -07:00
Natalie Weizenbaum
11f38291f0 Clean up expectations in node_api_test 2018-04-21 00:49:51 -07:00
Natalie Weizenbaum
fd19bc85b6
Add a JavaScript API for source map generation (#302)
Partially addresses #2
2018-04-20 17:56:00 -07:00
Natalie Weizenbaum
9ea001598a
Add a Dart API for source map generation (#299)
Partially addresses #2
2018-04-19 16:51:20 -07:00
Natalie Weizenbaum
765607ea7c Fix Heroku deployment 2018-04-19 15:47:41 -07:00
Natalie Weizenbaum
b23993ea66
Always emit units for non-length/angle 0 values (#300)
Closes #297
2018-04-19 15:20:17 -07:00
Natalie Weizenbaum
2e3f125e7d
Broaden some dependency constraints (#298) 2018-04-19 14:43:31 -07:00
Natalie Weizenbaum
ff532f9710
Use Travis auth info to deploy to Homebrew (#296) 2018-04-17 15:44:29 -07:00
Jen Thakar
7c64f222e0 Merge branch 'master' of git://github.com/sass/dart-sass into interactive 2018-04-14 20:28:15 -07:00
Jen Thakar
b9d1317d90 Update cli_repl to support running on Node 2018-04-14 20:24:28 -07:00
Natalie Weizenbaum
6fd0f6d6e3
Improve the error message for extending compound selectors. (#294)
Closes #286
2018-04-14 16:02:53 -07:00
Jen Thakar
74d3693ec6 Upgrade cli_repl to fix bug on Windows/Dart 2 2018-04-14 13:57:00 -07:00
Jen Thakar
4bf44b820f
Remove unnecessary interpolation 2018-04-14 13:18:17 -07:00
Jen Thakar
d262e28603 Add interactive SassScript REPL 2018-04-14 11:40:04 -07:00
Jen Thakar
04fc1e46c8 Add support for evaluating individual expressions 2018-04-14 11:39:24 -07:00
Jen Thakar
9939b70ffb Add parser for Expression and VariableDeclaration 2018-04-14 11:34:36 -07:00
Natalie Weizenbaum
2e42c749a0
Properly parse #{$var} -#{$var} (#292)
Closes #290
2018-04-12 17:41:21 -07:00
Natalie Weizenbaum
26ca01cb92 Fix an outdated doc comment 2018-04-12 16:59:39 -07:00
Natalie Weizenbaum
a31251fdc9
Create a directory for CSS output if necessary (#291)
Closes #288
2018-04-12 16:40:53 -07:00
Natalie Weizenbaum
5cce76b6d4
Use constants from dart2_constants (#282) 2018-04-04 15:49:07 -07:00
Natalie Weizenbaum
5556dc7a0e
Merge pull request #269 from sass/unlock-dart
Use the latest Dart's mechanism for imports
2018-04-04 12:21:06 -07:00
Natalie Weizenbaum
a23b8299a9 Enable tests for the latest Dart 2018-04-04 11:36:25 -07:00