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
cd www
iris init
iris path
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"
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"
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"
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