AppyJS is a javascript application launcher that allows you to manage multiple versions of your javascript application and makes it easy to work on a development version alongside a production version.
- Place each of the different versions of your app in their own folder, and place all of these folders together in a folder.
- In the AppyJS
builds.json
file...
- Change
buildsPath
to point to your folder containing all the different versions of your app. - Add all your different app versions in the
builds
array using the format shown in the samplebuilds.json
.- Make sure to increment
buildNumber
for each version!
- Make sure to increment
- Change
release
anddevelopment
values to the build number of the version you wish to use for the corresponding stage.- You may also add your own development stages here.
- Load the
appy.js
script.
- Execute js code to start application
var appy = new AppyJS(function() {
// Set target application stage
appy.setTargetByStage("release");
// To set target application by build number:
// appy.setTargetByBuild(1); [where 1= build number of target app]
// Start application
appy.start();
});