In 3 steps, you'll have chef-client-mobile up and running in your browser from scratch.
> script/stylus-compiler
> script/coffee-compiler
This will compile .styl
to .css
and .coffee
to .js
.
File changes will automatically be recompiled.
If you encounter SSL problems installing npm modules then tell npm to default to http by setting up a .npmrc: > echo "registry = http://registry.npmjs.org/" >> ~/.npmrc
> script/server
In a browser, visit http://localhost:3000/index-dev.html
.
> make specs
If the server isn't running...
> script/server
Visit [http://localhost:3000/spec-runner/index.html]
> script/stylus-compiler
> script/coffee-compiler
> make clean; make
> make specs
In a browser, go to http://localhost:3000/spec-runner/.
> script/server
In a browser, go to http://localhost:3000 and spotcheck functionality hasn't regressed.
[https://github.com/jashkenas/coffee-script-tmbundle]
Extract it in "~/Library/Application\ Support/Sublime\ Text\ 2/Packages"
This will show CoffeeeScript syntax errors in the editor. More information is available at [https://github.com/lunixbochs/sublimelint].
Note: the coffee command needs to be in your path for the the SublimeLinter to work with CoffeeScript.
Note #2: the jsl command needs to be installed for the SublimeLinter to work
with JavaScript. Install using brew install jsl
> cp -R node_modules/stylus/editors/Stylus.tmbundle "~/Library/Application\ Support/Sublime\ Text\ 2/Packages"
Simulates the service, loads mock data from mock-resources.coffee