-
Notifications
You must be signed in to change notification settings - Fork 27.2k
chore: track size of a "Hello world" app built with SystemJS #6621
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <!doctype html> | ||
| <html> | ||
| <title>Angular 2.0 Hello World payload test</title> | ||
| <body> | ||
| <hello-app> | ||
| Loading... | ||
| </hello-app> | ||
| <script src="app-bundle-deps.min.js"></script> | ||
| </body> | ||
| </html> | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| import {Component} from 'angular2/core'; | ||
| import {bootstrap} from 'angular2/platform/browser'; | ||
|
|
||
| @Component({ | ||
| selector: 'hello-app', | ||
| template: ` | ||
| <h1>Hello, {{name}}!</h1> | ||
| <label> Say hello to: <input [value]="name" (input)="name = $event.target.value"></label> | ||
| ` | ||
| }) | ||
| class HelloCmp { | ||
| name = 'World'; | ||
| } | ||
|
|
||
| bootstrap(HelloCmp); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -227,7 +227,7 @@ module.exports = function makeBrowserTree(options, destinationPath) { | |
| destDir: '/' | ||
| }); | ||
|
|
||
| if (modules.benchmarks || modules.benchmarks_external || modules.playground) { | ||
| if (modules.playground) { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this right? don't we need to replace stuff in the html files of the benchmarks?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe so, I've just cleaned-up leftovers. Now benchmarks got their own if statements below. |
||
| htmlTree = replace(htmlTree, { | ||
| files: ['playground*/**/*.html'], | ||
| patterns: [ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| System.import('index').catch(console.error.bind(console)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is nice but doesn't address the memory issue in all workflows. many people suffer from this OOM issue when running
gulp buildorgulp build.js. Alsocircle.yamlcalls it and that's why the circle build is currently flaky.we should either figure out how to spawn the bundle task in a separate node process with higher heap settings or at least change npm's package.json for the
buildscript to use the same invocation method of gulp so that circle ci is stable.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeh, I will dig into OOM issues in a separate PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sgtm. go ahead and label for merge
On Fri, Jan 22, 2016 at 8:50 AM Pawel Kozlowski notifications@github.com
wrote: