/kmd

Node.js-based tools to replace Sencha Cmd

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

kmd

Build Status Coverage Status

Node.js-based tools to replace Sencha Cmd

!!! UNDER CONSTRUCTION !!!

Classes

Context, App, Package, Workspace

These classes manage loading the appropriate app.json, package.json and/or workspace.json file(s) for a given directory. The contents of this file is loaded as the data property.

There are many commonalities between apps and packages. These are collected in their common base class CodeBase.

let context = Context.get();  // from cwd

if (context) {
    // cwd is an app, package or workspace
    if (context.isApp) {
        // also context.isCodeBase
    }
    else if (context.isPackage) {
        // also context.isCodeBase
    }
    else {
        // context.isWorkspace
    }
}

PropertyMap

This class mimics Ant properties and expands based on '${foo}' tokens.