chore: disable dart for HTTP package

BREAKING CHANGE

Stop supporting http module in Dart. This is because Dart has a
well developed http package which should be used by Dart
customers instead.
This commit is contained in:
Misko Hevery
2015-08-12 13:03:28 -07:00
parent 38945955ab
commit 284dc67076
15 changed files with 2137 additions and 1968 deletions

View File

@ -13,11 +13,23 @@ import ts2dart from '../broccoli-ts2dart';
import dartfmt from '../broccoli-dartfmt';
import replace from '../broccoli-replace';
var global_excludes = [
'rtts_assert/**/*',
'http/**/*',
'examples/src/http/**/*',
'examples/test/http/**/*',
'examples/src/jsonp/**/*',
'examples/test/jsonp/**/*'
];
/**
* A funnel starting at modules, including the given filters, and moving into the root.
* @param include Include glob filters.
*/
function modulesFunnel(include: string[], exclude?: string[]) {
exclude = exclude || [];
exclude = exclude.concat(global_excludes);
return new Funnel('modules', {include, destDir: '/', exclude});
}
@ -44,7 +56,7 @@ function stripModulePrefix(relativePath: string): string {
function getSourceTree() {
// Transpile everything in 'modules' except for rtts_assertions.
var tsInputTree = modulesFunnel(['**/*.js', '**/*.ts', '**/*.dart'], ['rtts_assert/**/*']);
var tsInputTree = modulesFunnel(['**/*.js', '**/*.ts', '**/*.dart']);
var transpiled = ts2dart(tsInputTree, {
generateLibraryName: true,
generateSourceMap: false,
@ -135,7 +147,7 @@ function getDocsTree() {
var licenses = new MultiCopy('', {
srcPath: 'LICENSE',
targetPatterns: ['modules/*'],
exclude: ['*/rtts_assert'], // Not in dart.
exclude: ['*/rtts_assert', '*/http', '*/upgrade'], // Not in dart.
});
licenses = stew.rename(licenses, stripModulePrefix);