View components.my-component.js
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'input',
attributeBindings: ['name', 'value', 'autocomplete'],
autocomplete: 'name',
onUpdate() {},
input(event) {
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
View test-generators.ts
import escape from 'js-string-escape';
interface TestGenerator {
suiteHeader(suiteName: string): string
suiteFooter(): string
test(testName: string, passed: boolean, assertionMessage: string): string
}
class QUnitTestGenerator implements TestGenerator {
suiteHeader(suiteName) {
View build.log
ember-cli:project getProjectRoot /private/tmp/mocha-bisect -> /private/tmp/mocha-bisect
ember-cli:cli/index leek: { trackingCode: 'UA-49225444-1', globalName: 'ember-cli', name: '8ec2e5d0-72fd-4cb2-b7cb-496cf7806797', version: '2.13.0-beta.1', silent: undefined }
ember-cli:cli testing false
ember-cli:project looking for package.json starting at /private/tmp/mocha-bisect
ember-cli:project found package.json at /private/tmp/mocha-bisect
ember-cli:project project name: mocha-bisect
ember-cli:project init root: /private/tmp/mocha-bisect
ember-cli:project bowerrc path: /private/tmp/mocha-bisect/.bowerrc
ember-cli:project bowerDirectory: bower_components
ember-cli:project nodeModulesPath: /private/tmp/mocha-bisect/node_modules
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
View test.js
'use strict';
const broccoliTestHelper = require('broccoli-test-helper');
const expect = require('chai').expect;
const EmberApp = require('../../../../lib/broccoli/ember-app');
const MockCLI = require('../../../helpers/mock-cli');
const Project = require('../../../../lib/models/project');
const buildOutput = broccoliTestHelper.buildOutput;
View cli-tags.json
{
"versions": [
{
"previous": null,
"version": "v0.0.13"
},
{
"previous": "v0.0.13",
"version": "v0.0.14"
},
View handlebars.ne
@builtin "string.ne"
@builtin "whitespace.ne"
MustacheStatement -> OPEN _ _Path (__ _Param):* (__ Hash):? _ CLOSE {% (data, location) => ({
type: 'MustacheStatement',
path: data[2],
params: data[3].map(it => it[1]),
hash: data[4] && data[4][1],
range: { start: location, end: data[6].range.end },
}) %}
View mitsuhiko.zsh-theme
setopt prompt_subst
export LSCOLORS=ExGxFxDxCxHxHxCbCeEbEb
ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[blue]%}git%{$reset_color%}:"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%}+"
ZSH_THEME_GIT_PROMPT_BRANCH=""
ZSH_THEME_GIT_PROMPT_SEPARATOR=""
ZSH_THEME_GIT_PROMPT_CLEAN=""
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
foo: 1,
actions: {
inc() {
this.set('foo', this.get('foo') + 1);
}