Helper scripts for upgrading from JMVC 3.1 to 3.2
JavaScript Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
jsshaper @ e4cb5b4

A JS Shaper based script for helping upgrade from JavaScriptMVC 3.1 to JavaScriptMVC 3.2.

Changing all of your steals can be very error prone, so this script tries to do the mudance parts for you. You will probably still discover dependency ordering issues and other pitfalls that were not apparent with the previous version of steal.


First, be sure you're in the right directory and that your code is safelt checked in to version control.

./ /path/to/your/jmvc/app


jmvc-upgrader.js assumes you are using the mustache plugin for your views. Since you're probably not, change VIEW and VIEW_STEAL to whatever you need (probably ejs and jquery/view/ejs.) will process every .js file outside of the core JMVC directories. If you want to exclude a directory, add a line following the example in the script.

Common Problems

Everything is broken!

Most likely, you didn't declare all of your dependencies in all of your files. The new steal is very, very parallel, so some of your stuff is going to break that worked before. The upgrade script probably had nothing to do with it.

The script wont run (something about narcisus or jsshaper)

You probably didn't init the submodules. jsshaper is a submodule and it has its own submodules, so you may need to init and update both this project and jsshaper.