New Makefile

10 views
Skip to first unread message

John Wiseman

unread,
Dec 28, 2012, 12:52:29 AM12/28/12
to mave...@googlegroups.com
I've added a Makefile to handle some things (some of which are new things):

$ make lint

Lints the javascript code using gjslint and jshint.

$ make lintfix

Fixes some lint issues automatically with fixjsstyle.

$ make deps

Generates mavelous-deps.js, required for the uncompiled mavelous code.

$ make

1. Downloads the closure compiler if necessary into .tools; 2. Generates mavelous-deps.js; 3. Compiles mavelous with closure to create mavelous.min.js; 4. Renders index.tmpl (a Jinja template) into two HTML files: index.html, which uses the uncompiled mavelous code, and index_compiled.html, which uses the compiled mavelous code.

http://localhost:9999/index.html will run the uncompiled code, and http://localhost:9999/index_compiled.html will run the compiled code.

I still haven't gotten the code running with closure's ADVANCED_OPTIMIZATIONS so mavelous.min.js uses SIMPLE_OPTIMIZATIONS.


John


P.S. Happy holidays!


Reply all
Reply to author
Forward
0 new messages