npm install -g broccoli-concat-analyser
CONCAT_STATS=true ember s -e production
- kill the server
broccoli-concat-analyser ./concat-stats-for
View controllers.application.js
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
value: '<h1>Demo header</h1>This is some <i>italic</i> text.' | |
}); |
View Broccoli analyzer.MD
View controllers.application.js
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
value: `<div> | |
<p><span style="font-weight: bold;">Type: </span> exploration, adventure</p> | |
<br> | |
<p><span style="font-weight: bold;">Audio: </span> English</p> | |
</div>`, | |
pellOptions: { |
View components.github-user-search.js
import Ember from 'ember'; | |
import { task, timeout } from 'ember-concurrency'; | |
import { isBlank } from '@ember/utils'; | |
const DEBOUNCE_MS = 250; | |
const API_URL = 'https://api.github.com/search/users?q='; | |
export default Ember.Component.extend({ | |
searchUsers: task(function * (term) { | |
if (isBlank(term)) { return []; } |
View gist:70d75abfd2afbbd97458
/* | |
Photoresistor Part (Connection) | |
http://nakkaya.com/images/post/photoresistor.png | |
Connect the photoresistor one leg to pin 0, and pin to +5V | |
Connect a resistor (around 10k is a good value, higher | |
values gives higher readings) from pin 0 to GND. | |
---------------------------------------------------- |
View controllers.application.js
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
}); |
View controllers.application.js
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
View controllers.application.js
import Ember from 'ember'; | |
import { computed } from '@ember/object'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
test: computed('{bla,la}', function() { | |
return `${this.bla},${this.la}`; | |
}), | |