From 2ef750d8cfcd2959fe16e263010be584481cb387 Mon Sep 17 00:00:00 2001 From: YuCheng Hu Date: Mon, 5 Apr 2021 09:42:38 -0400 Subject: [PATCH] shred and watch build tooling ( dgeni, gulp, jade) # Conflicts: # gulpfile.js # package.json --- .travis.yml | 2 +- public/docs/_examples/quickstart/app.js | 34 +++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 public/docs/_examples/quickstart/app.js diff --git a/.travis.yml b/.travis.yml index edba3b37d8..58c8acfb7e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,7 @@ dist: trusty sudo: required language: node_js node_js: - - "6" + - 12.14.1 os: - linux env: diff --git a/public/docs/_examples/quickstart/app.js b/public/docs/_examples/quickstart/app.js new file mode 100644 index 0000000000..f834abcd0d --- /dev/null +++ b/public/docs/_examples/quickstart/app.js @@ -0,0 +1,34 @@ +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 MyAppComponent = (function () { + function MyAppComponent() { + this.name = 'Alice'; + } + MyAppComponent = __decorate([ + angular2_1.Component({ + selector: 'my-app' + }), + angular2_1.View({ + template: '

Hello {{ name }}

' + }), + __metadata('design:paramtypes', []) + ], MyAppComponent); + return MyAppComponent; +})(); +// #docregion bootstrap +angular2_1.bootstrap(MyAppComponent); +// #enddocregion +//# sourceMappingURL=app.js.map