Skip to content

Scripts to help you upgrade to new versions of CanJS

Notifications You must be signed in to change notification settings

chasenlehara/can-upgrade

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

can-upgrade

Install

npm install can-upgrade

Usage

To upgrade your templates to the latest template engine (mustache -> stache) with the latest binding syntax, just run this command:

./node_modules/.bin/can-upgrade ./ --new-binding-syntax

This script does most of the tedious work for you and minimizes the upgrade effort!

However, it does not make changes to templates written inline in your JavaScript. A list of files that should be checked manually is also provided.

If you rather perform these upgrades in smaller separate steps, that's fine, too:

./node_modules/.bin/can-upgrade ./ # upgrade *.mustache -> *.stache
# diff changes, run tests, commit, continue
./node_modules/.bin/can-upgrade ./ --new-binding-syntax
# diff changes, run tests, commit, take victory lap

About

Scripts to help you upgrade to new versions of CanJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%