This repository has been archived by the owner on Jun 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Upgrading to 0.14.0
Miroslav Jancarik edited this page Sep 12, 2017
·
3 revisions
In order to upgrade your project to use IMA.js 0.14.0, please follow these steps:
- Update your
gulpfile.js
to require the default configuration from theima-gulp-tasks
package v gulpfile.js requirovat gulpConfig.js z ima-gulp-tasks (see the example configuration). - If you are using custom
build
anddev
tasks, remove theEs6toEs5:ima
task from those. - Update your own custom gulp tasks to be compatible with gulp 4
- Remove references to the
ima.client.js
file in thesettings.js
file and thebundle
section in thebuild.js
file. - Add the
ima
package to thecommon
group in thevendors
section in thebuild.js
file. - Update your
main.js
file, theima.onLoad
method returns a promise instead of accepting a callack. - Update your
ima-server
installation according to the Hello World example. - Plugins can no longer use namespaces, please update your
bind.js
file if you were using namespace references to IMA plugins. - Import the
RouteNames
constants fromima/router/RouteNames
in yourrouter.js
configuration file. - Components may now declare the
defaultProps
andpropTypes
static properties as getters. - The
$ROUTER_CONSTANTS
alias no longer exists (import theima/router/RouteNames
file). - The
$HTTP_STATUS_CODE
alias no longer exists (import theima/http/StatusCode
file). - Removed the
$Promise
,$CacheEntry
,$PageRendererViewAdapter
,$Route
(switched to imports internally). - The loose mode of the ES2015 babel preset is no longer enabled.
- Upgrade to node.js 7 or newer (older version might work but are no longer supported).
- Switch to default exports in your configuration files.
- Remove the './node_modules/ima-babel6-polyfill/index.js' reference from the polyfills list in gulpConfig.js (if overridden; this has been fixed by babel).
- Remove the
main.less
file reference in thebuild.js
file (unless it exists in the project). - Add the
$CssClasses
property to object in the$Utils
OC alias.