• Stars
    star
    1,019
  • Rank 45,159 (Top 0.9 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 11 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

deprecated: see https://github.com/stefanpenner/ember-cli

Deprecated

this project has been deprecated in-favour of the ember-cli project:

Migrating to Ember CLI

First, run npm install -g ember-cli to install Ember CLI. Now, on top of your existing EAK project, run ember init. Ember CLI will then migrate your project, showing you a diff of its overrides, and letting you edit them, as it goes along.

Ember Init Overrides

  • tests/.jshintrc
  • Let ember-cli overwrite this.
  • app/index.html
  • Since managing vendor assets is now handled via the Brocfile, you should let ember-cli overwrite this file.
  • app/app.js
  • Ember Configuration is now handled in the config directory.
  • app/router.js
  • The Router's location is now handled via environment configuration. Change this to config.locationType.
  • app/routes/index.js
  • This will attempt to replace your Index Route with a stub. Usually, you wont't want Ember CLI to override this file.
  • Brocfile.js
  • Move your dependencies from app/index.html into this file by calling app.import().
  • Example: app.import('vendor/ember-data/ember-data.js')
  • app/templates/application.hbs
  • This will attempt to replace your application template with a stub.
  • app/styles/app.css
  • Another stub.
  • tests/index.html
  • Let ember-cli add this file. Include any test depencies you had in `app/index.html'.
  • bower.json
  • package.json

Ember CLI Migrator

The Ember CLI Migrator can help you migrate your files to the standard ember-cli structure, while preserving your Git history. This tool can help you get 90% of the way there when working with EAK.

Importing Ember and Ember Data

You now have to explicitly import Ember and Ember Data. Add import Ember from "ember and import DS from "ember-data" anywhere you declared a route, controller, model, and so on.

Migrating your API Stub

To work with the API stub again, run ember generate server. This command generates a server directory for your mocks and proxies where you can then migrate your routes accordingly.

You may also want to look into Ember CLI Rest API Blueprint which generates DS.RESTAdapter compatible express routes for a given Model.

Custom Environments

Support for custom environments like staging is currently still in progress, see Ember CLI PR #1520

Using The Express Server

The Express server has been exposed and now lives under this directory. You can now customize it any way you want, from enhancing the static file server, to simply using it as an API stub. You may even develop it further and turn it into a full-stack solution.

Cleanup

You can remove the Gruntfile and tasks folder since we won't be needing them anymore.

For now, you can check the app blueprint to see what other files you no longer need.

Troubleshooting

  • Ember CLI now picks up your app namespace. Change the import to reference the name of your project.

  • If you never changed your application namespace from the default appkit then running ember init will break any import statements you already have

  • Index Route doesn't exist

  • You may need to refresh your dependencies. Run rm -rf npm_modules && npm install && npm cache clean && bower install

  • Tests

  • Import tests/helpers/start-app into each acceptance test file.

  • import startApp from 'your-app/tests/helpers/start-app

  • resolver and startApp still live in test/helpers/ but module-for is now its own package.

  • If you were using ember-testing-httpRespond

  • This has now been replaced by Pretender.

  • Import it and its dependencies in your Brocfile by using app.import()

Ember App Kit Build Status

Ember App Kit aims to be the foundation for ambitious web applications built with Ember. It's been replaced by an executable ember-cli which dramatically improves buildtimes (via broccoli) and provides sane-upgrade paths, feel free to check that project out. We intend to provide a sensible upgrade path.

This project has been extracted out of several real world applications and is actively used. Currently it covers the basics fairly well, but much still needs to be done. As we learn and as more contributors join in it continues to evolve. If you encounter any bugs, clunky features or missing documentation, just submit an issue and we'll respond ASAP.

At the very least, it helps setup your Ember.js applications directory structure.

We welcome ideas and experiments.

Getting Started

Features

  • Sane project structure
  • ES6 module transpiler support (easy, future-proof modules)
  • Module system-aware resolver (see Referencing views and Using Ember loaders)
  • Transparent project compilation & minification for easy deploys via Grunt
  • Package management via Bower
  • Optional support for CoffeeScript, SASS, LESS or Stylus
  • Testing via QUnit, Ember Testing and Testem (with examples)
  • Linting via JSHint (including module syntax)
  • Catch-all index.html for easy reloading of pushState router apps
  • Generators via Loom (to generate routes, controllers, etc.)

Special Thanks

Some ideas in ember-app-kit originated in work by Yapp Labs (@yapplabs) with McGraw-Hill Education Labs (@mhelabs) on yapplabs/glazier. Thanks to Yapp and MHE for supporting the Ember ecosystem!

License

Copyright 2013 by Stefan Penner and Ember App Kit Contributors, and licensed under the MIT License. See included LICENSE file for details.

More Repositories

1

es6-promise

A polyfill for ES6-style Promises
JavaScript
7,303
star
2

ember-state-services

JavaScript
225
star
3

broccoli-concat-analyser

HTML
125
star
4

ember-jobs

JavaScript
72
star
5

ember-browsery-stats

JavaScript
62
star
6

broccoli-stew

JavaScript
60
star
7

ember-console

experimental node console for your ember app (fastboot capable ember apps only)
JavaScript
38
star
8

get-caller-file

TypeScript
30
star
9

resolve-package-path

a special purpose fast memoizing way to resolve a node modules package.json
TypeScript
29
star
10

ember-app-kit-todos

JavaScript
28
star
11

ember-improved-cp

JavaScript
28
star
12

ember-cli-ember-fire

JavaScript
27
star
13

fs-tree-diff

TypeScript
24
star
14

async-disk-cache

JavaScript
23
star
15

es3-safe-recast

JavaScript
22
star
16

ember-runloop-utils

JavaScript
15
star
17

broccoli-swc

Experimental SWC compiler for broccoli.
JavaScript
14
star
18

dotfiles

Shell
13
star
19

detect-indent-rs

Rust
13
star
20

template-ts

GH Template your way to friction free typescript library bliss.
TypeScript
13
star
21

node-fixturify-project

TypeScript
12
star
22

ember-strict-resolver

JavaScript
10
star
23

sync-disk-cache

JavaScript
9
star
24

rsvp-party

JavaScript
9
star
25

pleasant-progress

JavaScript
9
star
26

ember-cli-auto-register-helpers

JavaScript
9
star
27

ember-redirect-to

JavaScript
9
star
28

layout-bin-packer

JavaScript
8
star
29

do-you-even-bench

quick and dirty benchmark.js wrapper for us simple folk
JavaScript
8
star
30

mocha-esm

Quick trick to get to use mocha + esm/.mjs
JavaScript
8
star
31

tree-sync

JavaScript
7
star
32

hash-for-dep

JavaScript
7
star
33

state_machine.js

simple JS statemachine
JavaScript
7
star
34

petal

JavaScript
7
star
35

promise_benchmarks

micro benchmarks
JavaScript
6
star
36

heapsnapshot

JavaScript
6
star
37

node-require-timings

quick lib to quickly discover which modules are costly to require
JavaScript
6
star
38

perf-stress

JavaScript
6
star
39

lib-kit

JavaScript
6
star
40

promise.hash.helper

Inspired by Promise.all but rather then consuming an array it takes an object as input.
TypeScript
6
star
41

alt-yarn-why

yarn why is cool, but sometimes it doesn't show what i want.. This helps.
JavaScript
6
star
42

d-d

JavaScript
5
star
43

ember-cli-progress

the long lost ember-cli progress bar
JavaScript
5
star
44

graphql-fragment-import

JavaScript
5
star
45

ember-cli-jsbin

JavaScript
5
star
46

ember-performance

JavaScript
5
star
47

ember-inspector

you are likely looking for ember-extension
Ruby
5
star
48

ember-test-helpers

moved to -> https://github.com/rpflorence/ember-qunit
JavaScript
5
star
49

ember-weak-ref

JavaScript
4
star
50

ast-equality

JavaScript
4
star
51

broccoli-plugin-kit

How to get started writing broccoli plugins
JavaScript
4
star
52

pp-colour

Colourized PP
Ruby
4
star
53

terminal-color

TODO: one-line summary of your gem
Ruby
3
star
54

eslint-ast

Mono-repo for various eslint custom language parsers / rules etc.
JavaScript
3
star
55

random

JavaScript
3
star
56

simply_paginate

TODO: one-line summary of your gem
Ruby
3
star
57

flash.js

yet another JavaScript flash loading library
3
star
58

ember-tron

JavaScript
3
star
59

basic-transpiler-benchmarks

JavaScript
3
star
60

rebinder

Ruby
3
star
61

matcher-collection

TypeScript
3
star
62

ember-es6-object

object that pretends to be a minimal ember object, but is just a plain es6 class
JavaScript
3
star
63

async-promise-queue

A wrapper around the async module, that provides an improved promise queue.
JavaScript
3
star
64

all-addons

Shell
3
star
65

blog

2
star
66

ember-cli-update-reporter

JavaScript
2
star
67

hamachi

OSX menu item for Hamachi
Ruby
2
star
68

53cr.com

JavaScript
2
star
69

table_to_model

Using ActiveRecord, generate all the models from a database.
Ruby
2
star
70

rubygems_dump

TODO: one-line summary of your gem
Ruby
2
star
71

___ember-data-fixture-adapter-example

JavaScript
2
star
72

sass_mixins

some useful sass mixins
2
star
73

multiparameter_attribute_bug

Ruby
2
star
74

my_scaffold

TODO
Ruby
2
star
75

ckeditor

TODO: one-line summary of your gem
Ruby
2
star
76

ember-cli-addon-aware-resolver

JavaScript
2
star
77

broccoli-templater

JavaScript
2
star
78

find_p_dupes

Ruby
2
star
79

perf-scratch

JavaScript
2
star
80

mjs-dirname

JavaScript
2
star
81

ruby-git

TODO: one-line summary of your gem
Ruby
2
star
82

Intro-to-debugging-ruby

Winnipegrb intro to debugging quick-talk
Ruby
2
star
83

host_app

rails 2.3rc1 application demonstrating an engine layout issue.
Ruby
2
star
84

active_model_humanized_attributes

TODO: one-line summary of your gem
Ruby
2
star
85

vhosterous

TODO: one-line summary of your gem
Ruby
2
star
86

vim

Shell
2
star
87

fovea

Ruby
2
star
88

___my-cool-app

JavaScript
2
star
89

blprnt-node

JavaScript
2
star
90

association_collection_create_bug

collect create bug
Ruby
2
star
91

sweet-array-slice

sweet.js macro for array splice, specifically to deal with argument splicing deopt.
JavaScript
2
star
92

open_flash_chart_2

TODO
Ruby
2
star
93

dotbars

JavaScript
2
star
94

referrer.js

Provides some simple helpers to extract useful information like keywords from the referrer url
JavaScript
2
star
95

logical.rb

Ruby
2
star
96

mr-dep-walk

JavaScript
2
star
97

date_range.js

A lightweight library that provides tools for dealing with date ranges
JavaScript
2
star
98

fs-thing

JavaScript
2
star
99

ember-install-gist

JavaScript
1
star
100

ensure-symlink

used to implement a resilient "best-effort last write wins" symlink
JavaScript
1
star