[Sugar-devel] How to write an html activity
Manuel Quiñones
manuq at laptop.org
Fri May 3 20:37:27 EDT 2013
2013/5/3 Daniel Narvaez <dwnarvaez at gmail.com>:
> Hello,
>
> the initial bits of the html activities work has landed. It should now be
> relatively easy to start writing an activity.
>
> First of all you will need a development environment. See
>
> http://sugarlabs.org/~buildbot/docs/build.html
>
> Then open a shell and move to the source directory
>
> make shell
> cd source
>
> Create an activity based on a template
>
> volo create my-activity ./sugar-html-template
The above line needs to have two dots to reference the right
directory, should be:
volo create my-activity ./sugar-html-template
Also require.js is needed, do:
volo add requirejs
>
> Install the activity for development as usual
>
> cd my-activity
> python setup.py dev
>
> To interact with the platform you will need to add the sugar-core-html
> library to your activity
>
> volo add -f ./sugar-html-core
>
> For now the API allows to close the activity and get the xo color. More
> interfaces will be added soon.
>
> --
> Daniel Narvaez
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
--
.. manuq ..
More information about the Sugar-devel
mailing list