forked from spyla/donejs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
67 lines (45 loc) · 2 KB
/
README
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
TOC:
A. How to get (and contribute) to JMVC 3.2
B. Getting Started with JMVC 3.2
A. How to get (and contribute) JMVC
1. Start a new project in git.
2. Fork ....
http://github.com/jupiterjs/steal and
http://github.com/jupiterjs/jquerymx and
http://github.com/jupiterjs/funcunit and
http://github.com/jupiterjs/documentjs
3. Add steal, jquerymx, funcunit, and documentjs as submodules of your project...
git submodule add [email protected]:_YOU_/steal.git steal
git submodule add [email protected]:_YOU_/jquerymx.git jquery
git submodule add [email protected]:_YOU_/funcunit.git funcunit
git submodule add [email protected]:_YOU_/documentjs.git documentjs
4. Learn a little more about submodules ...
http://johnleach.co.uk/words/archives/2008/10/12/323/git-submodules-in-n-easy-steps
5. Make changes in steal or jmvc, and push them back to your fork.
6. Make a pull request to your fork.
B. Getting Started with JMVC
1. Generate app:
./js steal/generate/app cookbook
2. Generate scaffold:
./js steal/generate/scaffold Cookbook.Models.Recipe
3. Add html to cookbook/cookbook.html:
<ul id='recipes'></ul>
<form id='create' action=''></form>
4. See your recipes app:
Open cookbook/cookbook.html in a browser.
5. Run functional tests in the browser:
Open cookbook/funcunit.html in a browser (turn off popup blockers).
6. Run functional tests with selenium:
./funcunit/run selenium cookbook/funcunit.html
7. Run unit tests in the browser:
Open cookbook/qunit.html in a browser.
8. Run unit tests with Rhino:
./funcunit/run envjs cookbook/qunit.html
11. Compress app:
./steal/js cookbook/scripts/build.js
12. Turn on production mode in callcenter.html and reload page:
src='../steal/steal.production.js?cookbook'
13. Generate docs:
./steal/js cookbook/scripts/doc.js
14. View docs:
Open cookbook/docs.html.