Migration from Jet 0.x
- Create a new
webix-jet
app using:
mkdir new-app // this will be your new application folder when migration is finished.
cd new-app
wjet init
npm install
- In your original app, create the sources folder and move all the dev files there ( app.js, models/, views/, helpers/, etc. ).
- Copy the
app.js
file fromnew-app
you created above to thesources
folder. If you have any custom code in your originalapp.js
then copy that in the newerapp.js
too. - Copy the
sources
folder to thenew-app
. - Make sure that there is the locales folder with you localization files in
new-app
. Check this repo for example. - run the app.
npm start
- open the app at localhost:8080.
- If you get
can not resolve
error in webpack, make sure you add the alias and the path to the lib in question in webpack.config.js. Check the docs. - If something else goes wrong, use the starter jet repo as the base for migration and replace the sources folder as above.
Jet 1.x can recognize old configuration objects and use them correctly, so you will not need to change anything in a common case. There are still some scenarios when you will need to change the code:
Change object to JetView-based class and use
this.app
instead of app
.Change object to JetView and use
this.getService('locale')
instead of locale
.