Index: CHANGELOG.md |
diff --git a/CHANGELOG.md b/CHANGELOG.md |
index 7b8a311652b5465c17645a4d3e494473a5258dd9..9ad2f0266c0cc1b41cd058d7abedf9b87e05fc46 100644 |
--- a/CHANGELOG.md |
+++ b/CHANGELOG.md |
@@ -76,6 +76,50 @@ entirely to allow inference to fill in the type. |
### Tool Changes |
* Pub |
+ * Added support for the Dart Development Compiler in `build` and `serve`. |
+ |
+ Unlike dart2js, this new compiler is modular, which allows pub to do |
+ incremental re-builds for `pub serve`, and potentially `pub build` in the |
+ future. |
+ |
+ In practice what that means is you can edit your Dart files, refresh in |
+ chrome (or other supported browsers), and see your edits almost |
nweiz
2017/05/26 22:30:09
Nit: "Chrome" (also below)
jakemac
2017/05/27 00:00:09
Done.
|
+ immediately. This is because pub is only recompiling your package, not all |
+ packages that you depend on. |
+ |
+ There is one caveat with the new compiler, which is that your package and |
+ your dependencies must all be strong mode clean. If you are getting an |
+ error compiling one of your dependencies, you will need to file bugs or |
+ send pull requests to get them strong mode clean. |
+ |
+ There are two ways of opting into the new compiler: |
+ |
+ * Use the new `--web-compiler` flag, which supports `dartdevc`, |
+ `dart2js` or `none` as options. This is the easiest way to try things |
nweiz
2017/05/26 22:30:10
What does "none" do?
jakemac
2017/05/27 00:00:09
It is equivalent to --no-dart2js (no js compilatio
|
+ out without changing the default. |
+ |
+ * Add config to your pubspec. There is a new `web` key which supports a |
+ single key called `compiler`. This is a map of string to string, where |
nweiz
2017/05/26 22:30:09
"of string to string..." -> "from mode names to th
jakemac
2017/05/27 00:00:10
Done.
|
+ the keys are modes and the values are the compiler to use in that |
+ mode. For example, to default to dartdevc in debug mode you can add |
+ the following to your pubspec: |
+ |
+ ```yaml |
+ web: |
+ compiler: |
+ debug: dartdevc |
+ ``` |
+ |
+ You can also use the new compiler to run your tests in chrome much more |
+ quickly than you can with dart2js. In order to do that, run pub serve on |
+ your test directory `pub serve test --web-compiler=dartdevc`, and then run |
nweiz
2017/05/26 22:30:09
-"pub serve on your test directory"
jakemac
2017/05/27 00:00:09
Done.
|
+ `pub run test -p chrome --pub-serve=8080`. |
+ |
+ * Added support for the UNLICENSE file when validating licenses on |
+ `pub lish`. |
+ * Better handling for network errors when fetching packages. These are no |
+ longer unhandled errors and won't print a stack trace unless you are |
+ running in verbose mode. |
* `pub build` will use a failing exit code if there are errors in any |
transformer. |
* Allow publishing packages that depend on the Flutter SDK. |