support for shredding dart and yaml files.

This commit is contained in:
Jay Traband 2015-10-13 14:01:43 -07:00
parent a2fa48d0b4
commit b448e21c02
4 changed files with 43 additions and 1 deletions

View File

@ -75,7 +75,7 @@ function createShredPackage(shredOptions) {
readFilesProcessor.basePath = "/";
// Specify collections of source files that should contain the documentation to extract
var extns = ['*.js', '*.html', '*.ts', '*.css', '*.json' ];
var extns = ['*.js', '*.html', '*.ts', '*.css', '*.json', '*.dart', '*.yaml' ];
var includeFiles = extns.map(function(extn) {
if (options.includeSubdirs) {
return path.join(options.examplesDir, '**', extn);

View File

@ -11,6 +11,7 @@ module.exports = function fileShredder(log, regionExtractor) {
switch (fileInfo.extension) {
case 'ts':
case 'js':
case 'dart':
commentMarkers = ['//'];
break;
case 'html':
@ -21,6 +22,9 @@ module.exports = function fileShredder(log, regionExtractor) {
break;
case 'json':
break;
case 'yaml':
commentMarkers = ['#'];
break;
default:
return [];
}

View File

@ -0,0 +1,17 @@
library angular2.src.core.application_static;
// #docregion import
import 'dart:async';
import 'application_common.dart';
import 'package:angular2/src/core/linker/dynamic_component_loader.dart' show ComponentRef;
// #enddocregion import
/// Starts an application from a root component.
///
/// See [commonBootstrap] for detailed documentation.
Future<ComponentRef> bootstrapStatic(Type appComponentType,
[List componentInjectableBindings, void initReflector()]) {
if (initReflector != null) {
initReflector();
}
return commonBootstrap(appComponentType, componentInjectableBindings);
}

View File

@ -0,0 +1,21 @@
name: benchpress
version: <%= packageJson.version %>
authors:
<%= Object.keys(packageJson.contributors).map(function(name) {
return '- '+name+' <'+packageJson.contributors[name]+'>';
}).join('\n') %>
description: Benchpress - a framework for e2e performance tests
homepage: <%= packageJson.homepage %>
environment:
sdk: '>=1.10.0 <2.0.0'
# #docregion dependencies
dependencies:
angular2: '^<%= packageJson.version %>'
stack_trace: '^1.1.1'
webdriver: '^0.9.0'
dev_dependencies:
guinness: '^0.1.17'
dependency_overrides:
angular2:
path: ../angular2
# #enddocregion