use shared code transformer, update web_components to remove .map and .concat files
This is a redo of https://codereview.chromium.org/540633002/ because I had deleted my local branch and didn't know how to recover it.
Review URL: https://codereview.chromium.org//724723003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/web_components@41724 260f80e4-7a28-3924-810f-c04153c831b5
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 65aed82..dcd317f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,7 @@
-#### Pub version 0.9.0-dev
+#### Pub version 0.9.0+1
+ * Remove all `.map` and `.concat.js` files during release mode.
+
+#### Pub version 0.9.0
* Updated to platform version 0.4.2, internally a deprecated API was removed,
hence the bump in the version number.
diff --git a/pubspec.yaml b/pubspec.yaml
index 98b2d7f..4e6872b 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,5 +1,5 @@
name: web_components
-version: 0.9.0
+version: 0.9.0+1
author: Polymer.dart Authors <web-ui-dev@dartlang.org>
homepage: https://www.dartlang.org/polymer-dart/
description: >
@@ -11,3 +11,16 @@
bundle code and HTML as if they were libraries.
environment:
sdk: ">=1.4.0-dev.6.6 <2.0.0"
+dependencies:
+ code_transformers: ">=0.2.2 <0.3.0"
+transformers:
+# TODO(sigmund): once we have some easier way to do global app-level
+# transformers, we might want to remove this transformer here and only apply it
+# in apps that need it.
+- code_transformers/src/delete_file:
+ $include:
+ - lib/platform.concat.js
+ - lib/platform.concat.js.map
+ - lib/platform.js.map
+- code_transformers/src/remove_sourcemap_comment:
+ $include: lib/platform.js