Installable Joose distribution

5 views
Skip to first unread message

Nickolay Platonov

unread,
May 7, 2009, 4:16:53 PM5/7/09
to joose-js, js...@googlegroups.com
Hello all,

I'd like to share the recent progress on JSAN modules installation task. I created a set of installable distributions,
together they form some kind of "playground", which can be used for testing and "ironing out" of installation process.

Primary distributions are Joose, JooseX.Bridge.Ext and Test.Run.

Joose is a Moose in javascript. Have no more to say here.

JooseX.Bridge.Ext is a bridge from Joose to ExtJS framework.
It transparently converts all classes of ExtJS framework to native Joose classes. More info here.

Test.Run is a new testing platform (written in Joose)
Its a rewrite of Test.Simple and Test.Tap, aimed for easier extendability.

All together it looks like:
http://jsan.symbie.org/test.run/demo/multi.html
or
http://jsan.symbie.org/Joose3/mutability/t/

To install any of these distributions locally, you'll need several additional modules.

Step-by-step:

1) Module::Build::JSAN
Can be fetched from: http://github.com/SamuraiJack/module-build-jsan/tree/master

This is a perl module. If you are on windows you'll to need to install perl first. Strawberry perl might be good choice.
Unlike ActiveState perl, it comes with compiler included and you'll be able to easily install any dependencies from command-line, like this:

cpan Pod::Stripper

cpan Path::Class

2) Task.Joose.Stable
Can be fetched from: http://github.com/SamuraiJack/task-joose-stable/tree

This is javascript module, it contain stable version of Joose.

Install it the same way as usual perl module:
perl Build.PL
./Build
[sudo] ./Build install

on linux systems, local jsan library will be created at /usr/local/lib/jsan
on windows - at "c:\jsan"

You can also specify the path for installation with '--install_base' command line switch or 'JSAN_LIB' environment variable

3) Install Task.ExtJS
Can be fetched from: http://github.com/SamuraiJack/task-extjs/tree

Contain JSAN distribution of ExtJS framework

4) Install JooseX.Bridge.Ext
Can be fetched from: http://github.com/SamuraiJack/joosex-bridge-ext/tree

5) Install ExtX.Reference.Slot
Can be fetched from: http://github.com/SamuraiJack/extx-reference-slot/tree

Contain custom extension of ExtJS framework, written as Joose Role.

6) Install Test.Run
Can be fetched from: http://github.com/SamuraiJack/test.run/tree

7) As a convention, configure your local web-server to map
/inc as $JSAN_LIB/jsan/lib
/static as $JSAN_LIB/jsan/static

where $JSAN_LIB is the path to your local library.


You may noticed, that a task of running test platform, was decomposed into several stand-alone JavaScript modules.

Next step will be implementation of the jsan-prove command-line tool for testing distributions before installation - analog of usual prove.
Another interesting task is integration of grouped dependencies loading with local library.

Any comments regarding installation procedure are welcome.

Regards, Nickolay
Reply all
Reply to author
Forward
0 new messages