@maccesar/titools 2.2.4 → 2.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/README.md +23 -23
  2. package/lib/commands/update.js +4 -12
  3. package/package.json +1 -1
  4. package/skills/alloy-guides/SKILL.md +31 -31
  5. package/skills/alloy-guides/references/CONCEPTS.md +3 -3
  6. package/skills/alloy-guides/references/CONTROLLERS.md +1 -1
  7. package/skills/alloy-guides/references/MODELS.md +6 -6
  8. package/skills/alloy-guides/references/VIEWS_WITHOUT_CONTROLLERS.md +1 -1
  9. package/skills/alloy-guides/references/VIEWS_XML.md +1 -1
  10. package/skills/alloy-guides/references/WIDGETS.md +1 -1
  11. package/skills/alloy-howtos/SKILL.md +27 -27
  12. package/skills/alloy-howtos/references/best_practices.md +9 -9
  13. package/skills/alloy-howtos/references/cli_reference.md +14 -14
  14. package/skills/alloy-howtos/references/config_files.md +16 -16
  15. package/skills/alloy-howtos/references/custom_tags.md +16 -16
  16. package/skills/alloy-howtos/references/debugging_troubleshooting.md +11 -15
  17. package/skills/alloy-howtos/references/samples.md +19 -19
  18. package/skills/purgetss/SKILL.md +11 -1
  19. package/skills/purgetss/references/animation-system.md +1 -1
  20. package/skills/purgetss/references/cli-commands.md +3 -3
  21. package/skills/purgetss/references/customization-deep-dive.md +1 -1
  22. package/skills/purgetss/references/dynamic-component-creation.md +1 -1
  23. package/skills/purgetss/references/icon-fonts.md +4 -0
  24. package/skills/purgetss/references/installation-setup.md +8 -1
  25. package/skills/purgetss/references/migration-guide.md +4 -0
  26. package/skills/purgetss/references/tikit-components.md +193 -204
  27. package/skills/purgetss/references/ui-ux-design.md +1 -1
  28. package/skills/ti-expert/SKILL.md +78 -118
  29. package/skills/ti-expert/references/alloy-builtins.md +18 -18
  30. package/skills/ti-expert/references/alloy-structure.md +21 -21
  31. package/skills/ti-expert/references/anti-patterns.md +15 -15
  32. package/skills/ti-expert/references/cli-expert.md +15 -15
  33. package/skills/ti-expert/references/code-conventions.md +38 -38
  34. package/skills/ti-expert/references/contracts.md +8 -8
  35. package/skills/ti-expert/references/controller-patterns.md +14 -14
  36. package/skills/ti-expert/references/error-handling.md +11 -11
  37. package/skills/ti-expert/references/examples.md +12 -12
  38. package/skills/ti-expert/references/migration-patterns.md +24 -24
  39. package/skills/ti-expert/references/patterns.md +10 -10
  40. package/skills/ti-expert/references/performance-listview.md +16 -16
  41. package/skills/ti-expert/references/performance-optimization.md +41 -41
  42. package/skills/ti-expert/references/security-device.md +22 -22
  43. package/skills/ti-expert/references/security-fundamentals.md +19 -19
  44. package/skills/ti-expert/references/state-management.md +33 -33
  45. package/skills/ti-expert/references/testing-e2e-ci.md +25 -25
  46. package/skills/ti-expert/references/testing-unit.md +24 -24
  47. package/skills/ti-expert/references/theming.md +15 -15
  48. package/skills/ti-guides/SKILL.md +58 -60
  49. package/skills/ti-guides/references/advanced-data-and-images.md +33 -33
  50. package/skills/ti-guides/references/android-manifest.md +15 -15
  51. package/skills/ti-guides/references/app-distribution.md +70 -166
  52. package/skills/ti-guides/references/application-frameworks.md +96 -114
  53. package/skills/ti-guides/references/cli-reference.md +294 -294
  54. package/skills/ti-guides/references/coding-best-practices.md +42 -33
  55. package/skills/ti-guides/references/commonjs-advanced.md +57 -51
  56. package/skills/ti-guides/references/hello-world.md +36 -36
  57. package/skills/ti-guides/references/hyperloop-native-access.md +66 -66
  58. package/skills/ti-guides/references/javascript-primer.md +83 -101
  59. package/skills/ti-guides/references/reserved-words.md +9 -9
  60. package/skills/ti-guides/references/resources.md +75 -83
  61. package/skills/ti-guides/references/style-and-conventions.md +35 -28
  62. package/skills/ti-guides/references/tiapp-config.md +110 -74
  63. package/skills/ti-howtos/SKILL.md +88 -92
  64. package/skills/ti-howtos/references/android-platform-deep-dives.md +104 -104
  65. package/skills/ti-howtos/references/automation-fastlane-appium.md +39 -39
  66. package/skills/ti-howtos/references/buffer-codec-streams.md +60 -60
  67. package/skills/ti-howtos/references/cross-platform-development.md +115 -136
  68. package/skills/ti-howtos/references/debugging-profiling.md +167 -181
  69. package/skills/ti-howtos/references/extending-titanium.md +121 -121
  70. package/skills/ti-howtos/references/google-maps-v2.md +84 -82
  71. package/skills/ti-howtos/references/ios-map-kit.md +65 -60
  72. package/skills/ti-howtos/references/ios-platform-deep-dives.md +123 -123
  73. package/skills/ti-howtos/references/local-data-sources.md +79 -78
  74. package/skills/ti-howtos/references/location-and-maps.md +116 -120
  75. package/skills/ti-howtos/references/media-apis.md +87 -86
  76. package/skills/ti-howtos/references/notification-services.md +250 -260
  77. package/skills/ti-howtos/references/remote-data-sources.md +98 -93
  78. package/skills/ti-howtos/references/tutorials.md +226 -216
  79. package/skills/ti-howtos/references/using-modules.md +73 -102
  80. package/skills/ti-howtos/references/web-content-integration.md +101 -103
  81. package/skills/ti-howtos/references/webpack-build-pipeline.md +52 -44
  82. package/skills/ti-ui/SKILL.md +85 -85
  83. package/skills/ti-ui/references/accessibility-deep-dive.md +57 -57
  84. package/skills/ti-ui/references/animation-and-matrices.md +79 -79
  85. package/skills/ti-ui/references/application-structures.md +96 -99
  86. package/skills/ti-ui/references/custom-fonts-styling.md +99 -99
  87. package/skills/ti-ui/references/event-handling.md +58 -58
  88. package/skills/ti-ui/references/gestures.md +62 -64
  89. package/skills/ti-ui/references/icons-and-splash-screens.md +88 -88
  90. package/skills/ti-ui/references/layouts-and-positioning.md +87 -97
  91. package/skills/ti-ui/references/listviews-and-performance.md +107 -107
  92. package/skills/ti-ui/references/orientation.md +87 -88
  93. package/skills/ti-ui/references/platform-ui-android.md +87 -81
  94. package/skills/ti-ui/references/platform-ui-ios.md +63 -61
  95. package/skills/ti-ui/references/scrolling-views.md +29 -29
  96. package/skills/ti-ui/references/tableviews.md +56 -56
