Building a standalone JavaScriptMVC controller.js
January 28, 2019
I've been doing a lot of work lately with a client who's using just the controller portion of JavaScriptMVC. I plan to write a more in-depth post about this while I'm traveling this week, but in the meantime, I wanted to jot down the steps to create the standalone controller.js file for my future reference. These instructions work for me on OSX 10.6.
- Go to the JavaScriptMVC downloads page on Github
- Download the latest version (3.0.0a0 as of this writing) of the framework and unzip it
- Open a terminal window and cd to the directory created when you unzipped the file
- Run
steal/js steal/compress/plugin.js jquery/controller
- You should now have a new controller.js file in the directory; you're all set!
This article is adapted from Building a standalone JavaScriptMVC controller.js and is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License.