OscarGodson/EpicEditor — pull request #44 by johnmdonahue (2012-03-07 21:48:15+00:00)
Title: Makefile Build and JSHint Refactor

Before going too far into the tests/API update, I thought I'd give this a whirl. This works with the existing API and should be useful down the line for handling versioning and creating easy to download zips (`epiceditor.zip`).

Currently the JSHint config is pretty strict but, with the exception of whitespace and some `===`, it seemed to fall in line with the existing code style. I figured its easier to loosen the requirements starting from a stricter point than vice versa, so if the it's too opinionated for your tastes it should just be matter of toggling a few things off (whitespace, eqnull come to mind).

The Makefile relies on JSHint and UglifyJS for minification. Both of these are simple installs from npm, but let me know if a NodeJS/npm requirement is an issue here. Also there are some notes in the Makefile concerning linting of the fullscreen and showdown modules - I was thinking it might make sense to pull in your `EpicEditor-Flavored-Markdown` as a git-submodule.

For reference: the existing build of epiceditor.js weighs in at 37K and the new build creates an unminified 40K file and minified of 23K.

I'm open to any modifications, suggestions, or cherry-picking here. Unfortunately, I won't have a lot of time to jump back on it until next week.

Let me know your thoughts.

PS: This pull request written using the current build. ;)