Skip to content

Commit

Permalink
Correct stealconfig.js for JavaScriptMVC
Browse files Browse the repository at this point in the history
  • Loading branch information
daffl committed Jul 25, 2012
1 parent 5c53438 commit 381a0ee
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 40 deletions.
37 changes: 9 additions & 28 deletions readme.md
@@ -1,67 +1,48 @@
TOC: # JavaScriptMVC 3.3
A. How to get (and contribute) to JMVC 3.2
B. Getting Started with JMVC 3.2



## How to get (and contribute) JMVC
A. How to get (and contribute) JMVC


1. Start a new project in git. 1. Start a new project in git.

2. Fork .... 2. Fork ....
http://github.com/jupiterjs/steal and http://github.com/jupiterjs/steal and
http://github.com/jupiterjs/jquerymx and http://github.com/jupiterjs/jquerypp and
http://github.com/jupiterjs/funcunit and http://github.com/jupiterjs/funcunit and
http://github.com/jupiterjs/documentjs http://github.com/jupiterjs/documentjs

3. Add steal, jquerymx, funcunit, and documentjs as submodules of your project... 3. Add steal, jquerymx, funcunit, and documentjs as submodules of your project...
git submodule add git@github.com:_YOU_/steal.git steal git submodule add git@github.com:_YOU_/steal.git steal
git submodule add git@github.com:_YOU_/jquerymx.git jquery git submodule add git@github.com:_YOU_/jquerypp.git jquery
git submodule add git@github.com:_YOU_/funcunit.git funcunit git submodule add git@github.com:_YOU_/funcunit.git funcunit
git submodule add git@github.com:_YOU_/documentjs.git documentjs git submodule add git@github.com:_YOU_/documentjs.git documentjs

4. Learn a little more about submodules ... 4. Learn a little more about submodules ...
http://johnleach.co.uk/words/archives/2008/10/12/323/git-submodules-in-n-easy-steps 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. 5. Make changes in steal or jmvc, and push them back to your fork.

6. Make a pull request to your fork. 6. Make a pull request to your fork.




B. Getting Started with JMVC ## Getting Started with JMVC


1. Generate app: 1. Generate app:
./js steal/generate/app cookbook ./js steal/generate/app cookbook

2. Generate scaffold: 2. Generate scaffold:
./js steal/generate/scaffold Cookbook.Models.Recipe ./js steal/generate/scaffold Cookbook.Models.Recipe

3. Add html to cookbook/cookbook.html: 3. Add html to cookbook/cookbook.html:
<ul id='recipes'></ul> <ul id='recipes'></ul>
<form id='create' action=''></form> <form id='create' action=''></form>

4. See your recipes app:
4. See your recipes app:
Open cookbook/cookbook.html in a browser. Open cookbook/cookbook.html in a browser.

5. Run functional tests in the browser:
5. Run functional tests in the browser:
Open cookbook/funcunit.html in a browser (turn off popup blockers). Open cookbook/funcunit.html in a browser (turn off popup blockers).

6. Run functional tests with selenium: 6. Run functional tests with selenium:
./funcunit/run selenium cookbook/funcunit.html ./funcunit/run selenium cookbook/funcunit.html

7. Run unit tests in the browser:
7. Run unit tests in the browser:
Open cookbook/qunit.html in a browser. Open cookbook/qunit.html in a browser.

8. Run unit tests with Rhino: 8. Run unit tests with Rhino:
./funcunit/run envjs cookbook/qunit.html ./funcunit/run envjs cookbook/qunit.html

11. Compress app: 11. Compress app:
./steal/js cookbook/scripts/build.js ./steal/js cookbook/scripts/build.js

12. Turn on production mode in callcenter.html and reload page: 12. Turn on production mode in callcenter.html and reload page:
src='../steal/steal.production.js?cookbook' src='../steal/steal.production.js?cookbook'

13. Generate docs: 13. Generate docs:
./steal/js cookbook/scripts/doc.js ./steal/js cookbook/scripts/doc.js

14. View docs:
14. View docs:
Open cookbook/docs.html. Open cookbook/docs.html.
2 changes: 1 addition & 1 deletion steal
Submodule steal updated from 27df5c to 4d603b
12 changes: 1 addition & 11 deletions stealconfig.js
@@ -1,18 +1,8 @@
steal.config({ steal.config({
map: { map: {
"*": { "*": {
'jquery/jquery.js' : "jquery", 'jquery/jquery.js' : "can/util/jquery/jquery.1.7.1.js",
"can/util/util.js": "can/util/jquery/jquery.js" "can/util/util.js": "can/util/jquery/jquery.js"
} }
},
paths: {
"jquery": "can/util/jquery/jquery.1.7.1.js"
},
ext: {
js: "js",
css: "css",
less: "steal/less/less.js",
coffee: "steal/coffee/coffee.js",
ejs: "can/view/ejs/ejs.js"
} }
}); });

0 comments on commit 381a0ee

Please sign in to comment.