Commit Graph

1182 Commits

Author SHA1 Message Date
Natalie Weizenbaum
0cb2bfa0a5 Debounce filesystem events on Node 2018-06-13 16:41:29 -07:00
Natalie Weizenbaum
b28380f8cd Don't try to recompile removed files 2018-06-13 16:41:29 -07:00
Natalie Weizenbaum
e05e9c7f91 Stop using Set.of() 2018-06-13 16:41:29 -07:00
Natalie Weizenbaum
5efa7bf48a Normalize path separators in watch test expectations 2018-06-13 16:41:29 -07:00
Natalie Weizenbaum
0836afdc97 Avoid Future<void> because it's not Dart 1-compatible 2018-06-13 15:12:18 -07:00
Natalie Weizenbaum
1942466924 Code review changes 2018-06-13 15:12:18 -07:00
Natalie Weizenbaum
1ddc7c0e3e Copy the implementation of PathMap
This allows us to continue supporting Dart 1. The version of path that
added PathMap only supports Dart 2, so we can't depend on it until we
support Dart 2 as well.
2018-06-13 12:14:21 -07:00
Natalie Weizenbaum
6bbb961675 Add a --watch command
Partially addresses #264
2018-06-09 14:13:36 -04:00
Natalie Weizenbaum
a2c0f15d67 Make ExecutableOptions.sourcesToDestinations a PathMap 2018-06-09 14:09:20 -04:00
Natalie Weizenbaum
3362273c29 Disallow --update and --watch with --interactive 2018-06-09 14:09:20 -04:00
Natalie Weizenbaum
caef625899 Move compileStylesheet to its own file 2018-06-09 14:09:20 -04:00
Natalie Weizenbaum
e6c821e719 Add modification methods to StylesheetGraph 2018-06-08 21:48:39 -04:00
Natalie Weizenbaum
edc42a5075
Merge pull request #349 from sass/update-fix
Fix some --update bugs
2018-06-08 21:47:12 -04:00
Natalie Weizenbaum
d5f112d55e Work around dart-lang/sdk#33400 2018-06-08 21:28:36 -04:00
Natalie Weizenbaum
f5e9dcb688
Expand dependencies on archive and analyzer (#351) 2018-06-08 21:14:00 -04:00
Natalie Weizenbaum
594f936c54 Fix an edge-case bug
If a non-partial stylesheet is next to a partial with the same name,
canonicalizing the source URL would fail. We don't really need to
canonicalize that URL anyway, though, since it's only used for import
loops and such a loop will reload and rerun the entrypoint anyway.
2018-06-08 20:28:38 -04:00
Natalie Weizenbaum
0a21fb7063 Make sure --update surfaces failures properly 2018-06-08 20:28:38 -04:00
Natalie Weizenbaum
b7dbdf1332 Track the original import URLs in StylesheetNode.upstream
This makes it possible to tell which stylesheets have unsatisfied
imports, and will eventually make it easier to figure out which
imports need to be recomputed when a file is added or removed.
2018-06-08 20:28:38 -04:00
Natalie Weizenbaum
b9e1585cf6
Add a helper function for update tests (#348) 2018-06-07 09:54:18 -04:00
Natalie Weizenbaum
a319b84e6f
Merge pull request #347 from sass/travis
Travis infrastructure improvements
2018-06-06 14:14:26 -04:00
Natalie Weizenbaum
ef25638dd9 Set the author and committer name for Homebrew commits 2018-06-05 16:14:03 -04:00
Natalie Weizenbaum
9260e4ba4c Deploy to each platform as a separate job
This ensures that each deployment is independent of all the
others (except Heroku, which we only want to update once *everything*
succeeds).
2018-06-05 16:14:03 -04:00
Natalie Weizenbaum
c8caf7e12d Make Travis tests their own script 2018-06-05 16:14:03 -04:00
Natalie Weizenbaum
eebde6d81c Move Travis-specific scripts into tool/travis 2018-06-05 15:44:22 -04:00
Natalie Weizenbaum
446708f60c Remove obsolete credentials files 2018-06-05 15:43:44 -04:00
Natalie Weizenbaum
e2266ded68
Produce better errors when expected tokens are missing (#344) 2018-06-01 20:56:12 -04:00
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