support for shredding dart and yaml files.
This commit is contained in:
parent
a2fa48d0b4
commit
b448e21c02
|
@ -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);
|
||||
|
|
|
@ -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 [];
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
|
@ -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
|
Loading…
Reference in New Issue