- Put
reporter.js
intests/helpers/reporter.js
- Change
tests/test-helper.js
to look like the attached - Put
test-container-styles.css
invendor/ember-cli-mocha
to override the default - Stop your server and restart (it doesn't watch
vendor/
by default)
I looked around for a good popover library for Ember. I couldn't find one I liked (and was compatible with Ember 1.13 and Glimmer), so I whipped up a little ditty:
// app/pop-over/component.js
import $ from "jquery";
function ember-cli-update { | |
if [ -z "$1" ]; then | |
echo "$(tput setaf 1)No Ember CLI version has been specified. Example: ember-cli-update 0.1.7$(tput sgr 0)" | |
return 1 | |
fi | |
echo "$(tput setaf 2)Uninstalling global Ember CLI...$(tput sgr 0)" | |
npm uninstall -g ember-cli | |
echo "$(tput setaf 2)Cleaning NPM and Bower cache...$(tput sgr 0)" |
This post is also on my blog, since Gist doesn't support @ notifications.
Components are taking center stage in Ember 2.0. Here are some things you can do today to make the transition as smooth as possible:
- Use Ember CLI
- In general, replace views + controllers with components
- Only use controllers at the top-level for receiving data from the route, and use
Ember.Controller
instead ofEmber.ArrayController
orEmber.ObjectController
- Fetch data in your route, and set it as normal properties on your top-level controller. Export an
Ember.Controller
, otherwise a proxy will be generated. You can use Ember.RSVP.hash to simulate setting normal props on your controller.
{ | |
"name": "project", | |
"version": "0.0.0", | |
"authors": [ | |
"Eric Barnes <[email protected]>" | |
], | |
"license": "MIT", | |
"private": true, | |
"ignore": [ | |
"**/.*", |
# Mac OS X Lion introduced a new, iOS-like context menu when you press and hold a key | |
# that enables you to choose a character from a menu of options. If you are on Lion | |
# try it by pressing and holding down 'e' in any app that uses the default NSTextField | |
# for input. | |
# | |
# It's a nice feature and continues the blending of Mac OS X and iOS features. However, | |
# it's a nightmare to deal with in Atom if you're running vim mode, | |
# as it means you cannot press and hold h/j/k/l to move through your file. You have | |
# to repeatedly press the keys to navigate. |
checkout: | |
post: | |
- git submodule sync | |
- git submodule update --init # use submodules | |
deployment: | |
production: | |
branch: production | |
commands: | |
- ./bin/heroku_deploy.sh yerdle: | |
timeout: 300 |
Here's what I did to get things working.
Yep, over at: https://developer.apple.com
Note: Up to date version now at https://github.com/lukehoban/es6features
ECMAScript 6 is the upcoming version of the ECMAScript standard. This standard is targetting ratifcation in December 2014. ES6 is a significant update to the language, and the first update to the language since ES5 was standardized in 2009. Implementation of these features in major JavaScript engines is underway now.
See the draft ES6 standard for full specification of the ECMAScript 6 language.
ES6 includes the following new features:
using level-sublevel, level-sec and validimir to have
- validations
- schema documentation
- schema enforcement
- index definitions