Rename doc-shredder/test to doc-shredder/_test to avoid harp compile issues
# Conflicts: # public/doc-shredder/_test/.gitignore # public/doc-shredder/_test/test_source/app.js # public/doc-shredder/_test/test_source/app.ts # public/doc-shredder/_test/test_source/app2.ts # public/doc-shredder/_test/test_source/do-not-read.js # public/doc-shredder/_test/test_source/first.html # public/doc-shredder/_test/test_source/gettingstarted/js/index.html # public/doc-shredder/_test/test_source/gettingstarted/js/main.js # public/doc-shredder/_test/test_source/gettingstarted/protractor-spec.js # public/doc-shredder/_test/test_source/gettingstarted/ts/index.html # public/doc-shredder/_test/test_source/gettingstarted/ts/main.js # public/doc-shredder/_test/test_source/gettingstarted/ts/main.js.map # public/doc-shredder/_test/test_source/gettingstarted/ts/main.ts # public/doc-shredder/_test/test_source/sub1/foo/script.js # public/doc-shredder/_test/test_source/sub1/script.2.js # public/doc-shredder/_test/test_source/sub1/script.js # public/doc-shredder/_test/test_source/sub1/script.ts # public/doc-shredder/_test/test_source/sub1/second.html # public/doc-shredder/test/test_source/app.ts # public/doc-shredder/test/test_source/app2.ts # public/doc-shredder/test/test_source/do-not-read.js # public/doc-shredder/test/test_source/gettingstarted/js/index.html # public/doc-shredder/test/test_source/gettingstarted/js/main.js # public/doc-shredder/test/test_source/gettingstarted/protractor-spec.js # public/doc-shredder/test/test_source/gettingstarted/ts/index.html # public/doc-shredder/test/test_source/gettingstarted/ts/main.js # public/doc-shredder/test/test_source/gettingstarted/ts/main.js.map # public/doc-shredder/test/test_source/gettingstarted/ts/main.ts # public/doc-shredder/test/test_source/sub1/foo/script.js # tools/doc-shredder/_test/test_source/no-multiregion/app.ts # tools/doc-shredder/_test/test_source/no-multiregion/app2.ts # tools/doc-shredder/_test/test_source/no-multiregion/do-not-read.js # tools/doc-shredder/_test/test_source/no-multiregion/gettingstarted/js/index.html # tools/doc-shredder/_test/test_source/no-multiregion/gettingstarted/js/main.js # tools/doc-shredder/_test/test_source/no-multiregion/gettingstarted/protractor-spec.js # tools/doc-shredder/_test/test_source/no-multiregion/gettingstarted/ts/index.html # tools/doc-shredder/_test/test_source/no-multiregion/gettingstarted/ts/main.js # tools/doc-shredder/_test/test_source/no-multiregion/gettingstarted/ts/main.js.map # tools/doc-shredder/_test/test_source/no-multiregion/gettingstarted/ts/main.ts # tools/doc-shredder/_test/test_source/no-multiregion/nestedFolder/script.js
This commit is contained in:
parent
4bc13ad1a6
commit
025a45cd06
|
@ -12,7 +12,7 @@ env:
|
||||||
- CHROME_BIN=chromium-browser
|
- CHROME_BIN=chromium-browser
|
||||||
- LATEST_RELEASE=4.0.0
|
- LATEST_RELEASE=4.0.0
|
||||||
# Temporarily disabled until there is a new release branch for 4.0.0
|
# Temporarily disabled until there is a new release branch for 4.0.0
|
||||||
# - LATEST_RELEASE_BRANCH=2.4.x
|
# - LATEST_RELEASE_BRANCH=2.4.xk
|
||||||
- TASK_FLAGS="--dgeni-log=warn"
|
- TASK_FLAGS="--dgeni-log=warn"
|
||||||
matrix:
|
matrix:
|
||||||
# current angular release jobs
|
# current angular release jobs
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
lib-cov
|
||||||
|
*.seed
|
||||||
|
*.log
|
||||||
|
*.csv
|
||||||
|
*.dat
|
||||||
|
*.out
|
||||||
|
*.pid
|
||||||
|
*.gz
|
||||||
|
test_fragments
|
||||||
|
|
||||||
|
pids
|
||||||
|
logs
|
||||||
|
results
|
||||||
|
|
||||||
|
npm-debug.log
|
||||||
|
node_modules
|
||||||
|
|
||||||
|
build
|
|
@ -0,0 +1,24 @@
|
||||||
|
// #docregion all
|
||||||
|
// #docregion log ... everything else ignored.
|
||||||
|
/**
|
||||||
|
* @description This function logs a string.
|
||||||
|
*/
|
||||||
|
function log() {
|
||||||
|
console.log('Logging.');
|
||||||
|
}
|
||||||
|
// #enddocregion
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description My application
|
||||||
|
*/
|
||||||
|
var myApp = {
|
||||||
|
// #docregion greet
|
||||||
|
/**
|
||||||
|
* @description Display a greeting
|
||||||
|
* @param {string} name The name of the person to greet
|
||||||
|
*/
|
||||||
|
greet: function(name) {
|
||||||
|
console.log('hello ' + name);
|
||||||
|
}
|
||||||
|
// #enddocregion
|
||||||
|
};
|
|
@ -0,0 +1,22 @@
|
||||||
|
// #docregion
|
||||||
|
// #docregion import
|
||||||
|
import {Component, View, bootstrap} from 'angular2/angular2';
|
||||||
|
// #enddocregion
|
||||||
|
|
||||||
|
// #docregion class-w-annotations
|
||||||
|
@Component({
|
||||||
|
selector: 'my-app'
|
||||||
|
})
|
||||||
|
@View({
|
||||||
|
template: '<h1 id="output">My First Angular 2 App</h1>'
|
||||||
|
})
|
||||||
|
// #docregion class
|
||||||
|
class AppComponent {
|
||||||
|
}
|
||||||
|
// #enddocregion
|
||||||
|
// #enddocregion
|
||||||
|
|
||||||
|
// #docregion bootstrap
|
||||||
|
bootstrap(AppComponent);
|
||||||
|
// #enddocregion
|
||||||
|
// #enddocregion
|
|
@ -0,0 +1,22 @@
|
||||||
|
// #docregion
|
||||||
|
// #docregion import
|
||||||
|
import {Component, View, bootstrap} from 'angular2/angular2';
|
||||||
|
// #enddocregion
|
||||||
|
|
||||||
|
//#docregion class-w-annotations
|
||||||
|
@Component({
|
||||||
|
selector: 'my-app'
|
||||||
|
})
|
||||||
|
@View({
|
||||||
|
template: '<h1 id="output">Hello, Angular 2!</h1>'
|
||||||
|
})
|
||||||
|
//#docregion class
|
||||||
|
class MyAppComponent {
|
||||||
|
}
|
||||||
|
//#enddocregion
|
||||||
|
//#enddocregion
|
||||||
|
|
||||||
|
//#docregion bootstrap
|
||||||
|
bootstrap(MyAppComponent);
|
||||||
|
//#enddocregion
|
||||||
|
//#enddocregion
|
|
@ -0,0 +1,5 @@
|
||||||
|
/**
|
||||||
|
* @description
|
||||||
|
* This file should not have documents read from it.
|
||||||
|
*
|
||||||
|
*/
|
|
@ -0,0 +1,17 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<!-- #docregion script -->
|
||||||
|
<script src="https://code.angularjs.org/2.0.0-alpha.26/angular2.sfx.dev.js"></script>
|
||||||
|
<script src="main.js"></script>
|
||||||
|
<!-- #enddocregion -->
|
||||||
|
</head>
|
||||||
|
<!-- #docregion app -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<my-app></my-app>
|
||||||
|
</body>
|
||||||
|
<!-- #enddocregion -->
|
||||||
|
</html>
|
|
@ -0,0 +1,11 @@
|
||||||
|
<!-- #docregion -->
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<script src="https://code.angularjs.org/2.0.0-alpha.26/angular2.sfx.dev.js"></script>
|
||||||
|
<script src="main.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<my-app></my-app>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,17 @@
|
||||||
|
// #docregion
|
||||||
|
function AppComponent() {}
|
||||||
|
|
||||||
|
AppComponent.annotations = [
|
||||||
|
new angular.ComponentAnnotation({
|
||||||
|
selector: 'my-app'
|
||||||
|
}),
|
||||||
|
new angular.ViewAnnotation({
|
||||||
|
template: '<h1 id="output">My first Angular 2 App</h1>'
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
// #docregion bootstrap
|
||||||
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
|
angular.bootstrap(AppComponent);
|
||||||
|
});
|
||||||
|
// #enddocregion
|
|
@ -0,0 +1,20 @@
|
||||||
|
// protractor-spec.js
|
||||||
|
describe('Protractor quick start test', function() {
|
||||||
|
|
||||||
|
// #docregion javascript
|
||||||
|
it('should display Alice with JavaScript', function() {
|
||||||
|
browser.get('gettingstarted/js/index.html');
|
||||||
|
});
|
||||||
|
// #enddocregion
|
||||||
|
|
||||||
|
// #docregion typescript
|
||||||
|
it('should display Alice with TypeScrip', function() {
|
||||||
|
browser.get('gettingstarted/ts/index.html');
|
||||||
|
});
|
||||||
|
// #enddocregion
|
||||||
|
|
||||||
|
afterEach(function() {
|
||||||
|
expect(element(by.id('output')).getText()).toEqual('My first Angular 2 App');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
<!-- #docregion -->
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<script src="https://github.jspm.io/jmcriffey/bower-traceur-runtime@0.0.87/traceur-runtime.js"></script>
|
||||||
|
<script src="https://jspm.io/system@0.16.js"></script>
|
||||||
|
<script src="https://code.angularjs.org/2.0.0-alpha.26/angular2.dev.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<my-app></my-app>
|
||||||
|
<script>
|
||||||
|
System.import('main');
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,33 @@
|
||||||
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||||
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc);
|
||||||
|
switch (arguments.length) {
|
||||||
|
case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target);
|
||||||
|
case 3: return decorators.reduceRight(function(o, d) { return (d && d(target, key)), void 0; }, void 0);
|
||||||
|
case 4: return decorators.reduceRight(function(o, d) { return (d && d(target, key, o)) || o; }, desc);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||||
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||||
|
};
|
||||||
|
// #docregion
|
||||||
|
// #docregion import
|
||||||
|
var angular2_1 = require('angular2/angular2');
|
||||||
|
// #enddocregion
|
||||||
|
var AppComponent = (function () {
|
||||||
|
function AppComponent() {
|
||||||
|
}
|
||||||
|
AppComponent = __decorate([
|
||||||
|
angular2_1.Component({
|
||||||
|
selector: 'my-app'
|
||||||
|
}),
|
||||||
|
angular2_1.View({
|
||||||
|
template: '<h1 id="output">My first Angular 2 App</h1>'
|
||||||
|
}),
|
||||||
|
__metadata('design:paramtypes', [])
|
||||||
|
], AppComponent);
|
||||||
|
return AppComponent;
|
||||||
|
})();
|
||||||
|
// #docregion bootstrap
|
||||||
|
angular2_1.bootstrap(AppComponent);
|
||||||
|
// #enddocregion
|
||||||
|
//# sourceMappingURL=main.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"main.js","sourceRoot":"","sources":["main.ts"],"names":["AppComponent","AppComponent.constructor"],"mappings":";;;;;;;;;;;AAEA,AAFA,UAAU;AACV,iBAAiB;AACjB,yBAAyC,mBAAmB,CAAC,CAAA;AAG7D,AAFA,aAAa;;IAEbA;IAOAC,CAACA;IAPDD;QAACA,oBAASA,CAACA;YACTA,QAAQA,EAAEA,QAAQA;SACnBA,CAACA;QACDA,eAAIA,CAACA;YACJA,QAAQA,EAAEA,6CAA6CA;SACxDA,CAACA;;qBAEDA;IAADA,mBAACA;AAADA,CAACA,AAPD,IAOC;AAGD,AADA,oBAAoB;AACpB,oBAAS,CAAC,YAAY,CAAC,CAAC;AACxB,aAAa"}
|
|
@ -0,0 +1,16 @@
|
||||||
|
// #docregion
|
||||||
|
// #docregion import
|
||||||
|
import {Component, View, bootstrap} from 'angular2/angular2';
|
||||||
|
// #enddocregion
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'my-app'
|
||||||
|
})
|
||||||
|
@View({
|
||||||
|
template: '<h1 id="output">My first Angular 2 App</h1>'
|
||||||
|
})
|
||||||
|
class AppComponent {
|
||||||
|
}
|
||||||
|
// #docregion bootstrap
|
||||||
|
bootstrap(AppComponent);
|
||||||
|
// #enddocregion
|
|
@ -0,0 +1,11 @@
|
||||||
|
// #docregion
|
||||||
|
/**
|
||||||
|
* @description This function returns a string.
|
||||||
|
*
|
||||||
|
* @returns {string} This string has the value 'Hello World'.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
function helloWorld() {
|
||||||
|
return 'Hello World';
|
||||||
|
}
|
|
@ -0,0 +1,9 @@
|
||||||
|
// #docregion
|
||||||
|
/**
|
||||||
|
* @description This function returns a string.
|
||||||
|
*
|
||||||
|
* @returns {string} This string has the value 'Hello World'.
|
||||||
|
*/
|
||||||
|
function helloWorld() {
|
||||||
|
return 'Hello World';
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
// #docregion
|
||||||
|
/**
|
||||||
|
* @description This function returns a string.
|
||||||
|
*
|
||||||
|
* @returns {string} This string has the value 'Hello World'.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
function helloWorld() {
|
||||||
|
return 'Hello World';
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
// #docregion
|
||||||
|
/**
|
||||||
|
* @description This function returns a string.
|
||||||
|
*
|
||||||
|
* @returns {string} This string has the value 'Hello World'.
|
||||||
|
*/
|
||||||
|
// #docregion code2
|
||||||
|
function helloWorld() {
|
||||||
|
return 'Hello World';
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
<!-- #docregion -->
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<!-- #docregion main -->
|
||||||
|
<script src="https://github.jspm.io/jmcriffey/bower-traceur-runtime@0.0.87/traceur-runtime.js"></script>
|
||||||
|
<script src="https://jspm.io/system@0.16.js"></script>
|
||||||
|
<script src="https://code.angularjs.org/2.0.0-alpha.26/angular2.dev.js"></script>
|
||||||
|
<!-- #enddocregion -->
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<my-app></my-app>
|
||||||
|
<script>
|
||||||
|
System.import('main');
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in New Issue