1.4.7 • Published 7 years ago

scholica-cli v1.4.7

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

Notice!

This package has been renamed to includable. Please install includable instead!


Scholica CLI

Build modules for Scholica from the comfort of your command line.

The Scholica command line utility allows you to build, debug and test modules by using your own editor and local environment, but by seeing the results in realtime on an online demo environment. No need to install virtual machines or container software on your own machine.

Scholica CLI

Installation

Install Node.js (version 4+), and install the Scholica CLI through npm:

npm install -g scholica-cli

Usage

Create a new module. This will create a new directory with your module's chosen name, and add some standard content:

scholica create modulename

Start debugging it by executing this command in a module directory (needs to contain a module.json file):

scholica run

This will automatically open the browser and sign in as a user. Alternatively, add -e manager to sign in to the Scholica Manager with the module installed, or -e main to not automatically sign in (public homepage/login screen of community).

Scholica will automatically synchronise any changes you make to local files as long as you leave the command running. After you save a file, refresh the browser to see your changes.

Demo

A quick demo video can be seen here:

CLI usage demo

Development

Code quality

Scrutinizer Code Quality bitHound Overall Score

Plugins

It is possible to extend the CLI functionality by building plugins. These are simple Node packages, which export a function (in their main file, specified in package.json) with a single argument, which is an instance of a commander.js program:

'use strict';

module.exports = function(program) {

    program
        .command('ping')
        .description('Get a pong')
        .action(function() {
            program.output.notice('pong');
        });

};

These can then be installed through scholica plugins install, which takes either a local directory path, or the name of an NPM package. Plugins are installed in the directory $HOME/.scholica-cli-plugins.

1.4.7

7 years ago

1.4.6

7 years ago

1.4.5

7 years ago

1.4.4

7 years ago

1.4.3

7 years ago

1.4.2

7 years ago

1.4.1

7 years ago

1.4.0

7 years ago

1.3.5

7 years ago

1.3.4

7 years ago

1.3.3

7 years ago

1.3.2

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago