Releases: ember-cli/ember-cli
Wheat Germ Oil
Upgrading
In order to ensure a safe and easy upgrade please follow the following steps (from within your project directory):
npm install -g ember-cli
-- This ensures that your global version is up to date.npm install --save-dev ember-cli
-- This ensures that your project's version is up to date.ember init
-- This runs the new project blueprint on your projects directory. Please follow the prompts, and review all changes (tip: you can see a diff by pressing d). The most common source of upgrade pain is missing changes in this step.
Changelog
Applications
ember new
diff- [BUGFIX] Provide useful error message when
app/styles/app.ext
is not found. #1866 and #1894 - [ENHANCEMENT] Updated dependency broccoli-es3-safe-recast. #1891 and #1898
- [ENHANCEMENT] Updated dependency broccoli-merge-trees. #1891 and #1898
- [ENHANCEMENT] Updated dependency fs-extra. #1891 and #1898
- [ENHANCEMENT] Updated dependency proxy-middleware. #1891 and #1898
- [ENHANCEMENT] Updated dependency tiny-lr. #1891 and #1898
- [BUGFIX] Update
broccoli-caching-writer
to fix performance regression. #1901 - [BUGFIX] Ensure that a
.bowerrc
withoutdirectory
specified does not error. #1902
Addons
ember addon
diff- [BUGFIX] Allow addons with styles to function properly. #1892
Blueprints
- [BUGFIX] Fix
ember g http-mock foo
output to pass JSHint. #1896
Wheat Germ
Upgrading
In order to ensure a safe and easy upgrade please follow the following steps (from within your project directory):
npm install -g ember-cli
-- This ensures that your global version is up to date.npm install --save-dev ember-cli
-- This ensures that your project's version is up to date.ember init
-- This runs the new project blueprint on your projects directory. Please follow the prompts, and review all changes (tip: you can see a diff by pressing d). The most common source of upgrade pain is missing changes in this step.
Changelog
Applications
ember new
diff- [BUGFIX] Fix ember init command in empty directory. #1779
- [ENHANCEMENT] Add triggerEvent to
tests/.jshintrc
. #1782 - [ENHANCEMENT] Allow opting out of analytics via
.ember-cli
config file. #1797 - Bump
ember-cli-qunit
version. - [BUGFIX] Update broccoli-caching-writer dependents to allow linking fallback (enables easier usage of ember-cli from within Vagrant). #1799
- [BUGFIX] Avoid issue where
ember init
stalls on fresh system due tobower install
prompting for permission to use analytics. #1805 - [BUGFIX] Allow usage of standard Node.js functionality in
config/environments.js
(fixes a regression in 0.0.42). #1809 - [ENHANCEMENT] Make current environment available modules. #1820
- [BUGFIX] Ensures that AppNameENV and EmberENV are setup before the vendor files have been loaded (changes in 0.0.42 caused enabling Ember feature flags impossible from
config/environments.js
). #1825 - [ENHANCEMENT] Ensures that the
<base>
tag changes when the config file is updated. #1825 - [ENHANCEMENT] Injects the
/tests/index.html
with the test environment configuration (was previously whatever server was running). #1825 - [ENHANCEMENT]
bower_components
andvendor
are kept separate for import purposes. When we moved to separate directories for
bower_components/
andvendor/
in 0.0.41, to allow for users to upgrade easier we merged those two folders into one singlevendor
tree. This meant that you would stillapp.import('vendor/baz/foo.js')
andimport Foo from 'vendor';
even if the file actually resides in
bower_components/
. This lead to much confusion and forced users to understand the internals that are going on (merging the two directories intovendor/
).
Now you would import things frombower_components/
orvendor/
if that is where they were on disk. #1836 - [BUGFIX] Allow nested output path, if path does not previously exist. #1872
- [ENHANCEMENT] Update
ember-cli-qunit
to 0.1.0. To avoid vendoring files in the addon and prevent having to runbower install
within the addon
itself (in apostinstall
hook) the addon now installs its required packages directly into the applicationsbower.json
file.
This speeds up the build and make addon development much easier. #1877
Blueprints
- [BUGFIX]
ember g http-proxy
does not truncate the base path on proxied requests. #1874 - [ENHANCEMENT] Add empty function to
ember g resource
generator. #1817 - [ENHANCEMENT] Add {{outlet}} by default when generating a route template. #1819
- [ENHANCEMENT] Remove use of deprecated
view.state
property. #1826 - [BUGFIX] Allow blueprints without files. #1829
- [ENHANCEMENT] Make
ember g adapter
extend from application adapter if present. #1831 - [ENHANCEMENT] Add --base-class options to
ember g adapter
. #1831 - [BUGFIX] Quote module name in object literal for
ember g http-mock
. #1823 - [ENHANCEMENT] Add
Blueprint.prototype.addBowerPackageToProject
. #1830 - [ENHANCEMENT] Add
Blueprint.prototype.insertIntoFile
. #1857
Addons
ember addon
diff- [ENHANCEMENT] Expose Addon.prototype.isDevelopingAddon function. #1785
- [ENHANCEMENT] Expose Addon.prototype.treeGenerator function, that automatically handles the
returning an unwatchedTree vs the bare directory (therefore causing it to be watched). #1785 - [ENHANCEMENT] Add default
Addon.prototype.blueprintsPath
implementation. Now if an addon has ablueprints/
folder, it will be automatically used
as theblueprintsPath
. #1876
Tiny Corn
tldr;: This release is mostly a bugfix release to follow the fairly large upgrade from 0.0.40 to 0.0.41.
Changelog
Applications
ember new
diff- [ENHANCEMENT] Throw an error if an Addon does not specify a name. #1741
- [ENHANCEMENT] Extract
CoreObject
into a standalone package (core-object
). #1752 - [ENHANCEMENT] Set a default
baseURL
intest
to allowtestem
to function properly with a custombaseURL
specified. #1748 - [BUGFIX] Update
broccoli-concat
to solve a performance issue with the recent addon changes (allows better caching when no changes are detected). #1757 and #1766 - [BUGFIX] Bring
.bowerrc
file back forapp
blueprint. Helps alleviate upgrade issues, and ensures a parent directories.bowerrc
cannot break an ember-cli app. #1761 - [ENHANCEMENT] Update and clarify the default project README. #1768
- [BUGFIX] Ensure that
app.import
'ed assets can be properly watched (and trigger a reload upon change). #1774 - [BUGFIX] Ensure that
postBuild
hook is called on addons duringember build
. #1775 - [BREAKING ENHANCEMENT] Enabled automatic reloads on
config/environment.js
changes. #1777 - [BREAKING ENHANCEMENT] Export the current configuration to a module (`my-app-name/config/environment'). #1777
Addons
ZOMG SO MUCH STUFF!!!!
Upgrading From 0.0.40
During the development cycle from 0.0.40 to 0.0.41 many things have been migrated to external addons. In order to ensure a safe and easy upgrade please follow the following steps (from within your project directory):
npm install -g ember-cli
-- This ensures that your global version is up to date.npm install --save-dev ember-cli
-- This ensures that your project's version is up to date.ember init
-- This runs the new project blueprint on your projects directory. Please follow the prompts, and review all changes (tip: you can see a diff by pressingd
). The most common source of upgrade pain is missing changes in this step.rm -rf vendor/ bower_components/ .bowerrc
-- During the 0.0.41 cycle the default installation directory for Bower has been changed tobower_components/
(or whatever you have specified in your.bowerrc
). To ensure you do not slow down your build delete all files invendor/
andbower_components/
(if you have files that you have check into source control invendor/
please ensure they are not deleted) and make sure to verify thatdirectory
property in your.bowerrc
points tobower_components
. Optionally, you can delete.bowerrc
because defaultdirectory
property isbower_components
.bower install
Changelog:
- [ENHANCEMENT] Allow calling
this._super.someMethodName()
in subclasses of CoreObject. #1721 - [ENHANCEMENT]
.jshintrc
: disable esnext Promise global (prevents issues when RSVP Promise was intended but
(non-universally-implemented) global Promise was used instead. #1723 - [BUGFIX] Prevent deletion of files when invalid output-path is provided. #1649
- [BUGFIX] Fix the /tests URL in IE8. #1707
- [ENHANCEMENT] Remove
.bowerrc
file from application blueprint (will still use directory specified in.bowerrc
, but uses the default
ofbower_components/
if no.bowerrc
exists). #1679 - [BUGFIX] Fixes support for
.ember-cli
settings file. #1676 - [BUGFIX] Blueprint: replace multiple occurences of
__name__
with module name. #1658 - [ENHANCEMENT] Replace internal live-reload middleware with addon. #1643
- [ENHANCEMENT] Add .travis.yml to app blueprint. #1636
- [ENHANCEMENT] Allow individual Blueprints to determine if an entity name is required. #1631
- [ENHANCEMENT] Move
qunit
support into an addon. #1295 - [BUGFIX] Running
ember new foo-bar --dry-run
does not create new directory. #1602 - [ENHANCEMENT] Allow addons to return an
addon
tree that will be namespaced with the addons name. #1544 - [BUGFIX] Ensure non
assets/
files can be served frompublic/
or when added viaapp.import
(using thedestDir
). #1549 - [ENHANCEMENT] Update
ember-resolver
version (allows for components and their templates to be grouped together). #1540 - [ENHANCEMENT] Update
testem
version. #1539 - [ENHANCEMENT] Remove
originate
from application blueprint. - [ENHANCEMENT] Add EditorConfig file to blueprints. #1507
- [ENHANCEMENT] Add `Blueprint#beforeInstall". #1498
- [ENHANCEMENT] Add
--type
option (and check) tocontroller
androute
generators. #1498 - [BUGFIX] Call
normalizeEntityName
hook beforelocals
hook #1717 - [ENHANCEMENT] replace multiple instances of name in blueprints.
- [ENHANCEMENT] adds http-proxy for explicit, multi proxy use#1474
- [BREAKING ENHANCEMENT] renames apiStub to http-mock to match other http-related generators #1474
- [ENHANCEMENT] Log proxy server traffic when using
ember serve --proxy
#1583 - [ENHANCEMENT] Remove chain from express server #1474
- [ENHANCEMENT] Remove Blueprint lookup failure stacktrace #1476
- [ENHANCEMENT] --verbose errors option to have SilentError output stacktrace #1480
- [BUGFIX] Modify service blueprint to create explicit injection #1493
- [ENHANCEMENT] Generating a helper now also generates a test #1503
- [BUGFIX] Do not run JSHint against trees returned from an addon.
- [BREAKING ENHANCEMENT] Addons can pull in test assets into test tree #1453
- [BREAKING ENHANCEMENT] Addon model's _root renamed to root #1537
- [ENHANCEMENT] Addons can recursively add other addons #1509
- [ENHANCEMENT] Upgrade
loader.js
to1.0.1
. #1543 - [BUGFIX] Allow
public/
to contain files in the root of the project. #1549 - [ENHANCEMENT] Add
robots.txt
andcrossdomain.xml
files in the root of the project. #1550 - [BUGFIX] Generating mixins and utils with several levels of nesting no longer produces a failing test. #1551
- [BREAKING ENHANCEMENT] bower assets moved to bower_components instead of vendor #1436
- [ENHANCEMENT] Move history support into a separate internal addon. #1552
- [ENHANCEMENT] don't assume value of bowerrc.directory #1553
- [ENHANCEMENT] es6 namespaced addons #1544
- [ENHANCEMENT] Removed use of
memoize
from EmberApp. Allows multiple EmberApps to be instantiated #1361 - [ENHANCEMENT] Add
ember destroy
command (removes files added bygenerate
command). #1547 - [BUGFIX] Ensure router.js is not modified when ember g route foo --dry-run #1570
- [ENHANCEMENT] Add possibility to hide #ember-testing-container while testing #1579
- [BUGFIX] Fix EmberAddon vendor tree #1606
- [ENHANCEMENT] Addon blueprint #1374
- [BUGFIX] Fix addons with empty directories #
- [BUGFIX] Fix tests/helpers/start-app.js location from addon generator #1626
- [BUGFIX] Allow addons to use history support middleware #1632
- [ENHANCEMENT] Upgrade
broccoli-ember-hbs-template-compiler
to1.6.1
. - [ENHANCEMENT] Allow file patterns to be ignored by LiveReload #1706
- [BUGFIX] Switch to OS-friendly line endings #1718
- [BUGFIX] Prevent file deletions when the build
--output-path
is a parent directory #1730
v0.0.40
- [BUGFIX] fix detection of static files to allow periods in urls #1399
- [BUGFIX] fix processing of import statements in css #1400
- [BUGFIX] fix detection of requests to be proxied #1263
- [BUGFIX] fix ember update (broken promises) #1265
- [BUGFIX] eagerly requireing inquirer was cost ~100ms -> 150ms on boot [https://github.com/stefanpenner/ember-cli/commit/0ae78df5b4772b126facfed1d3203e9c695e80a1)
- [BUGFIX] Fix issue with invalid warnings (regarding files in the root of
vendor/
) on Windows. #1264 - [BUGFIX] Fix addons being unable to use
app.import
to pull in non-js/css assets from their ownvendor/
tree. #1159 - [ENHANCEMENT] When using
app.import
to import non-js/css assets, you can now specify the destination of the asset. #1159 - [BUGFIX] Fix issue with
ember build
failing if the public/ folder was deleted. #1270 - [BREAKING ENHANCEMENT] CoffeeScript support is now brought in by
ember-cli-coffeescript
. To use CoffeeScript with future versions runnpm install --save-dev ember-cli-coffeescript
(andbroccoli-coffee
is no longer needed as a direct dependency). #1289 - [BUGFIX]
Blueprint.prototype.normalizeEntityName
's return value should update the entity name. #1283 - [BREAKING ENHANCEMENT] Move test only js/css assets into test-vendor.js and test-vendor.css respectively. #1288
- [ENHANCEMENT] Update default Ember version to 1.6.0.
- [ENHANCEMENT] Display friendly error message when the server fails to start (e.g. address in use). #1306
- [BREAKING ENHANCEMENT] Rename test-vendor.{css,js} to test-support.{css,js} to better reflect its role. #1320
- [BUGFIX] Store version check information correctly, and only change the
lastVersionCheckAt
timestamp when the version is checked from npm. #1323 - [BUGFIX] Update
broccoli-es3-safe-recast
to fix bugs with incorrectly replaced segments. #1340 - [ENHANCEMENT] EmberApp can take jshintrc path options for app and test jshintrc files. #1341
- [ENHANCEMENT] Using broccoli-sass > 0.2.0 now allows you to use .sass files. #1367
- [ENHANCEMENT] EmberAddon constructor to build an EmberApp object with defaults for addon projects. #1343
- [ENHANCEMENT] Allow addons to be vendored outside of node modules #1370
- [ENHANCEMENT] Make "ember version" show NPM and Node version (versions of all loaded modules with "--verbose" switch). #1307
- [BUGFIX] Duplicate-checking for generating routes now accounts for
"
-syntax. #1371 - [BREAKING BUGFIX] Standard variables passed in to Blueprints now handle slashes better. Breaking if you relied on the old behavior. #1278
- [BUGFIX] Generating a route named 'basic' no longer adds it to router.js. #1390
- [ENHANCEMENT] EmberAddon constructor defaults
process.env.EMBER_ADDON_ENV
to "development". # - [ENHANCEMENT] Tests now run with the "test" environment by default,
config/environment.js
contains an (empty) section for the "test" environment #1401 - [ENHANCEMENT] Add Git initialization to
ember new
command #1369 - [ENHANCEMENT] Addons can export an object instead of a function #1377
- [ENHANCEMENT] Addons will automatically load a generic addon constructor that includes app/vendor trees based on treesFor property if no main key is specified in package.json. #1377
- [ENHANCEMENT] Disable
LOG_RESOLVER
flag to reduce console.log noise by default. #1431 - [ENHANCEMENT] Update
broccoli-asset-rev
to0.0.17
- [ENHANCEMENT] Upgrade
ember-qunit
to0.1.8
. #1427 - [BUGFIX] Fix pod based templates (was broken with the advent of the
templates
tree). #4138 - [ENHANCEMENT] ExpressServer middleware extracted to addons that are always pulled into every Project first #1446
v0.0.39
0.0.39
- [BUGFIX]
ember build --watch
should run until SIGTERM. #1197 - [BUGFIX] Failed build should return non-zero exit code. #1169
- [BUGFIX] improve startup time by up to 3x
- [BUGFIX] Ensure
ember generate
always operate in relation to project root. #1165 - [ENHANCEMENT] Upgrade
ember-cli-ember-data
to0.1.0
. #1178 - [BUGFIX] Update
ember-cli-ic-ajax
to prevent warnings. #1180 - [BUGFIX] Throw error when trailing slash present in argument to
ember generate
. #1184 - [ENHANCEMENT] Don't expect
Ember
orEm
to be global in tests.Ember
orEm
needs to be imported. #1201 - [BUGFIX] Make behaviour of
--dry-run
more obvious & add--skip-npm
and--skip-bower
. #1205 - [ENHANCEMENT] Remove .gitkeep files from
ember init
inside an existing project #1209 - [ENHANCEMENT] Addons can add commands to the local
ember
command. #1196 - [ENHANCEMENT] Addons can implement a postBuild hook. #1215
- [ENHANCEMENT] Addons can add post-processing steps to the
Brocfile.js
process. #1214 - [ENHANCEMENT]
broccoli-asset-rev
has been moved to an addon using the standard addon post-processing hooks. #1214 - [ENHANCEMENT] Allow
app.toTree
to accept an array of additional trees to merge in the final output. #1214 - [BUGFIX] Only run JSHint after preprocessing. #1221
- [ENHANCEMENT] Addons can add blueprints. #1222
- [ENHANCEMENT] Allow testing of production assets. #1230
- [ENHANCEMENT] Provide Ember CLI version to Project model. #1239
- [BREAKING ENHANCEMENT] Split
app/templates
into its own tree to prevent preprocessing template files as if they were JavaScript. #1238 - [ENHANCEMENT] Print a warning when using
app.import
for assets in the root ofvendor/
(this is a significant performance penalty). - [ENHANCEMENT] Model generation no longer requires an attribute type. [#1252]
- [ENHANCEMENT] Allow vendor files to be configurable. #1187
v0.0.37
- [BUGFIX] ensure the CLI exits with the correct status, fixes hanging tests and some non-graceful exit cleanups #1150
- [BUGFIX] Ensure EDITOR is set before allowing edit in ember init. #1090
- [BUGFIX] Display message to user when diff cannot be applied cleanly #1091
- [ENHANCEMENT] Notify when an ember-cli update is available, and add
ember update
command. #899 - [BUGFIX] Ensure that build output directory is cleaned up properly. #1122
- [BUGFIX] Ensure that non-zero exit code is used when running
ember test
with failing tests. #1123 - [BREAKING ENHANCEMENT] Change the expected interface for the
./server/index.js
file. It now receives the instantiatedexpress
server. #1097 - [ENHANCEMENT] Allow addons to provide server side middlewares. #1097
- [ENHANCEMENT] Automatically pluralize the attribute when generating a model. #1120
- [BUGFIX] Make sure non-dasherized model attributes are also added to generated tests. #1120
- [ENHANCEMENT] Upgrade
ember-qunit-notifications
to0.0.3
. #1117 - [ENHANCEMENT] Allow addons to specify load ordering. #1132
- [ENHANCEMENT] Adds
ember build --watch
#1131 - [BREAKING ENHANCEMENT] Accept options as second parameter of ember-app#import. Pass modules as exports. #1121
Clever release name
Highlight: first pass at ember-addon support, ember-data, ic-ajax, firebase and more can be installed automagically with few steps.
- [BUGFIX] Ensure that vendored JS files are concatted in a safe way (to prevent issues with ASI). #988
- [ENHANCEMENT] Use the
Project
model to load the project name and environment configuration (removes boilerplate fromBrocfile.js
). #989 - [BUGFIX] Pass
--port
option through when callingember test --port 8987
(allows overriding the port when running concurrentember test
commands). #991 - [ENHANCEMENT] Add
.ember-cli
configuration file. #563 - [ENHANCEMENT] Add edit capability to
ember init
. #1000 - [ENHANCEMENT] Add the current environment to the application config (the
MyApplicationENV
global). #1017 - [BUGFIX] Ensure that the project
.jshintrc
file is looked up in the project's root. #1019 - [ENHANCEMENT] Allow addons to hook into the application build process. #1025
- [ENHANCEMENT] Allow addons to register custom preprocessors. #1030
- [BUGFIX] Prevent route blueprint adding duplicate entries to router.js #1042
- [ENHANCEMENT] Add blueprint listing in ember help generate. #952
- [BUGFIX] Add missing descriptions for
build
,serve
, andtest
commands. #1045 - [ENHANCEMENT] Do not remove output directory. This allows easier cross-project symlinking (previous behavior broke the link when the output path was destroyed). #1034
- [ENHANCEMENT] Keep output path (
/dist
by default) up to date with bothember server
andember build
. #1034 - [ENHANCEMENT] Use the
ember-cli-ic-ajax
addon to bring in ic-ajax. #1047 - [ENHANCEMENT] Use the
ember-cli-ember-data
addon to bring in ember-data. #1047 - [BUGFIX] Allow fingerprinting to be enabled/disabled in a more custom way. #1066
- [ENHANCEMENT] Use
ember-addon
as the "addon" keyword. #1071 - [ENHANCEMENT] loader should now support CJS mode of AMD.
Blueprints OMG!!!!!
Blueprints
Thanks to the hard work of @jgwhite we have many new blueprints available.
Here is a list of the blueprints that are available out of the box:
ember-cli:
adapter
api-stub
app
blueprint
component
controller
helper
initializer
mixin
model
resource
route
serializer
service
template
transform
util
view
NPM Issues
Many users have been struggling with NPM installation issues. We are attempting a new kind of bundling (suggested by @isaacs), and are hoping that this resolves many of the issues reported.