jaffa
jaffa

Reputation: 27350

How do I create a production build/minified scripts for Sencha Touch app?

There doesn't seem to be documentation on how to build a production mode app for ST2 using Sencha Cmd utility on their web site anywhere. Can anyone point me in the right direction?

Upvotes: 2

Views: 9602

Answers (2)

flip321
flip321

Reputation: 43

Here's the building documentation but which seems to be outdated: http://docs.sencha.com/touch/2.2.0/#!/guide/building

@Eli is it still necessary to create the JSB file first which checks which classes are needed? In the Sencha Doc it says thats needed and should be done like this:

sencha create jsb -a index.html -p app.jsb3

and then the the app will be built from it:

sencha build -p app.jsb3 -d ./

Does anyone know whether the JSB-step is necessary? I'm on Sencha Touch 2.2.0

Upvotes: 0

Eli
Eli

Reputation: 14827

There is no difference in command to build your app between SDK Tools and Sencha Cmd:

To build your app for testing:

sencha app build testing

To build your app for production deployment:

sencha app build production

To package your application for distribution on App Stores:

sencha app build native

Upvotes: 11

Related Questions