| 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/transform.dart'; |
| 10 import 'src/build/code_extractor.dart'; | 10 import 'src/build/code_extractor.dart'; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 entryPoints = [value]; | 47 entryPoints = [value]; |
| 48 error = false; | 48 error = false; |
| 49 } else { | 49 } else { |
| 50 error = true; | 50 error = true; |
| 51 } | 51 } |
| 52 | 52 |
| 53 if (error) { | 53 if (error) { |
| 54 print('Invalid value for "entry_points" in the polymer transformer.'); | 54 print('Invalid value for "entry_points" in the polymer transformer.'); |
| 55 } | 55 } |
| 56 } | 56 } |
| 57 return new TransformOptions(entryPoints); | 57 return new TransformOptions(entryPoints: entryPoints); |
| 58 } | 58 } |
| 59 | 59 |
| 60 List<List<Transformer>> _createDeployPhases(TransformOptions options) { | 60 List<List<Transformer>> _createDeployPhases(TransformOptions options) { |
| 61 return [ | 61 return [ |
| 62 [new InlineCodeExtractor(options)], | 62 [new InlineCodeExtractor(options)], |
| 63 [new ObservableTransformer()], | 63 [new ObservableTransformer()], |
| 64 [new ImportInliner(options)], | 64 [new ImportInliner(options)], |
| 65 [new ScriptCompactor(options)], | 65 [new ScriptCompactor(options)], |
| 66 [new PolyfillInjector(options)] | 66 [new PolyfillInjector(options)] |
| 67 ]; | 67 ]; |
| 68 } | 68 } |
| OLD | NEW |