generator-titpl v1.6.1
generator-titpl
Create Appcelerator Titanium skeleton
Installation
npm install -g generator-titpl
OR
npm update -g generator-titpl if you already have it
If you don't have yet the Yeoman tool, you should install it first :
npm install -g yo
Using
yo titpl
Then answer all questions. They are used for filling the tiapp.xml and config.json file
Questions :
- Which template do you need ? (burger, tabgroup, required)
- What's your application id (example: com.company.myapp) ? ( in tiapp.xml, required)
- What's the project name ? ( in tiapp.xml, required)
- What's the publisher name ? ( in tiapp.xml, optional)
- What's the URL for the project webpage (if any) ? ( in tiapp.xml, optional)
- Provide a short description for your app : ( in tiapp.xml, optional)
- What's the copyright name ? ( in tiapp.xml, optional)
- Which SDK would you like to use ? ( choose in the installed SDK, required)
- What's the main color for your app ? (background window color, CFG.COLORS.main value on config.json)
- What's the second color for your app ? (navbar, button color, CFG.COLORS.main2 value on config.json)
- What's the baseurl of your webservice ? (CFG.baseurl value on config.json)
At the end of the process, if you need to register the application : appc new --import --no-services
If you are not logged into Appcelerator platform : appc login
To test your application : appc run
More templates ?
If you want contribute and add your own template, you can checkout this repository : https://github.com/SquirrelMobile/template-titpl and follow instructions.
TODO
- Add more template
- Customize config.json file with fonts
- Add other library/code example like in-app purchase, Maps, Admob, wysiwyg, charts
- Enable / disable library on the fly when you create a new app
- Handle module dependancy with gittio cli
CHANGELOG
1.6.0 : 06-05-2020
- Update modules
Update lib form
1.5.0 : 03-04-2020
Use Ti.UI.Android.drawer instead modules
- Support Titanium 9.0.0
- Update geocoding in core library
- Disable Dark mode in tiapp.xml
- Update attstring library
- Update tutoriel widget
- Add ratingview library
- Add notificationbanner modules
- Add social share modules
Clean code in controller / views / styles
1.4.1 : 18-12-2019
Update DefaultIcon on template
Update readme to add more template
1.4.0 : 17-12-2019
Add prettier rules and package.json file
- Update onesignal module for iOS 13
- Update TiTouchImageView Android
- NEW : Add form generator with multiple options
- NEW : Update RESTE lib to enable request's cache
- NEW : custom alertDialog with options
NEW : Add Ti.animation with support of Lottie
1.3.0 : 22-08-2019
Update FontAwesome
- Remove Template with fake tabgroup
- Add list template with colums
- Add cache HTTP request
- Add lib to enable / disable log from config.json
- Add widget to zoom on image
Update modules to works with Ti > 8.X
1.2.2 : 28-01-2019
Update FontAwesome
- Add new Template with native tabgroup
- Add keytoolbarios controller
- Update OneSignal module
- Remove camalcase npm
Use spawnSync to ti SDK list
1.2.1 : 05-09-2018
Add av.imageview module
Change media lib to choose / take picture on profil
1.2.0 : 31-07-2018
Add refreshControl on ListView
- Add getAttributed function in core.js lib to handle attributed String
- Edit rest.js lib to support PATCH http
- Update input-materialdesign widget ti 2.0 version
- Add NSPhotoLibraryAddUsageDescription in tiapp
Add android:hardwareAccelerated="true" on tiapp for Android
1.1.1 : 02-05-2018
Add translation english / french
1.1.0 : 27-04-2018
Add backbone event to Alloy.Globals instead lib
- Add Alloy.Globals.Device in alloy.js
- Add requestLocationPermissions function in core.js lib
Add OneSignal module and lib for Push Notification
1.0.6 : 04-01-2018
Update module for Ti SDK > 7.0
1.0.5 : 27-09-2017
Add calendar widget
1.0.4 - 21-08-2017