Migration from 0.11 to 0.12

Nicolas Petton edited this page Dec 6, 2013 · 3 revisions

First, the loading of JavaScript files must be adapted. The custom loader has been replaced with requirejs for loading files in the browser. New loader code is thouroughly explained here.

After updating the loader part, .st files need to be recompiled into new AMD .js files. During loader changes, a namespace was choosen and will be needed for recompilation.

Go to your directory with .st files and issue this from the shell:

<path-to-amber>/bin/amberc -l SUnit,Canvas -n <chosen-namespace> -D <path-for-compiled-js-files> *.st

In windows, use \ as path separator, the rest is identical.

The -l SUnit,Canvas is just a general guess, if your code depends on more (or less) non-kernel packages from amber, list them here accordingly.

This migrate scenario only covers simple deployments with your project's code and amber. If your project is more complicated, using libraries and packages from multiple sources, it is hard to give general advices to migrate - you must do it library by library, giving each location its own namespace, and -L option of amberc comes handy when integrating; ask on the mailing list if problems arise.

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.