Getting started from Mojo to Enyo can be quite disappointing. Looking at the Tutorial from HP, it is pretty hard and despite searching over the internet, I couldn't start it until I have done an experiment myself. Hope this will help someone and please do give your comment or feedback.
From the beginning, I have generated a Basic Application called x3 from Eclipse. You can also do this using a plain text editor if you are not using any development tool.
This is the file structure of the completed x3 application. You will find the next steps in the next paragraph.
Next I have taken the original index.html and replace it with the following code. Note: The folder containing enyo.js must be a folder in your computer and this is an example of the SDK installed on Debian. If you are using Windows or Mac, I am sure you can enter similar information. I have put mine as follow.
Next, I had a look at appinfo.json and added a new row "uiRevision".
"vendor": "Petkatan Development",
Then, I have created a new file called depends.js which will contain the following.
In the x3.js, I just put a simple control which will be rendered at run-time, as follow.
Once it is completed, I will then package the IPK for deployment to the TouchPad emulator. In the command-line, type the following:
It will then generate com.petkatandevelopment.x3_1.0.0_all.ipk in my current folder.
Next, I will install the package to the emulator:
You will see a sample of the app in the emulator:
When you launch this x3 app, you will see the following: