@maccesar/titools 2.0.0

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 (120) hide show
  1. package/AGENTS-TEMPLATE.md +173 -0
  2. package/README.md +867 -0
  3. package/agents/ti-researcher.md +108 -0
  4. package/bin/titools.js +53 -0
  5. package/lib/commands/agents.js +126 -0
  6. package/lib/commands/install.js +188 -0
  7. package/lib/commands/uninstall.js +215 -0
  8. package/lib/commands/update.js +159 -0
  9. package/lib/config.js +119 -0
  10. package/lib/downloader.js +153 -0
  11. package/lib/installer.js +253 -0
  12. package/lib/platform.js +108 -0
  13. package/lib/symlink.js +142 -0
  14. package/lib/utils.js +270 -0
  15. package/package.json +67 -0
  16. package/skills/alloy-expert/SKILL.md +247 -0
  17. package/skills/alloy-expert/assets/ControllerAutoCleanup.js +182 -0
  18. package/skills/alloy-expert/references/alloy-structure.md +381 -0
  19. package/skills/alloy-expert/references/anti-patterns.md +133 -0
  20. package/skills/alloy-expert/references/code-conventions.md +469 -0
  21. package/skills/alloy-expert/references/contracts.md +280 -0
  22. package/skills/alloy-expert/references/controller-patterns.md +520 -0
  23. package/skills/alloy-expert/references/error-handling.md +484 -0
  24. package/skills/alloy-expert/references/examples.md +735 -0
  25. package/skills/alloy-expert/references/migration-patterns.md +298 -0
  26. package/skills/alloy-expert/references/patterns.md +448 -0
  27. package/skills/alloy-expert/references/performance-patterns.md +855 -0
  28. package/skills/alloy-expert/references/security-patterns.md +847 -0
  29. package/skills/alloy-expert/references/state-management.md +779 -0
  30. package/skills/alloy-expert/references/testing.md +872 -0
  31. package/skills/alloy-guides/SKILL.md +214 -0
  32. package/skills/alloy-guides/references/CLI_TASKS.md +243 -0
  33. package/skills/alloy-guides/references/CONCEPTS.md +191 -0
  34. package/skills/alloy-guides/references/CONTROLLERS.md +298 -0
  35. package/skills/alloy-guides/references/MODELS.md +1028 -0
  36. package/skills/alloy-guides/references/PURGETSS.md +56 -0
  37. package/skills/alloy-guides/references/VIEWS_DYNAMIC.md +242 -0
  38. package/skills/alloy-guides/references/VIEWS_STYLES.md +388 -0
  39. package/skills/alloy-guides/references/VIEWS_WITHOUT_CONTROLLERS.md +109 -0
  40. package/skills/alloy-guides/references/VIEWS_XML.md +558 -0
  41. package/skills/alloy-guides/references/WIDGETS.md +176 -0
  42. package/skills/alloy-howtos/SKILL.md +203 -0
  43. package/skills/alloy-howtos/references/best_practices.md +138 -0
  44. package/skills/alloy-howtos/references/cli_reference.md +253 -0
  45. package/skills/alloy-howtos/references/config_files.md +87 -0
  46. package/skills/alloy-howtos/references/custom_tags.md +147 -0
  47. package/skills/alloy-howtos/references/debugging_troubleshooting.md +101 -0
  48. package/skills/alloy-howtos/references/samples.md +167 -0
  49. package/skills/purgetss/SKILL.md +442 -0
  50. package/skills/purgetss/assets/purgetss.config.cjs +17 -0
  51. package/skills/purgetss/references/EXAMPLES.md +247 -0
  52. package/skills/purgetss/references/animation-system.md +1294 -0
  53. package/skills/purgetss/references/apply-directive.md +375 -0
  54. package/skills/purgetss/references/arbitrary-values.md +612 -0
  55. package/skills/purgetss/references/class-index.md +1350 -0
  56. package/skills/purgetss/references/cli-commands.md +948 -0
  57. package/skills/purgetss/references/configurable-properties.md +654 -0
  58. package/skills/purgetss/references/custom-rules.md +161 -0
  59. package/skills/purgetss/references/customization-deep-dive.md +722 -0
  60. package/skills/purgetss/references/dynamic-component-creation.md +489 -0
  61. package/skills/purgetss/references/grid-layout.md +455 -0
  62. package/skills/purgetss/references/icon-fonts.md +609 -0
  63. package/skills/purgetss/references/installation-setup.md +366 -0
  64. package/skills/purgetss/references/opacity-modifier.md +291 -0
  65. package/skills/purgetss/references/platform-modifiers.md +479 -0
  66. package/skills/purgetss/references/smart-mappings.md +42 -0
  67. package/skills/purgetss/references/titanium-resets.md +359 -0
  68. package/skills/purgetss/references/ui-ux-design.md +1526 -0
  69. package/skills/ti-guides/SKILL.md +94 -0
  70. package/skills/ti-guides/references/advanced-data-and-images.md +19 -0
  71. package/skills/ti-guides/references/alloy-cli-advanced.md +84 -0
  72. package/skills/ti-guides/references/alloy-data-mastery.md +29 -0
  73. package/skills/ti-guides/references/alloy-widgets-and-themes.md +19 -0
  74. package/skills/ti-guides/references/android-manifest.md +97 -0
  75. package/skills/ti-guides/references/app-distribution.md +258 -0
  76. package/skills/ti-guides/references/application-frameworks.md +377 -0
  77. package/skills/ti-guides/references/cli-reference.md +402 -0
  78. package/skills/ti-guides/references/coding-best-practices.md +102 -0
  79. package/skills/ti-guides/references/commonjs-advanced.md +134 -0
  80. package/skills/ti-guides/references/hello-world.md +100 -0
  81. package/skills/ti-guides/references/hyperloop-native-access.md +62 -0
  82. package/skills/ti-guides/references/javascript-primer.md +411 -0
  83. package/skills/ti-guides/references/reserved-words.md +36 -0
  84. package/skills/ti-guides/references/resources.md +183 -0
  85. package/skills/ti-guides/references/style-and-conventions.md +48 -0
  86. package/skills/ti-guides/references/tiapp-config.md +609 -0
  87. package/skills/ti-howtos/SKILL.md +174 -0
  88. package/skills/ti-howtos/references/android-platform-deep-dives.md +658 -0
  89. package/skills/ti-howtos/references/automation-fastlane-appium.md +95 -0
  90. package/skills/ti-howtos/references/buffer-codec-streams.md +140 -0
  91. package/skills/ti-howtos/references/cross-platform-development.md +348 -0
  92. package/skills/ti-howtos/references/debugging-profiling.md +543 -0
  93. package/skills/ti-howtos/references/extending-titanium.md +723 -0
  94. package/skills/ti-howtos/references/google-maps-v2.md +169 -0
  95. package/skills/ti-howtos/references/ios-map-kit.md +143 -0
  96. package/skills/ti-howtos/references/ios-platform-deep-dives.md +783 -0
  97. package/skills/ti-howtos/references/local-data-sources.md +301 -0
  98. package/skills/ti-howtos/references/location-and-maps.md +252 -0
  99. package/skills/ti-howtos/references/media-apis.md +210 -0
  100. package/skills/ti-howtos/references/notification-services.md +599 -0
  101. package/skills/ti-howtos/references/remote-data-sources.md +349 -0
  102. package/skills/ti-howtos/references/tutorials.md +502 -0
  103. package/skills/ti-howtos/references/using-modules.md +237 -0
  104. package/skills/ti-howtos/references/web-content-integration.md +307 -0
  105. package/skills/ti-howtos/references/webpack-build-pipeline.md +78 -0
  106. package/skills/ti-ui/SKILL.md +179 -0
  107. package/skills/ti-ui/references/accessibility-deep-dive.md +242 -0
  108. package/skills/ti-ui/references/animation-and-matrices.md +599 -0
  109. package/skills/ti-ui/references/application-structures.md +655 -0
  110. package/skills/ti-ui/references/custom-fonts-styling.md +579 -0
  111. package/skills/ti-ui/references/event-handling.md +393 -0
  112. package/skills/ti-ui/references/gestures.md +473 -0
  113. package/skills/ti-ui/references/icons-and-splash-screens.md +409 -0
  114. package/skills/ti-ui/references/layouts-and-positioning.md +462 -0
  115. package/skills/ti-ui/references/listviews-and-performance.md +619 -0
  116. package/skills/ti-ui/references/orientation.md +362 -0
  117. package/skills/ti-ui/references/platform-ui-android.md +635 -0
  118. package/skills/ti-ui/references/platform-ui-ios.md +469 -0
  119. package/skills/ti-ui/references/scrolling-views.md +252 -0
  120. package/skills/ti-ui/references/tableviews.md +568 -0
