Skip to content
This repository has been archived by the owner on Oct 20, 2021. It is now read-only.

hyperius/JSBuilder2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JSBuilder2

JavaScript project builder from ExtJS (Sencha)

This project was created by ExtJS development team to build their project like ExtJS and ext_core. Later it is evolved to Sencha Cmd project.

At this moment Sencha assumed that project is obsolete and removed it from site. But some old project still require it for build - for example, ext_core (is obsolete too :))

Usage

For example, I build ext_core project with JSBuilder2

At first, check out project files from SVN: $ svn checkout http://svn.extjs.com/svn/ext-core/trunk ext_core $ cd ext_core

Then build it: $ java -jar /path/to/JSBuilder2.jar -p ext-core.jsb2 -d .

After execution will be created ext-core-3.3.0 directory with compiled library files and resources

Used in this example config file is in JSON format and very simple and self-describing:

{
    "projectName": "Ext Core",
    "deployDir": "ext-core-3.3.0",
    "licenseText": "Ext Core Library $version
http://extjs.com/
Copyright(c) 2006-2009, $author.

The MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
",
    "pkgs": [{
        "name": "Ext Base",
        "file": "ext-base.js",
        "isDebug": true,
        "fileIncludes": [{
            "text": "Ext.js",
            "path": "src/core/"
        },{
            "text": "TaskMgr.js",
            "path": "src/util/"
        },{
            "text": "ext-base-begin.js",
            "path": "src/adapter/"
        },{
            "text": "ext-base-dom.js",
            "path": "src/adapter/"
        },{
            "text": "ext-base-event.js",
            "path": "src/adapter/"
        },{
            "text": "ext-base-ajax.js",
            "path": "src/adapter/"
        },{
            "text": "ext-base-anim.js",
            "path": "src/adapter/"
        },{
            "text": "ext-base-anim-extra.js",
            "path": "src/adapter/"
        },{
            "text": "ext-base-end.js",
            "path": "src/adapter/"
        }]
    },{
        "name": "Ext Core",
        "file": "ext-core.js",
        "isDebug": true,
        "pkgDeps": ["ext-base.js"],
        "includeDependencies": true,
        "fileIncludes": [{
            "text": "Observable.js",
            "path": "src/util/"
        },{
            "text": "DomHelper.js",
            "path": "src/core/"
        },{
            "text": "Template.js",
            "path": "src/core/"
        },{
            "text": "DomQuery.js",
            "path": "src/core/"
        },{
            "text": "DelayedTask.js",
            "path": "src/util/"
        },{
            "text": "EventManager.js",
            "path": "src/core/"
        },{
            "text": "Element.js",
            "path": "src/core/"
        },{
            "text": "Element.traversal.js",
            "path": "src/core/"
        },{
            "text": "Element.insertion.js",
            "path": "src/core/"
        },{
            "text": "Element.style.js",
            "path": "src/core/"
        },{
            "text": "Element.position.js",
            "path": "src/core/"
        },{
            "text": "Element.scroll.js",
            "path": "src/core/"
        },{
            "text": "Element.fx.js",
            "path": "src/core/"
        },{
            "text": "Fx.js",
            "path": "src/core/"
        },{
            "text": "CompositeElementLite.js",
            "path": "src/core/"
        },{
            "text": "Connection.js",
            "path": "src/data/"
        },{
            "text": "JSON.js",
            "path": "src/util/"
        },{
            "text": "Loader.js",
            "path": "src/core/"
        }]
    }],
    "resources": [{
        "src": "src/",
        "dest": "src/",
        "filters": ".*\\.js"
    },{
        "src": "examples/",
        "dest": "examples/",
        "filters": ".*[\\.html|\\.jpg|\\.png|\\.gif|\\.css|\\.js|\\.php]"
    },{
        "src": "ext-core.jsb2",
        "dest": "ext-core.jsb2",
        "filters": ".*"
    }]
}

How to build

To build this project You need to install Maven tool. After that build is simple and easy: $ cd /path/to/JSBuilder2 $ mvn package

After build finished will be created target directory containing jsbuilder2-1.0-jar-with-dependencies.jar file. You can rename it or copy in any place and use it.

About

JavaScript project builder from ExtJS (Sencha)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages