#dojo-coffeescript-jquery-boilerplate
The dojo-coffeescript-jquery-boilerplate is aimed at the best practice for the develop enviroment with dojo for baseframework, jquery for dom operation, and coffeescript as languages.
dojo-coffeescript-jquery-boilerplate demo
##Quick Start
- Clone the repository using
git clone https://github.com/h-iwata/dojo-coffeescript-jquery-boilerplate.git. cd dojo-coffeescript-jquery-boilerplate/javascriptsfor move into the directory, then runnpm install- run
./tools/startCoffeeWatch.sh, which will compiles demo codes in./coffeeand place it into the./srcfolder. - run
node javascripts/tools/startTestServer.jsfor starting test server, then openlocalhost:3000/in your favorite browser. See how the HelloDojoButton works. - Develop your project in
./coffeeuntil it is amazing. - run
./tools/build/startBuild.sh, which will create an awesome optimised build in the./releasedirectory. - Upload
/javascripts/releaseand/javascripts/config.jsfor millions of people the world over to enjoy. - Hapyness.
##Features
- The dojo toolkit via CDN (the dojo files in your local directory are only used for build and test).
- Custormized build script from dojo-boilerplate, which build app in a release folder, delete .uncompressed files, and remove dojo local files in the directory, then rewrite config.js to remove debug mode.
- Light weight node server for test run.
- TDD!
To be optimized build, you should create a controller in a page as a main script.
In the controller, require all Widgets used in the page .
then add the controller name to /tools/build/profile.js as follows
layers: {
'App/Controllers/Index' :{},
'App/Controllers/#{createdControllerName}' :{},`
},
After build, you will see all modules required in a controller is now complessed into a single controller file. but you don't have to change any codes.
- webプログラマーのブログ
- javascript最強のフレームワーク、dojo入門&簡易チュートリアル
- クライアントサイドjavascriptのテストをしたい!そんな時はD.O.H.: Dojo Objective Harness
- node.js
- perl
Anyone is welcome.