> git clone git://github.com/peterwmwong/tatotime-mobile.git
> cd tatotime-mobile/src
-- Open new terminal --
> make dev-server
In a browser, visit http://localhost:3000/index-dev.html?mock-service=true
.
It's JUST for live.js and Chrome. live.js uses XHR to automatically reload JavaScript and CSS, Chrome does not allow XHR over the
file://
protocol (issue 41024).
-- Open new terminal --
> make dev-stylus
-- Open new terminal --
> make dev-coffee
This will compile .styl
to .css
and .coffee
to .js
.
File changes will automatically be recompiled.
No need to Alt-Tab
and F5
. Cool, yah?
Thank you live.js!
> make clean; make
In a browser, visit http://localhost:3000/?mock-service=true
.
All AMD Modules (JS) and CSS relevant for a page load are concatenated and minified into bootstrap.js
and bootstrap.css
.
How? You might think this is a nightmare to maintain (giant-whitelist-of-doom), but it's not. One require.js command and Cell plugin handles all the tracing of dependencies and packaging. Check out the Makefile target that gets it done.
Haven't tried, but should work with Node v5.X with the same steps above...
- Sublime Text 2
- Use the TextMate bundles below
- Vim or MacVim
- TextMate
- Stylus TextMate Bundle
- The
Stylus.tmbundle
directory can be found in tatotime-mobile here:{tatotime-mobile Project Directory}/node_modules/stylus/editors
- The
- CoffeeScript TextMate Bundle
- Stylus TextMate Bundle