@@ -0,0 +1,183 @@
1
+ # Titanium Resources
2
+
3
+ Community resources, support channels, tools, and learning materials for Titanium developers.
4
+
5
+ ## Table of Contents
6
+ 1. [Developer Support](#developer-support)
7
+ 2. [Example Code](#example-code)
8
+ 3. [Community Modules](#community-modules)
9
+ 4. [Social Media](#social-media)
10
+ 5. [Learning Resources](#learning-resources)
11
+
12
+ ---
13
+
14
+ ## Developer Support
15
+
16
+ ### Official Channels
17
+
18
+ - **[GitHub Discussions](https://github.com/tidev/titanium-sdk/discussions)** - Post questions and get help from the community
19
+ - **[Slack](https://tidev.slack.com/)** - Titanium SDK Community Slack (help, jobs, announcements)
20
+ - Join at: https://tidev.slack.com/
21
+ - Channels for help, modules, announcements, and more
22
+
23
+ ### Module Resources
24
+
25
+ - **[Module Search](https://modules.titaniumsdk.com/)** - Search for Titanium modules
26
+ - **[Ti.Utils](https://github.com/TimanMax/Ti.Utils)** - Collection of utilities
27
+ - **[From Zero to App](https://fromzerotoapp.com/)** - Tutorials and modules
28
+
29
+ ### Documentation
30
+
31
+ - **[Titanium SDK Docs](https://titaniumsdk.com/)** - Official API documentation
32
+ - **[Alloy Framework Docs](https://titaniumsdk.com/guide/Alloy_Framework/)** - Alloy MVC framework guide
33
+ - **[This Skill (ti-guides)](../SKILL.md)** - Best practices and architecture
34
+
35
+ ---
36
+
37
+ ## Example Code
38
+
39
+ ### Official Repositories
40
+
41
+ - **[tidev on GitHub](https://github.com/tidev)** - Titanium source code, modules, and sample apps
42
+ - **[titanium-mobile](https://github.com/tidev/titanium-mobile)** - Titanium SDK source
43
+ - **[titanium-cli](https://github.com/tidev/titanium-cli)** - Titanium CLI
44
+ - **[titanium-code-processor](https://github.com/tidev/titanium-code-processor)** - Code processor for Alloy
45
+
46
+ ### Sample Applications
47
+
48
+ - **[Ti.Bluetooth](https://github.com/mwaylabs/ti.bluetooth)** - Bluetooth LE module
49
+ - **[Ti.Map](https://github.com/tidev/ti.map)** - Native maps module
50
+ - **[KitchenSink](https://github.com/tidev/KitchenSink)** - Comprehensive API examples
51
+
52
+ ### Community Projects
53
+
54
+ Search GitHub for "titanium" to find thousands of open source modules and apps.
55
+
56
+ ---
57
+
58
+ ## Community Modules
59
+
60
+ ### Finding Modules
61
+
62
+ 1. **[Module Search](https://modules.titaniumsdk.com/)** - Official module registry
63
+ 2. **[npm](https://www.npmjs.com/search?q=titanium)** - NPM packages for Titanium
64
+ 3. **[GitHub](https://github.com/search?q=titanium+module)** - Search GitHub
65
+
66
+ ### Creating Modules
67
+
68
+ See **`hyperloop-native-access.md`** for native module development:
69
+ - Android modules (Java/Kotlin)
70
+ - iOS modules (Objective-C/Swift)
71
+ - Module packaging and distribution
72
+
73
+ ### Popular Modules
74
+
75
+ - **ti.map** - Native maps (iOS & Android)
76
+ - **ti.admob** - AdMob ads
77
+ - **ti.imagefactory** - Image processing
78
+ - **ti.facebook** - Facebook integration
79
+ - **ti.media** - Extended media APIs
80
+
81
+ ---
82
+
83
+ ## Social Media
84
+
85
+ ### Official Accounts
86
+
87
+ - **Bluesky:** [@titaniumsdk.com](https://bsky.app/profile/titaniumsdk.com) - SDK and CLI updates
88
+ - **X (Twitter):**
89
+ - [@tidevio](https://x.com/tidevio) - Foundation account
90
+ - [@TitaniumSDK](https://x.com/TitaniumSDK) - SDK updates
91
+
92
+ ### Community
93
+
94
+ - **[r/titanium](https://www.reddit.com/r/titanium/)** - Reddit community
95
+ - **[Stack Overflow](https://stackoverflow.com/questions/tagged/titanium)** - Q&A
96
+
97
+ ---
98
+
99
+ ## Learning Resources
100
+
101
+ ### Getting Started
102
+
103
+ 1. **Hello World** - See `hello-world.md` in this skill
104
+ 2. **JavaScript Primer** - See `javascript-primer.md` in this skill
105
+ 3. **Alloy Framework** - See `alloy-guides` skill
106
+ 4. **Sample Apps** - Clone and study KitchenSink
107
+
108
+ ### Books and Guides
109
+
110
+ - **Titanium Up & Running** - Build native apps with JavaScript
111
+ - **Titanium Pocket Reference** - Quick API guide
112
+ - **Alloy Guides** - Official Alloy framework documentation
113
+
114
+ ### Video Tutorials
115
+
116
+ - **[From Zero to App](https://fromzerotoapp.com/)** - Video tutorials
117
+ - **[YouTube](https://www.youtube.com/results?search_query=titanium+mobile)** - Community tutorials
118
+
119
+ ---
120
+
121
+ ## Tools and IDEs
122
+
123
+ ### IDE Support
124
+
125
+ - **[VS Code](https://code.visualstudio.com/)** - With Titanium extensions
126
+
127
+ ### CLI Tools
128
+
129
+ ```bash
130
+ # Create new project
131
+ ti create
132
+
133
+ # Build for iOS
134
+ ti build -p ios
135
+
136
+ # Build for Android
137
+ ti build -p android
138
+
139
+ # Run on device
140
+ ti build -T device
141
+ ```
142
+
143
+ See **`cli-reference.md`** for complete CLI documentation.
144
+
145
+ ---
146
+
147
+ ## Contributing
148
+
149
+ ### Report Bugs
150
+
151
+ - **[GitHub Issues](https://github.com/tidev/titanium-sdk/issues)** - Bug reports
152
+ - **[JIRA Archive](https://github.com/tidev/jira-archive)** - Legacy issue tracker (Appcelerator)
153
+
154
+ ### Contribute Code
155
+
156
+ - **[Pull Request Guide](https://github.com/tidev/titanium-mobile/blob/master/CONTRIBUTING.md)** - Contributing guidelines
157
+ - Follow coding standards (see **`style-and-conventions.md`**)
158
+
159
+ ---
160
+
161
+ ## Best Practices for Getting Help
162
+
163
+ 1. **Search first** - Check docs, GitHub issues, Stack Overflow
164
+ 2. **Be specific** - Include code, error messages, platform info
165
+ 3. **Provide minimal reproducible example** - Isolate the problem
166
+ 4. **Use Slack for quick questions** - GitHub Discussions for deeper discussions
167
+ 5. **Give back** - Help others when you can
168
+
169
+ ---
170
+
171
+ ## Resource Checklist
172
+
173
+ For new Titanium developers:
174
+
175
+ - [ ] Install Titanium SDK and CLI
176
+ - [ ] Set up development environment (iOS/Android SDKs)
177
+ - [ ] Read `hello-world.md`
178
+ - [ ] Read `javascript-primer.md`
179
+ - [ ] Complete a sample project
180
+ - [ ] Join Slack community
181
+ - [ ] Explore Alloy framework
182
+ - [ ] Study sample apps on GitHub
183
+ - [ ] Contribute back to community
@@ -0,0 +1,48 @@
1
+ # Style and Conventions Reference
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
+
10
+ ## 2. Formatting
11
+ - **Semicolons**: Mandatory in official SDK guides, but **omitted** in the `alloy-expert` standard (let ASI handle it).
12
+ - **Indentation**: Consistency is most important (K&R/1TBS style).
13
+ - **Operators**: Add a single space around operators.
14
+ ```javascript
15
+ const fullName = firstName + ' ' + lastName
16
+ ```
17
+
18
+ **CRITICAL: Return Statement Placement**
19
+ Never put `return` on its own line followed by an object literal. JavaScript will insert a semicolon automatically, returning `undefined`.
20
+ ```javascript
21
+ // ❌ WRONG
22
+ return
23
+ {
24
+ foo: 'bar'
25
+ }
26
+
27
+ // ✅ CORRECT
28
+ return {
29
+ foo: 'bar'
30
+ }
31
+ ```
32
+
33
+ ## 3. Primitive Types
34
+ - Avoid using primitive type object constructors (e.g., `new String()`).
35
+ - Use template literals or single space concatenation.
36
+
37
+ ## 4. Control Statements
38
+ - Switch statements should have a single space around parentheses and proper indentation for cases.
39
+
40
+ ## 5. Comments and Documentation
41
+ - **Single-line comments**: Preferred for short explanations.
42
+ - **JSDoc/Block comments**: Required for documenting functions and classes.
43
+ ```javascript
44
+ /**
45
+ * @param {String} customerName Customer's full name.
46
+ */
47
+ function getCustomer(customerName) {}
48
+ ```