Set of tools to bundle, transpile and compress apps.
Last updated 10 months ago by rpazdera .
MIT · Original npm · Tarball · package.json
$ cnpm install @kano/kit-app-shell-core 
SYNC missed versions from official npm registry.


Set of tools to bundle, transpile and compress apps.

Creating a project

This guide will explain how to create a minimal project that can be used to output an application on all the platforms supported by kit-app-shell


Create an index.js file and input the following:

// This is your app main class, the bridge between the shell and your web content
class App {
    // When your app is created, it is given a bus to communicate with the backend and
    // a config object containing your project's config
    constructor(bus, config) {
        // kit-app-shell will be looking for this property to be set as the root of your DOM tree
        this.root = document.createElement('div');
        // Show something
        this.root.innerText = 'Hello World'

// By calling this method, you provide the shell your App class and it will be used to start the app

With this simple configuration, you can already run kash run web ./ in your project's directory (Make sure you have @kano/kit-app-shell-web installed) and open a browser to the given URL. You should now see your Hello World message.

Environment and config

Each app is ran or built for a target environment. This environment can be defined using the --env flag with the CLI, its default value will be development Config managment for your project is done through a set of JSON files under your project's config directory.

Create a config directory and a default.json inside. The default.json file will always be loaded, but its values can be overriden by a config file matching an environment. If you add a development.json file both default and development config will be loaded and values in the development config will override the default values. Common environments are staging, production, rc, test.

You can retrieve the app's environment at runtime through the ENV property in the config object.

In your newly created default.json, add the following:

    "APP_ID": "com.acme.app",
    "APP_NAME": "My App"

Then update your index.js:

class App {
    constructor(bus, config) {
        this.root = document.createElement('div');
        this.root.innerText = `${config.APP_NAME} - ${config.ENV}`;


Refreshing your browser page should now display the message My App - development, you can try running kash run web ./ --env=<env> with different environment to see the changes


The version of the app will be loaded from your project's package.json and will be added to the config object under the VERSION key.

Add a package.json file in your project if it doesn;t already have one. Set the version field to a custom version.

Update your index.js again to use the VERSION key from the config:

this.root.innerText = `${config.APP_NAME} - ${config.ENV} running version ${config.VERSION}`;

Current Tags

  • 0.0.3-alpha.88                                ...           latest (10 months ago)

36 Versions

  • 0.0.3-alpha.88                                ...           10 months ago
  • 0.0.3-alpha.80                                ...           a year ago
  • 0.0.3-alpha.67                                ...           a year ago
  • 0.0.3-alpha.66                                ...           a year ago
  • 0.0.3-alpha.64                                ...           a year ago
  • 0.0.3-alpha.61                                ...           a year ago
  • 0.0.3-alpha.58                                ...           a year ago
  • 0.0.3-alpha.48                                ...           a year ago
  • 0.0.3-alpha.43                                ...           a year ago
  • 0.0.3-alpha.42                                ...           a year ago
  • 0.0.3-alpha.36                                ...           a year ago
  • 0.0.3-alpha.35                                ...           a year ago
  • 0.0.3-alpha.32                                ...           a year ago
  • 0.0.3-alpha.31                                ...           a year ago
  • 0.0.3-alpha.28                                ...           a year ago
  • 0.0.3-aplha.22                                ...           2 years ago
  • 0.0.3-alpha.19                                ...           2 years ago
  • 0.0.3-alpha.17                                ...           2 years ago
  • 0.0.3-alpha.14                                ...           2 years ago
  • 0.0.3-alpha.13                                ...           2 years ago
  • 0.0.3-alpha.12                                ...           2 years ago
  • 0.0.3-alpha.11                                ...           2 years ago
  • 0.0.3-alpha.10                                ...           2 years ago
  • 0.0.3-alpha.9                                ...           2 years ago
  • 0.0.3-alpha.8                                ...           2 years ago
  • 0.0.3-alpha.7                                ...           2 years ago
  • 0.0.3-alpha.6                                ...           2 years ago
  • 0.0.3-alpha.5                                ...           2 years ago
  • 0.0.3-alpha.4                                ...           2 years ago
  • 0.0.3-alpha.3                                ...           2 years ago
  • 0.0.3-alpha.2                                ...           2 years ago
  • 0.0.3-alpha.1                                ...           2 years ago
  • 0.0.3-alpha.0                                ...           2 years ago
  • 0.0.2-alpha.2                                ...           2 years ago
  • 0.0.2-alpha.1                                ...           2 years ago
  • 0.0.2-alpha.0                                ...           2 years ago
Today 0
This Week 1
This Month 1
Last Day 1
Last Week 0
Last Month 2
Dev Dependencies (22)

Copyright 2014 - 2016 © taobao.org |