Use the Sencha Cmd webserver?

Posted on in Environment Ext JS Sencha Sencha Touch

Did you know, that you can run a local server with Sencha Cmd (Sencha Command line tools)?
Sencha Cmd 3.1.* has a build in Jetty 8.1.7 web server. You can start it in your command line.

Start your HTTP file server:

sencha fs web -p 80 start -map /path/to/webroot/

While running open a new command prompt / terminal window, for using Sencha Cmd (or to stop it.)

Stop your HTTP file server:

sencha fs web -p 80 stop

Mac OSX: How to install JSHint to the commandline / Sublime Text with Node

Posted on in Environment Sublime Text

Install Node:
http://nodejs.org/download/
Download the Mac OS X package, and install it. Test by opening up a Terminal and typing "node -v". It should say something like "v0.8.11" or higher.

Install NPM (package manager)
https://npmjs.org/

curl http://npmjs.org/install.sh | sh

Install JSHint via NPM

sudo npm -g install jshint

To have JSHint installed in Sublime, use the package control and install the following packages:

http://wbond.net/sublime_packages/package_control/installation

CTRL/CMD + SHIFT + P > Package Control : Install Packages > Sublime JSHINT
https://github.com/uipoet/sublime-jshint
CTRL/CMD + SHIFT + P > Package Control : Install Packages > SublimeLinter
https://github.com/SublimeLinter/SublimeLinter
CTRL/CMD + SHIFT + P > Package Control : Install Packages > Sublime On Save Build
https://github.com/alexnj/SublimeOnSaveBuild
CTRL/CMD + SHIFT + P > Package Control: Install Packages > Detect Syntax
https://github.com/phillipkoebbe/DetectSyntax