@@ -1,129 +1,121 @@
1
- # Titanium Resources
1
+ # Titanium resources
2
2
 
3
3
  Community resources, support channels, tools, and learning materials for Titanium developers.
4
4
 
5
- 1. [Developer Support](#developer-support)
6
- 2. [Example Code](#example-code)
7
- 3. [Community Modules](#community-modules)
8
- 4. [Social Media](#social-media)
9
- 5. [Learning Resources](#learning-resources)
5
+ ## Developer support
10
6
 
11
- ---
12
-
13
- ## Developer Support
14
-
15
- ### Official Channels
7
+ ### Official channels
16
8
 
17
- - **[GitHub Discussions](https://github.com/tidev/titanium-sdk/discussions)** - Post questions and get help from the community
18
- - **[Slack](https://tidev.slack.com/)** - Titanium SDK Community Slack (help, jobs, announcements)
9
+ - GitHub Discussions: https://github.com/tidev/titanium-sdk/discussions
10
+ - Slack: https://tidev.slack.com/
19
11
  - Join at: https://tidev.slack.com/
20
12
  - Channels for help, modules, announcements, and more
21
13
 
22
- ### Module Resources
14
+ ### Module resources
23
15
 
24
- - **[Module Search](https://modules.titaniumsdk.com/)** - Search for Titanium modules
25
- - **[Ti.Utils](https://github.com/TimanMax/Ti.Utils)** - Collection of utilities
26
- - **[From Zero to App](https://fromzerotoapp.com/)** - Tutorials and modules
16
+ - Module Search: https://modules.titaniumsdk.com/
17
+ - Ti.Utils: https://github.com/TimanMax/Ti.Utils
18
+ - From Zero to App: https://fromzerotoapp.com/
27
19
 
28
20
  ### Documentation
29
21
 
30
- - **[Titanium SDK Docs](https://titaniumsdk.com/)** - Official API documentation
31
- - **[Alloy Framework Docs](https://titaniumsdk.com/guide/Alloy_Framework/)** - Alloy MVC framework guide
32
- - **[This Skill (ti-guides)](../SKILL.md)** - Best practices and architecture
22
+ - Titanium SDK Docs: https://titaniumsdk.com/
23
+ - Alloy Framework Docs: https://titaniumsdk.com/guide/Alloy_Framework/
24
+ - This skill (`ti-guides`): `../SKILL.md`
33
25
 
34
26
  ---
35
27
 
36
- ## Example Code
28
+ ## Example code
37
29
 
38
- ### Official Repositories
30
+ ### Official repositories
39
31
 
40
- - **[tidev on GitHub](https://github.com/tidev)** - Titanium source code, modules, and sample apps
41
- - **[titanium-mobile](https://github.com/tidev/titanium-mobile)** - Titanium SDK source
42
- - **[titanium-cli](https://github.com/tidev/titanium-cli)** - Titanium CLI
43
- - **[titanium-code-processor](https://github.com/tidev/titanium-code-processor)** - Code processor for Alloy
32
+ - tidev on GitHub: https://github.com/tidev
33
+ - titanium-mobile: https://github.com/tidev/titanium-mobile
34
+ - titanium-cli: https://github.com/tidev/titanium-cli
35
+ - titanium-code-processor: https://github.com/tidev/titanium-code-processor
44
36
 
45
- ### Sample Applications
37
+ ### Sample applications
46
38
 
47
- - **[Ti.Bluetooth](https://github.com/mwaylabs/ti.bluetooth)** - Bluetooth LE module
48
- - **[Ti.Map](https://github.com/tidev/ti.map)** - Native maps module
49
- - **[KitchenSink](https://github.com/tidev/KitchenSink)** - Comprehensive API examples
39
+ - Ti.Bluetooth: https://github.com/mwaylabs/ti.bluetooth
40
+ - Ti.Map: https://github.com/tidev/ti.map
41
+ - KitchenSink: https://github.com/tidev/KitchenSink
50
42
 
51
- ### Community Projects
43
+ ### Community projects
52
44
 
53
- Search GitHub for "titanium" to find thousands of open source modules and apps.
45
+ Search GitHub for "titanium" to find open source modules and apps.
54
46
 
55
47
  ---
56
48
 
57
- ## Community Modules
49
+ ## Community modules
58
50
 
59
- ### Finding Modules
51
+ ### Finding modules
60
52
 
61
- 1. **[Module Search](https://modules.titaniumsdk.com/)** - Official module registry
62
- 2. **[npm](https://www.npmjs.com/search?q=titanium)** - NPM packages for Titanium
63
- 3. **[GitHub](https://github.com/search?q=titanium+module)** - Search GitHub
53
+ 1. Module Search: https://modules.titaniumsdk.com/
54
+ 2. npm: https://www.npmjs.com/search?q=titanium
55
+ 3. GitHub search: https://github.com/search?q=titanium+module
64
56
 
65
- ### Creating Modules
57
+ ### Creating modules
66
58
 
67
- See **`hyperloop-native-access.md`** for native module development:
59
+ See `hyperloop-native-access.md` for native module development:
68
60
  - Android modules (Java/Kotlin)
69
61
  - iOS modules (Objective-C/Swift)
70
62
  - Module packaging and distribution
71
63
 
72
- ### Popular Modules
64
+ ### Popular modules
73
65
 
74
- - **ti.map** - Native maps (iOS & Android)
75
- - **ti.admob** - AdMob ads
76
- - **ti.imagefactory** - Image processing
77
- - **ti.facebook** - Facebook integration
78
- - **ti.media** - Extended media APIs
66
+ - ti.map: native maps (iOS and Android)
67
+ - ti.admob: AdMob ads
68
+ - ti.imagefactory: image processing
69
+ - ti.facebook: Facebook integration
70
+ - ti.media: extended media APIs
79
71
 
80
72
  ---
81
73
 
82
- ## Social Media
74
+ ## Social media
83
75
 
84
- ### Official Accounts
76
+ ### Official accounts
85
77
 
86
- - **Bluesky:** [@titaniumsdk.com](https://bsky.app/profile/titaniumsdk.com) - SDK and CLI updates
87
- - **X (Twitter):**
88
- - [@tidevio](https://x.com/tidevio) - Foundation account
89
- - [@TitaniumSDK](https://x.com/TitaniumSDK) - SDK updates
78
+ - Bluesky: https://bsky.app/profile/titaniumsdk.com
79
+ - X (Twitter):
80
+ - https://x.com/tidevio
81
+ - https://x.com/TitaniumSDK
90
82
 
91
83
  ### Community
92
84
 
93
- - **[r/titanium](https://www.reddit.com/r/titanium/)** - Reddit community
94
- - **[Stack Overflow](https://stackoverflow.com/questions/tagged/titanium)** - Q&A
85
+ - Reddit: https://www.reddit.com/r/titanium/
86
+ - Stack Overflow: https://stackoverflow.com/questions/tagged/titanium
95
87
 
96
88
  ---
97
89
 
98
- ## Learning Resources
90
+ ## Learning resources
99
91
 
100
- ### Getting Started
92
+ ### Getting started
101
93
 
102
- 1. **Hello World** - See `hello-world.md` in this skill
103
- 2. **JavaScript Primer** - See `javascript-primer.md` in this skill
104
- 3. **Alloy Framework** - See `alloy-guides` skill
105
- 4. **Sample Apps** - Clone and study KitchenSink
94
+ 1. Hello World: see `hello-world.md` in this skill
95
+ 2. JavaScript Primer: see `javascript-primer.md` in this skill
96
+ 3. Alloy Framework: see the `alloy-guides` skill
97
+ 4. Sample apps: clone and study KitchenSink
106
98
 
107
- ### Books and Guides
99
+ ### Books and guides
108
100
 
109
- - **Titanium Up & Running** - Build native apps with JavaScript
110
- - **Titanium Pocket Reference** - Quick API guide
111
- - **Alloy Guides** - Official Alloy framework documentation
101
+ - Titanium Up & Running
102
+ - Titanium Pocket Reference
103
+ - Alloy Guides (official Alloy framework documentation)
112
104
 
113
- ### Video Tutorials
105
+ ### Video tutorials
114
106
 
115
- - **[From Zero to App](https://fromzerotoapp.com/)** - Video tutorials
116
- - **[YouTube](https://www.youtube.com/results?search_query=titanium+mobile)** - Community tutorials
107
+ - From Zero to App: https://fromzerotoapp.com/
108
+ - YouTube results: https://www.youtube.com/results?search_query=titanium+mobile
117
109
 
118
110
  ---
119
111
 
120
112
  ## Tools and IDEs
121
113
 
122
- ### IDE Support
114
+ ### IDE support
123
115
 
124
- - **[VS Code](https://code.visualstudio.com/)** - With Titanium extensions
116
+ - VS Code: https://code.visualstudio.com/ (with Titanium extensions)
125
117
 
126
- ### CLI Tools
118
+ ### CLI tools
127
119
 
128
120
  ```bash
129
121
  # Create new project
@@ -139,35 +131,35 @@ ti build -p android
139
131
  ti build -T device
140
132
  ```
141
133
 
142
- See **`cli-reference.md`** for complete CLI documentation.
134
+ See `cli-reference.md` for complete CLI documentation.
143
135
 
144
136
  ---
145
137
 
146
138
  ## Contributing
147
139
 
148
- ### Report Bugs
140
+ ### Report bugs
149
141
 
150
- - **[GitHub Issues](https://github.com/tidev/titanium-sdk/issues)** - Bug reports
151
- - **[JIRA Archive](https://github.com/tidev/jira-archive)** - Legacy issue tracker (Appcelerator)
142
+ - GitHub Issues: https://github.com/tidev/titanium-sdk/issues
143
+ - JIRA Archive: https://github.com/tidev/jira-archive
152
144
 
153
- ### Contribute Code
145
+ ### Contribute code
154
146
 
155
- - **[Pull Request Guide](https://github.com/tidev/titanium-mobile/blob/master/CONTRIBUTING.md)** - Contributing guidelines
156
- - Follow coding standards (see **`style-and-conventions.md`**)
147
+ - Pull Request Guide: https://github.com/tidev/titanium-mobile/blob/master/CONTRIBUTING.md
148
+ - Follow coding standards in `style-and-conventions.md`
157
149
 
158
150
  ---
159
151
 
160
- ## Best Practices for Getting Help
152
+ ## Best practices for getting help
161
153
 
162
- 1. **Search first** - Check docs, GitHub issues, Stack Overflow
163
- 2. **Be specific** - Include code, error messages, platform info
164
- 3. **Provide minimal reproducible example** - Isolate the problem
165
- 4. **Use Slack for quick questions** - GitHub Discussions for deeper discussions
166
- 5. **Give back** - Help others when you can
154
+ 1. Search first: check docs, GitHub issues, Stack Overflow.
155
+ 2. Be specific: include code, error messages, and platform info.
156
+ 3. Provide a minimal reproducible example.
157
+ 4. Use Slack for quick questions and GitHub Discussions for longer threads.
158
+ 5. Give back when you can.
167
159
 
168
160
  ---
169
161
 
170
- ## Resource Checklist
162
+ ## Resource checklist
171
163
 
172
164
  For new Titanium developers:
173
165
 
@@ -1,21 +1,24 @@
1
- # Style and Conventions Reference
1
+ # Style and conventions reference
2
2
 
3
- ## 1. Naming Conventions
4
- - **Variables**: `nounCategory` (e.g., `personName`, `buttonSubmit`).
5
- - **Functions**: `verbCategory` (e.g., `getPersonName`, `doSync`).
6
- - **Classes/Constructors**: `PascalCase` (e.g., `User`, `NetClient`).
7
- - **Factories**: Prefix with `create` (e.g., `createWidget`).
8
- - **Namespaces**: Use capitalized words (e.g., `App.UI.Widget`, `App.Network.Request`). Avoid lowercase for major namespaces (e.g., use `App.UI` instead of `app.ui`).
9
- - **Hungarian Notation**: Titanium SDK does not support the use of Hungarian Notation.
3
+ ## 1. Naming conventions
10
4
 
11
- ## 2. Language Rules
12
- - **Semicolons**: Always use semicolons to terminate statements. This is mandatory in official SDK guides, but **omitted** in the `ti-expert` standard (let ASI handle it).
13
- - **`this` keyword**: Use `this` with extreme care, as it sometimes doesn't refer to the object you expect.
5
+ - Variables: `nounCategory` (for example, `personName`, `buttonSubmit`).
6
+ - Functions: `verbCategory` (for example, `getPersonName`, `doSync`).
7
+ - Classes/constructors: `PascalCase` (for example, `User`, `NetClient`).
8
+ - Factories: prefix with `create` (for example, `createWidget`).
9
+ - Namespaces: use capitalized words (for example, `App.UI.Widget`, `App.Network.Request`). Avoid lowercase for major namespaces (use `App.UI`, not `app.ui`).
10
+ - Hungarian notation: not supported by the Titanium SDK.
11
+
12
+ ## 2. Language rules
13
+
14
+ - Semicolons: official SDK guides require semicolons, but the `ti-expert` standard omits them and lets ASI handle it.
15
+ - `this` keyword: use with care. It may not refer to the object you expect.
14
16
 
15
17
  ## 3. Formatting
16
- - **Indentation**: Both K&R/1TBS and Allman styles are acceptable. Consistency is most important — never mix styles in the same project.
18
+
19
+ - Indentation: both K&R/1TBS and Allman styles are acceptable. Consistency matters. Do not mix styles in the same project.
17
20
  ```javascript
18
- // K&R/1TBS Style
21
+ // K&R/1TBS style
19
22
  if (x < 10) {
20
23
  if (y > 10) {
21
24
  // do this
@@ -25,7 +28,7 @@ if (x < 10) {
25
28
  }
26
29
  ```
27
30
  ```javascript
28
- // Allman Style
31
+ // Allman style
29
32
  if (x < 10)
30
33
  {
31
34
  if (y > 10)
@@ -38,28 +41,29 @@ else
38
41
  // do this
39
42
  }
40
43
  ```
41
- - **Operators**: Add a single space around operators.
44
+ - Operators: add a single space around operators.
42
45
  ```javascript
43
46
  const fullName = firstName + ' ' + lastName
44
47
  ```
45
48
 
46
- **CRITICAL: Return Statement Placement**
47
- Never put `return` on its own line followed by an object literal. JavaScript will insert a semicolon automatically, returning `undefined`.
49
+ Return statement placement:
50
+ Do not put `return` on its own line followed by an object literal. JavaScript will insert a semicolon automatically and return `undefined`.
48
51
  ```javascript
49
- // ❌ WRONG
52
+ // Wrong
50
53
  return
51
54
  {
52
55
  foo: 'bar'
53
56
  }
54
57
 
55
- // ✅ CORRECT
58
+ // Correct
56
59
  return {
57
60
  foo: 'bar'
58
61
  }
59
62
  ```
60
63
 
61
- ## 4. Control Statements
62
- - Switch statements should have a single space before the opening parenthesis and a single space after the closing parenthesis. Switch content is indented with one tab; content in each case is indented one tab as well.
64
+ ## 4. Control statements
65
+
66
+ Switch statements should have a single space before the opening parenthesis and a single space after the closing parenthesis. Switch content is indented with one tab; content in each case is indented one tab as well.
63
67
  ```javascript
64
68
  switch (someTest) {
65
69
  case 1:
@@ -73,13 +77,15 @@ switch (someTest) {
73
77
  }
74
78
  ```
75
79
 
76
- ## 5. Primitive Types
77
- - Avoid using primitive type object constructors (e.g., `new String()`).
78
- - Use template literals or single space concatenation.
80
+ ## 5. Primitive types
79
81
 
80
- ## 6. Comments and Documentation
81
- - **Single-line comments**: Required to reduce programmer error. Inline statement comments should be used at a minimum or not at all.
82
- - **JSDoc/Block comments**: Required for documenting functions and classes.
82
+ - Avoid using primitive type object constructors (for example, `new String()`).
83
+ - Use template literals or single-space concatenation.
84
+
85
+ ## 6. Comments and documentation
86
+
87
+ - Single-line comments: required to reduce programmer error. Inline statement comments should be used at a minimum or not at all.
88
+ - JSDoc/block comments: required for documenting functions and classes.
83
89
  ```javascript
84
90
  // Calculate position using initial
85
91
  // and offset x coordinates.
@@ -92,5 +98,6 @@ function getCustomer(customerName) {}
92
98
  ```
93
99
 
94
100
  ## 7. References
101
+
95
102
  - Douglas Crockford's JavaScript Code Conventions
96
- - Google's JavaScript Style Guide (https://google.github.io/styleguide/jsguide.html)
103
+ - Google's JavaScript Style Guide: https://google.github.io/styleguide/jsguide.html