iris-cli

0.2.7 • Public • Published

iris-cli

The Iris command line interface.

Install this globally and you'll have access to the iris command anywhere on your system.

npm install -g iris-cli

Usage

cd www

Create New Project

iris init

Reload iris.path

iris path

Create Screen

iris screen <name>

Examples:

// The app ask the component name
iris screen

// Set component name
iris screen myscreen // "iris/screen/myscreen.js"

// Another component name
iris screen path.to.myscreen // "iris/screen/path/to/myscreen.js"

Create UI

iris ui <name>

Examples:

// The app ask the component name
iris ui

// Set component name
iris ui myui // "iris/ui/myui.js"

// Another component name
iris ui path.to.myui // "iris/ui/path/to/myui.js"

Create Resource

iris resource <name>

Examples:

// The app ask the component name
iris resource

// Set component name
iris resource myresource // "iris/resource/myresouce.js"

// Another component name
iris resource path.to.myresource // "iris/resource/path/to/myresouce.js"

Build pack

All iris files (all files defined in iris.path) will be concatenated and compressed in a single JS file. In order to avoid override application files, all files will be copied to a new folder. By default this folder is ../dist. You can set destination parameter to change it. Be careful with the destination folder because its content will be deleted.

iris pack <destination>

Examples:

// Default destination folder ../dist
iris pack

// Custom destination folder
iris pack ../../my-packed-app

// Another custom destination folder
iris pack C:\my-packed-app

Readme

Keywords

none

Package Sidebar

Install

npm i iris-cli

Weekly Downloads

1

Version

0.2.7

License

MIT

Last publish

Collaborators

  • angelsanchez