OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 /** Transfomer used for pub-serve and pub-deploy. */ | 5 /** Transfomer used for pub-serve and pub-deploy. */ |
6 library polymer.transformer; | 6 library polymer.transformer; |
7 | 7 |
8 import 'package:barback/barback.dart'; | 8 import 'package:barback/barback.dart'; |
9 import 'package:observe/transform.dart'; | 9 import 'package:observe/transformer.dart'; |
10 import 'src/build/code_extractor.dart'; | 10 import 'src/build/code_extractor.dart'; |
11 import 'src/build/import_inliner.dart'; | 11 import 'src/build/import_inliner.dart'; |
12 import 'src/build/script_compactor.dart'; | 12 import 'src/build/script_compactor.dart'; |
13 import 'src/build/polyfill_injector.dart'; | 13 import 'src/build/polyfill_injector.dart'; |
14 import 'src/build/common.dart'; | 14 import 'src/build/common.dart'; |
15 | 15 |
16 /** | 16 /** |
17 * The Polymer transformer, which internally runs several phases that will: | 17 * The Polymer transformer, which internally runs several phases that will: |
18 * * Extract inlined script tags into their separate files | 18 * * Extract inlined script tags into their separate files |
19 * * Apply the observable transformer on every Dart script. | 19 * * Apply the observable transformer on every Dart script. |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 66 |
67 List<List<Transformer>> _createDeployPhases(TransformOptions options) { | 67 List<List<Transformer>> _createDeployPhases(TransformOptions options) { |
68 return [ | 68 return [ |
69 [new InlineCodeExtractor(options)], | 69 [new InlineCodeExtractor(options)], |
70 [new ObservableTransformer()], | 70 [new ObservableTransformer()], |
71 [new ImportInliner(options)], | 71 [new ImportInliner(options)], |
72 [new ScriptCompactor(options)], | 72 [new ScriptCompactor(options)], |
73 [new PolyfillInjector(options)] | 73 [new PolyfillInjector(options)] |
74 ]; | 74 ]; |
75 } | 75 } |
OLD | NEW |