New infrastructure releases

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

New infrastructure releases

Herby Vojčík
Hello!

There are new amber-cli (0.14.13), amber-dev (0.7.1) and
grunt-init-amber. To update cli, do

   npm install -g amber-cli

, to update amber-dev per project, do

   npm install "amber-dev@*" --save

in each project.

What's new:

   amberc no longer generates executable files, just compiles;
   so -m and -M (main_class / main_file in grunt task) are out.

   amberc also lost -L / library_dirs. Libraries are now specified
   using AMD module names; all the .js files are loaded in amberc
   using requirejs, so (finally) library can be specified in any order.

   .st files must still be specified in dependency order, though
   (next update should cover this)

To migrate your Gruntfile:

   - remove library_dirs field(s)
   - add `configFile: "config.js"` instead
   - change your `libraries` field(s) to contain AMD module names
     ('amber_core/SUnit' instead of 'SUnit', 'amber/web/Web'
     instead of 'Web' etc.)

(new projects are of course created with new structure of Gruntfile)

That's it.

Herby

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.