forked from sproutcore/abbot
/
USAGE
26 lines (17 loc) · 948 Bytes
/
USAGE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
app - Create a new SproutCore application target.
USAGE:
sc-gen app AppName [--filename=FILENAME] [--target=TARGET_NAME] [--statechart]
DISCUSSION:
This generator will create a new SproutCore application for a particular
project. You should pass as the first parameter your AppName you want to
create. For example:
sc-gen app Todos
This defines a new application called Todos in the file apps/todos/ . Or you
can include a basic statechart for example:
sc-gen app Todos --statechart
This defines a new application called Todos in the file apps/todos/ using
statecharts. Within the apps/Todos/resources directory you will have a
statechart.js file and a states directory with the ready_state.js file. The
statechart.js file sets the initial state of your app to ready.
As your app grows. You will create new states within the statechart.js file.
In your states folder you will describe the states declared in the statechart.js.