purgetss 6.2.28 → 6.2.30

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 (132) hide show
  1. package/.editorconfig +1 -1
  2. package/.eslintrc.js +27 -0
  3. package/README.md +4 -2
  4. package/bin/purgetss +163 -163
  5. package/dist/glossary/booleanProperties/filterAlwaysInclude.md +7 -0
  6. package/dist/glossary/booleanProperties/forceUpdates.md +7 -0
  7. package/dist/glossary/booleanProperties/recording.md +1 -2
  8. package/dist/glossary/booleanProperties/scalesPageToFit.md +7 -0
  9. package/dist/glossary/booleanProperties/secure.md +1 -1
  10. package/dist/glossary/booleanProperties/torch.md +7 -0
  11. package/dist/glossary/booleanProperties/useCameraX.md +7 -0
  12. package/dist/glossary/booleanProperties/zoomEnabled.md +7 -0
  13. package/dist/glossary/colorProperties/badgeBackgroundColor.md +250 -0
  14. package/dist/glossary/colorProperties/badgeColor.md +1 -1
  15. package/dist/glossary/colorProperties/badgeTextColor.md +250 -0
  16. package/dist/glossary/colorProperties/tintColor.md +246 -246
  17. package/dist/glossary/configurableProperties/duration.md +1 -1
  18. package/dist/glossary/configurableProperties/height.md +1 -1
  19. package/dist/glossary/configurableProperties/targetImageHeight.md +69 -0
  20. package/dist/glossary/configurableProperties/targetImageWidth.md +69 -0
  21. package/dist/glossary/configurableProperties/width.md +1 -1
  22. package/dist/glossary/constantProperties/aspectRatio.md +7 -0
  23. package/dist/glossary/constantProperties/keyboardDismissMode.md +1 -1
  24. package/dist/glossary/constantProperties/scalingMode.md +3 -3
  25. package/dist/glossary/constantProperties/state.md +0 -1
  26. package/dist/glossary/constantProperties/tabMode.md +7 -0
  27. package/dist/glossary/constantProperties/verticalAlign.md +7 -4
  28. package/dist/glossary/constantProperties/videoQuality.md +4 -0
  29. package/dist/glossary-legacy/Window.md +1 -1
  30. package/dist/glossary-legacy/colorProperties/activeTintColor.md +22 -0
  31. package/dist/glossary-legacy/colorProperties/activeTitleColor.md +22 -0
  32. package/dist/glossary-legacy/colorProperties/backgroundColor.md +22 -0
  33. package/dist/glossary-legacy/colorProperties/backgroundDisabledColor.md +22 -0
  34. package/dist/glossary-legacy/colorProperties/backgroundFocusedColor.md +22 -0
  35. package/dist/glossary-legacy/colorProperties/backgroundGradient.md +44 -0
  36. package/dist/glossary-legacy/colorProperties/backgroundSelectedColor.md +22 -0
  37. package/dist/glossary-legacy/colorProperties/backgroundSelectedGradient.md +44 -0
  38. package/dist/glossary-legacy/colorProperties/badgeColor.md +22 -0
  39. package/dist/glossary-legacy/colorProperties/barColor.md +22 -0
  40. package/dist/glossary-legacy/colorProperties/borderColor.md +22 -0
  41. package/dist/glossary-legacy/colorProperties/currentPageIndicatorColor.md +22 -0
  42. package/dist/glossary-legacy/colorProperties/dateTimeColor.md +22 -0
  43. package/dist/glossary-legacy/colorProperties/disabledColor.md +22 -0
  44. package/dist/glossary-legacy/colorProperties/highlightedColor.md +22 -0
  45. package/dist/glossary-legacy/colorProperties/hintTextColor.md +22 -0
  46. package/dist/glossary-legacy/colorProperties/imageTouchFeedbackColor.md +22 -0
  47. package/dist/glossary-legacy/colorProperties/indicatorColor.md +22 -0
  48. package/dist/glossary-legacy/colorProperties/keyboardToolbarColor.md +22 -0
  49. package/dist/glossary-legacy/colorProperties/navTintColor.md +22 -0
  50. package/dist/glossary-legacy/colorProperties/onTintColor.md +22 -0
  51. package/dist/glossary-legacy/colorProperties/pageIndicatorColor.md +22 -0
  52. package/dist/glossary-legacy/colorProperties/pagingControlColor.md +22 -0
  53. package/dist/glossary-legacy/colorProperties/placeholder.md +22 -0
  54. package/dist/glossary-legacy/colorProperties/pullBackgroundColor.md +22 -0
  55. package/dist/glossary-legacy/colorProperties/resultsBackgroundColor.md +22 -0
  56. package/dist/glossary-legacy/colorProperties/resultsSeparatorColor.md +22 -0
  57. package/dist/glossary-legacy/colorProperties/selectedButtonColor.md +22 -0
  58. package/dist/glossary-legacy/colorProperties/selectedColor.md +22 -0
  59. package/dist/glossary-legacy/colorProperties/selectedSubtitleColor.md +22 -0
  60. package/dist/glossary-legacy/colorProperties/selectedTextColor.md +22 -0
  61. package/dist/glossary-legacy/colorProperties/separatorColor.md +22 -0
  62. package/dist/glossary-legacy/colorProperties/shadowColor.md +22 -0
  63. package/dist/glossary-legacy/colorProperties/subtitleColor.md +22 -0
  64. package/dist/glossary-legacy/colorProperties/tabsBackgroundColor.md +22 -0
  65. package/dist/glossary-legacy/colorProperties/tabsBackgroundSelectedColor.md +22 -0
  66. package/dist/glossary-legacy/colorProperties/textColor.md +22 -0
  67. package/dist/glossary-legacy/colorProperties/thumbTintColor.md +22 -0
  68. package/dist/glossary-legacy/colorProperties/tintColor.md +23 -1
  69. package/dist/glossary-legacy/colorProperties/titleAttributesColor.md +22 -0
  70. package/dist/glossary-legacy/colorProperties/titleAttributesShadowColor.md +22 -0
  71. package/dist/glossary-legacy/colorProperties/titleColor.md +22 -0
  72. package/dist/glossary-legacy/colorProperties/titleTextColor.md +22 -0
  73. package/dist/glossary-legacy/colorProperties/touchFeedbackColor.md +22 -0
  74. package/dist/glossary-legacy/colorProperties/trackTintColor.md +22 -0
  75. package/dist/glossary-legacy/colorProperties/viewShadowColor.md +22 -0
  76. package/dist/tailwind.tss +709 -289
  77. package/experimental/completions.js +702 -703
  78. package/experimental/completions2.js +687 -687
  79. package/index.js +2271 -2266
  80. package/lib/completions/titanium/completions-v3.json +331 -22
  81. package/package.json +8 -2
  82. package/dist/glossary/booleanProperties/hidden.md +0 -6
  83. package/dist/glossary/constantProperties/anchorPoint.md +0 -24
  84. package/dist/glossary/constantProperties/autocapitalization-alternative.md +0 -8
  85. package/dist/glossary/constantProperties/backgroundGradient-linear.md +0 -25
  86. package/dist/glossary/constantProperties/backgroundGradient-radial.md +0 -13
  87. package/dist/glossary/constantProperties/backgroundGradient.md +0 -497
  88. package/dist/glossary/constantProperties/backgroundSelectedGradient.md +0 -497
  89. package/dist/glossary/constantProperties/borderRadius-alternative.md +0 -466
  90. package/dist/glossary/constantProperties/borderRadius-full.md +0 -45
  91. package/dist/glossary/constantProperties/clipMode.md +0 -6
  92. package/dist/glossary/constantProperties/constraint.md +0 -6
  93. package/dist/glossary/constantProperties/content-height-and-width.md +0 -10
  94. package/dist/glossary/constantProperties/curve-alternative.md +0 -11
  95. package/dist/glossary/constantProperties/defaultItemTemplate.md +0 -8
  96. package/dist/glossary/constantProperties/displayCaps.md +0 -11
  97. package/dist/glossary/constantProperties/draggingType.md +0 -6
  98. package/dist/glossary/constantProperties/dropShadow.md +0 -12
  99. package/dist/glossary/constantProperties/ellipsize-alternative.md +0 -17
  100. package/dist/glossary/constantProperties/filterAttribute.md +0 -6
  101. package/dist/glossary/constantProperties/flip.md +0 -6
  102. package/dist/glossary/constantProperties/fontFamily.md +0 -4
  103. package/dist/glossary/constantProperties/fontSize.md +0 -17
  104. package/dist/glossary/constantProperties/fontStyle.md +0 -6
  105. package/dist/glossary/constantProperties/fontWeight.md +0 -13
  106. package/dist/glossary/constantProperties/grid-cols-rows-span.md +0 -31
  107. package/dist/glossary/constantProperties/gridFlow.md +0 -8
  108. package/dist/glossary/constantProperties/gridSystem.md +0 -31
  109. package/dist/glossary/constantProperties/items.md +0 -8
  110. package/dist/glossary/constantProperties/margin-alternative.md +0 -263
  111. package/dist/glossary/constantProperties/margin.md +0 -1137
  112. package/dist/glossary/constantProperties/minimumFontSize.md +0 -17
  113. package/dist/glossary/constantProperties/moveByProperties.md +0 -5
  114. package/dist/glossary/constantProperties/navigationMode.md +0 -6
  115. package/dist/glossary/constantProperties/orientationModes.md +0 -19
  116. package/dist/glossary/constantProperties/padding-alternative.md +0 -249
  117. package/dist/glossary/constantProperties/placement.md +0 -14
  118. package/dist/glossary/constantProperties/progressBarStyle.md +0 -7
  119. package/dist/glossary/constantProperties/r-drawable.md +0 -172
  120. package/dist/glossary/constantProperties/rotate-negative-values.md +0 -18
  121. package/dist/glossary/constantProperties/scrollType.md +0 -6
  122. package/dist/glossary/constantProperties/showScrollIndicators.md +0 -10
  123. package/dist/glossary/constantProperties/statusBarStyle-alternative.md +0 -7
  124. package/dist/glossary/constantProperties/theme.md +0 -28
  125. package/dist/glossary/constantProperties/tiMedia.md +0 -18
  126. package/dist/glossary/constantProperties/titleAttributesShadow-alternative.md +0 -12
  127. package/dist/glossary/constantProperties/toggle.md +0 -7
  128. package/dist/glossary/constantProperties/touchEnabled-alternative.md +0 -6
  129. package/dist/glossary/constantProperties/viewShadowOffset.md +0 -14
  130. package/dist/glossary/constantProperties/visible-alternative.md +0 -6
  131. package/dist/glossary/constantProperties/widthHeight.md +0 -68
  132. package/dist/glossary/constantProperties/zoom-in-out.md +0 -34
package/.editorconfig CHANGED
@@ -1,7 +1,7 @@
1
1
  root = true
2
2
 
3
3
  [*]
4
- indent_style = tab
4
+ indent_style = space
5
5
  indent_size = 2
6
6
  charset = utf-8
7
7
  trim_trailing_whitespace = true
package/.eslintrc.js ADDED
@@ -0,0 +1,27 @@
1
+ module.exports = {
2
+ env: {
3
+ browser: true,
4
+ commonjs: true,
5
+ es2021: true
6
+ },
7
+ extends: 'standard',
8
+ overrides: [
9
+ {
10
+ env: {
11
+ node: true
12
+ },
13
+ files: [
14
+ '.eslintrc.{js,cjs}'
15
+ ],
16
+ parserOptions: {
17
+ sourceType: 'script'
18
+ }
19
+ }
20
+ ],
21
+ parserOptions: {
22
+ ecmaVersion: 'latest'
23
+ },
24
+ rules: {
25
+ 'spaced-comment': ['error', 'always']
26
+ }
27
+ }
package/README.md CHANGED
@@ -10,7 +10,9 @@
10
10
 
11
11
  </div>
12
12
 
13
- **PurgeTSS** serves as a valuable toolkit tailored to streamline the mobile app development journey for **[Titanium developers](https://tidev.io/)**. By offering a range of user-friendly functionalities, including the ability to fine-tune utility classes, seamless integration of icon fonts, a foundational Animation module, a straightforward grid system, and the innovative 'shades' command for personalized color palettes, PurgeTSS aims to simplify the creation of visually captivating mobile applications.
13
+ **PurgeTSS** is a powerful package designed to enhance the process of developing visually captivating mobile applications for **[Titanium developers](https://tidev.io/)**.
14
+
15
+ It offers a range of tools such as customizable utility classes, support for icon fonts, a user-friendly Animation module, a straightforward grid system, and the added convenience of the `shades` command for crafting personalized colors. With **PurgeTSS**, creating visually appealing and dynamic mobile apps becomes more accessible and efficient.
14
16
 
15
17
  ---
16
18
 
@@ -25,7 +27,7 @@ Now, let's delve into the key features that make **PurgeTSS** a game-changer for
25
27
  - Includes an **Animation module** to apply basic 2D Matrix animations or transform to any element or array of elements.
26
28
  - Includes a simple two-dimensional **Grid System** to align and distribute elements in your Views.
27
29
 
28
- ### Visit the official documentation site at [purgetss.com](https://purgetss.com) to learn more about PurgeTSS
30
+ ### Visit the official documentation site at [purgetss.com](https://purgetss.com) to learn more.
29
31
 
30
32
  ## Table of Content
31
33
 
package/bin/purgetss CHANGED
@@ -1,199 +1,199 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- const chalk = require('chalk');
4
- const program = require('caporal');
5
- const pkg = require('../package.json');
6
- const purgetss = require('../index.js');
7
- const updateNotifier = require('update-notifier');
3
+ const chalk = require('chalk')
4
+ const program = require('caporal')
5
+ const pkg = require('../package.json')
6
+ const purgetss = require('../index.js')
7
+ const updateNotifier = require('update-notifier')
8
8
 
9
9
  // check if a new version of PurgeTSS is available and print an update notification
10
- const notifier = updateNotifier({ pkg });
10
+ const notifier = updateNotifier({ pkg })
11
11
  if (notifier.update && notifier.update.latest !== pkg.version) {
12
- notifier.notify({ defer: false, isGlobal: true });
12
+ notifier.notify({ defer: false, isGlobal: true })
13
13
  }
14
14
 
15
15
  program
16
- .version(pkg.version)
17
- .description(`${pkg.description}\n Visit ${chalk.green('https://purgetss.com')} for more details.`)
18
- .argument('[command]', 'See the list of available commands below')
19
- .help(chalk.green(`${chalk.green('PurgeTSS')} will create a clean ${chalk.yellow('app.tss')} file with only the classes used in your XML Files\nThe original classes from ${chalk.yellow('app.tss')} will be backed up in ${chalk.yellow('_app.tss')}\nYou can create your own custom classes by editing ${chalk.yellow('purgetss/config.js')}`))
20
- .option('-d, --debug', 'Displays execution time for each process')
21
- .option('-a, --all', `Runs all 3 main commands: ${chalk.green('build')}, ${chalk.green('build-fonts')} and ${chalk.green('purgetss')}`)
22
- .action((args, options, logger) => {
23
- purgetss.purgeClasses(options);
24
- });
16
+ .version(pkg.version)
17
+ .description(`${pkg.description}\n For more information, visit ${chalk.green('https://purgetss.com')}`)
18
+ .argument('[command]', 'See the list of available commands below')
19
+ .help(chalk.green(`Generate a clean ${chalk.yellow('app.tss')} file containing the classes from your XML files\nThe original classes from ${chalk.yellow('app.tss')} are backed up in ${chalk.yellow('_app.tss')}\nYou can create your own custom classes by editing ${chalk.yellow('./purgetss/config.js')}`))
20
+ .option('-d, --debug', 'Display execution time for each process')
21
+ .option('-a, --all', `Run these 3 commands: ${chalk.green('build')}, ${chalk.green('build-fonts')} and ${chalk.green('purgetss')}`)
22
+ .action((args, options, logger) => {
23
+ purgetss.purgeClasses(options)
24
+ })
25
25
 
26
26
  program
27
- .command('init')
28
- .alias('i')
29
- .description(`Creates a ${chalk.yellow('config.js')} file for your project`)
30
- .help(`Creates a minimal ${chalk.yellow('./purgetss/config.js')} file where you can define any customization for existing or new classes`)
31
- .action((args, options, logger) => {
32
- purgetss.init(options);
33
- });
27
+ .command('init')
28
+ .alias('i')
29
+ .description(`Create a ${chalk.yellow('config.js')} file for your project`)
30
+ .help(`Create a minimal ${chalk.yellow('./purgetss/config.js')} file, allowing you to define customizations for new or existing classes`)
31
+ .action((args, options, logger) => {
32
+ purgetss.init(options)
33
+ })
34
34
 
35
35
  program
36
- .command('create')
37
- .alias('c')
38
- .description(`Creates a new Alloy Project with ${chalk.green('PurgeTSS')} configured`)
39
- .help(`Creates a new Alloy Project with ${chalk.green('PurgeTSS')} configured. You’ll need to have ${chalk.yellow('app.idprefix')} and ${chalk.yellow('app.workspace')} already configured.`)
40
- .option('-f, --force', 'Forces create even if the project already exists')
41
- .option('-t, --tailwind', `Install ${chalk.green('Tailwind CSS')} for Tailwind CSS Intellisense VS Code extension`)
42
- .option('-v, --vendor <arguments>', `Use any of the following arguments to copy specific font vendors:\n ${chalk.yellow('fa')} = Font Awesome Icons\n ${chalk.yellow('mi')} = Material Icons\n ${chalk.yellow('ms')} = Material Symbols\n ${chalk.yellow('f7')} = Framework7 Icons`)
43
- .argument('<name>', 'The name of the project')
44
- .action((args, options, logger) => {
45
- purgetss.create(args, options);
46
- });
36
+ .command('create')
37
+ .alias('c')
38
+ .description(`Create a new Alloy Project with ${chalk.green('PurgeTSS')} configured`)
39
+ .help(`Create a new Alloy Project with ${chalk.green('PurgeTSS')} configured. You’ll need to have ${chalk.yellow('app.idprefix')} and ${chalk.yellow('app.workspace')} already configured.`)
40
+ .option('-f, --force', 'Force create even if the project already exists')
41
+ .option('-t, --tailwind', `Install ${chalk.green('Tailwind CSS')} for Tailwind CSS Intellisense VS Code extension`)
42
+ .option('-v, --vendor <arguments>', `Use any of the following arguments to copy specific font vendors:\n ${chalk.yellow('fa')} = Font Awesome Icons\n ${chalk.yellow('mi')} = Material Icons\n ${chalk.yellow('ms')} = Material Symbols\n ${chalk.yellow('f7')} = Framework7 Icons`)
43
+ .argument('<name>', 'The name of the project')
44
+ .action((args, options, logger) => {
45
+ purgetss.create(args, options)
46
+ })
47
47
 
48
48
  program
49
- .command('build')
50
- .alias('b')
51
- .description(`Builds a new ${chalk.yellow('tailwind.tss')} file`)
52
- .option('--glossary', 'Creates a glossary folder with all generated classes')
53
- .help(`It will generate a ${chalk.yellow('tailwind.tss')} file based on the attributes defined in ${chalk.yellow('./purgetss/config.js')}\nIt will also generate a custom ${chalk.yellow('fontawesome.tss')} file if you installed the proper dependencies, like FontAwesome Beta or FontAwesome Pro`)
54
- .action((args, options, logger) => {
55
- purgetss.build(options);
56
- });
49
+ .command('build')
50
+ .alias('b')
51
+ .description(`Generate a new ${chalk.yellow('tailwind.tss')} file`)
52
+ .option('--glossary', 'Create a glossary folder with all generated classes')
53
+ .help(`Generate a ${chalk.yellow('tailwind.tss')} file based on the attributes defined in ${chalk.yellow('./purgetss/config.js')}\nIf you have installed FontAwesome Beta or FontAwesome Pro, it will also generate a custom ${chalk.yellow('fontawesome.tss')} file`)
54
+ .action((args, options, logger) => {
55
+ purgetss.build(options)
56
+ })
57
57
 
58
58
  program
59
- .command('build-legacy')
60
- .alias('bl')
61
- .description(`Builds a Legacy ${chalk.yellow('tailwind.tss')} file`)
62
- .help(`It will generate a Legacy ${chalk.green('tailwind.tss')} file based on the attributes defined in ${chalk.yellow('./purgetss/config.js')}\nIt will also generate a custom ${chalk.yellow('fontawesome.tss')} file if you installed the proper dependencies, like FontAwesome Beta or FontAwesome Pro`)
63
- .action((args, options, logger) => {
64
- purgetss.buildLegacy();
65
- });
59
+ .command('build-legacy')
60
+ .alias('bl')
61
+ .description(`Generate a Legacy ${chalk.yellow('tailwind.tss')} file`)
62
+ .help(`Generate a Legacy ${chalk.yellow('tailwind.tss')} file based on the attributes defined in ${chalk.yellow('./purgetss/config.js')}\nIf you have installed FontAwesome Beta or FontAwesome Pro, it will also generate a custom ${chalk.yellow('fontawesome.tss')} file`)
63
+ .action((args, options, logger) => {
64
+ purgetss.buildLegacy()
65
+ })
66
66
 
67
67
  program
68
- .command('shades')
69
- .alias('s')
70
- .argument('[hexcode]', 'The base hexcode value')
71
- .argument('[name]', 'Name of the color')
72
- .option('-n, --name', 'Specifies the name of the color')
73
- .option('-q, --quotes', `Keeps double quotes in the ${chalk.yellow('config.js')} file`)
74
- .option('-r, --random', 'Generates shades from a random color')
75
- .option('-s, --single', 'Generates a single color definition')
76
- .option('-t, --tailwind', `Logs the generated shades with a ${chalk.yellow('tailwind.config.js')} compatible structure`)
77
- .option('-l, --log', 'Logs the generated shades instead of saving them')
78
- .option('-j, --json', `Logs a JSON compatible structure, which can be used in ${chalk.yellow('app/config.json')}`)
79
- .description(`Color shades generator from a given hexcolor`)
80
- .help(`Generate color shades from a given hexcolor to use in your project`)
81
- .action((args, options, logger) => {
82
- purgetss.shades(args, options);
83
- });
68
+ .command('shades')
69
+ .alias('s')
70
+ .argument('[hexcode]', 'The base hexcode value')
71
+ .argument('[name]', 'Name of the color')
72
+ .option('-n, --name', 'Specify the name of the color')
73
+ .option('-q, --quotes', `Keep double quotes in the ${chalk.yellow('config.js')} file`)
74
+ .option('-r, --random', 'Generate shades from a random color')
75
+ .option('-s, --single', 'Generate a single color definition')
76
+ .option('-t, --tailwind', `Log the generated shades with a ${chalk.yellow('tailwind.config.js')} compatible structure`)
77
+ .option('-l, --log', 'Log the generated shades instead of saving them')
78
+ .option('-j, --json', `Log a JSON compatible structure, which can be used in ${chalk.yellow('app/config.json')}`)
79
+ .description('Color shades generator from a given hexcolor')
80
+ .help('Generate color shades from a given hexcolor to use in your project')
81
+ .action((args, options, logger) => {
82
+ purgetss.shades(args, options)
83
+ })
84
84
 
85
85
  program
86
- .command('color-module')
87
- .alias('cm')
88
- .description(`Copy all colors from ${chalk.yellow('config.js')} to your ${chalk.yellow('lib')} folder`)
89
- .help(`Copy all colors from ${chalk.yellow('theme.colors')} and ${chalk.yellow('theme.extend.colors')} into a CommonJS module to your project's ${chalk.yellow('lib')} folder`)
90
- .action((args, options, logger) => {
91
- purgetss.colorModule();
92
- });
86
+ .command('color-module')
87
+ .alias('cm')
88
+ .description(`Copy all colors from ${chalk.yellow('config.js')} to your ${chalk.yellow('lib')} folder`)
89
+ .help(`Copy all colors from ${chalk.yellow('./purgetss/config.js')} into a CommonJS module within your project's ${chalk.yellow('lib')} folder`)
90
+ .action((args, options, logger) => {
91
+ purgetss.colorModule()
92
+ })
93
93
 
94
94
  program
95
- .command('watch')
96
- .alias('w')
97
- .description(`Auto-runs ${chalk.green('PurgeTSS')} every time you compile your project`)
98
- .help(`Auto-runs ${chalk.green('PurgeTSS')} every time you compile your project\nThis is very useful in combination with ${chalk.green('LiveView')} by purging your files every time you make a change`)
99
- .option('-o, --off', 'To turn off watch mode')
100
- .option('-d, --delete', 'To completely delete the Auto-Purging hook')
101
- .action((args, options, logger) => {
102
- purgetss.watchMode(options);
103
- });
95
+ .command('watch')
96
+ .alias('w')
97
+ .description(`Automatically run ${chalk.green('PurgeTSS')} every time you compile your project`)
98
+ .help(`Automatically run ${chalk.green('PurgeTSS')} every time you compile your project\nEspecially helpful with ${chalk.green('LiveView')} as it purges your files with each change you make`)
99
+ .option('-o, --off', 'To turn off watch mode')
100
+ .option('-d, --delete', 'To completely delete the Auto-Purging hook')
101
+ .action((args, options, logger) => {
102
+ purgetss.watchMode(options)
103
+ })
104
104
 
105
105
  program
106
- .command('fonts')
107
- .alias('f')
108
- .description(`<deprecated> Will be removed in the next major release. Use ${chalk.yellow('copy-fonts')} instead!`)
109
- .help(`Copy Font Awesome (Brands, Regular, Solid), Material Icons, Material Symbols or Framework 7 icons,\nto your project's ${chalk.yellow('app/assets/fonts/')} folder and their names fixed to work on iOS and Android`)
110
- .option('-v, --vendor <arguments>', `Use any of the following arguments to copy specific font vendors:\n ${chalk.yellow('fa')} = Font Awesome Icons\n ${chalk.yellow('mi')} = Material Icons\n ${chalk.yellow('ms')} = Material Symbols\n ${chalk.yellow('f7')} = Framework7 Icons`)
111
- .option('-m, --module', `Use the --module option to also copy the corresponding CommonJS module in ${chalk.yellow('./app/lib/')} folder`)
112
- .option('-s, --styles', `Copy the corresponding .tss file into ${chalk.yellow('./purgetss/styles/')} folder`)
113
- .action((args, options, logger) => {
114
- purgetss.copyFonts(options);
115
- });
106
+ .command('copy-fonts')
107
+ .alias('cf')
108
+ .description(`<deprecated>, use ${chalk.yellow('icon-library')} instead!`)
109
+ .help(`<deprecated>, use ${chalk.yellow('icon-library')} instead!`)
110
+ .option('-v, --vendor <arguments>', `Use any of the following arguments to copy specific font vendors:\n ${chalk.yellow('fa')} = Font Awesome Icons\n ${chalk.yellow('mi')} = Material Icons\n ${chalk.yellow('ms')} = Material Symbols\n ${chalk.yellow('f7')} = Framework7 Icons`)
111
+ .option('-m, --module', `To also copy the corresponding CommonJS modules in ${chalk.yellow('./app/lib/')} folder`)
112
+ .option('-s, --styles', `Copy the corresponding ${chalk.yellow('.tss')} files into ${chalk.yellow('./purgetss/styles/')} folder`)
113
+ .action((args, options, logger) => {
114
+ purgetss.copyFonts(options)
115
+ })
116
116
 
117
117
  program
118
- .command('copy-fonts')
119
- .alias('cf')
120
- .description('Copy default icon font libraries to your project')
121
- .help(`Copy Font Awesome (Brands, Regular, Solid), Material Icons, Material Symbols or Framework 7 icons,\nto your project's ${chalk.yellow('app/assets/fonts/')} folder and their names fixed to work on iOS and Android`)
122
- .option('-v, --vendor <arguments>', `Use any of the following arguments to copy specific font vendors:\n ${chalk.yellow('fa')} = Font Awesome Icons\n ${chalk.yellow('mi')} = Material Icons\n ${chalk.yellow('ms')} = Material Symbols\n ${chalk.yellow('f7')} = Framework7 Icons`)
123
- .option('-m, --module', `Use the --module option to also copy the corresponding CommonJS module in ${chalk.yellow('./app/lib/')} folder`)
124
- .option('-s, --styles', `Copy the corresponding .tss file into ${chalk.yellow('./purgetss/styles/')} folder`)
125
- .action((args, options, logger) => {
126
- purgetss.copyFonts(options);
127
- });
118
+ .command('icon-library')
119
+ .alias('il')
120
+ .description('Copy default icon font libraries to your project')
121
+ .help(`Copy Font Awesome, Material Icons, Material Symbols or Framework 7 icons to your project's ${chalk.yellow('./app/assets/fonts/')} folder`)
122
+ .option('-v, --vendor <arguments>', `Use any of the following arguments to copy specific font vendors:\n ${chalk.yellow('fa')} = Font Awesome Icons\n ${chalk.yellow('mi')} = Material Icons\n ${chalk.yellow('ms')} = Material Symbols\n ${chalk.yellow('f7')} = Framework7 Icons`)
123
+ .option('-m, --module', `To also copy the corresponding CommonJS modules in ${chalk.yellow('./app/lib/')} folder`)
124
+ .option('-s, --styles', `Copy the corresponding ${chalk.yellow('.tss')} files into ${chalk.yellow('./purgetss/styles/')} folder`)
125
+ .action((args, options, logger) => {
126
+ purgetss.copyFonts(options)
127
+ })
128
128
 
129
129
  program
130
- .command('build-fonts')
131
- .alias('bf')
132
- .description(`Builds a ${chalk.yellow('fonts.tss')} file from fonts and styles in ${chalk.yellow('./purgetss/fonts')}`)
133
- .help(`It will generate a new ${chalk.yellow('fonts.tss')} file based on the fonts and css files located in ${chalk.yellow('./purgetss/fonts')} folder`)
134
- .option('-m, --module', `Use the --module option to also generate a CommonJS module in ${chalk.yellow('./app/lib/')} folder called ${chalk.yellow('purgetss-fonts.js')}`)
135
- .action((args, options, logger) => {
136
- purgetss.buildFonts(options);
137
- });
130
+ .command('build-fonts')
131
+ .alias('bf')
132
+ .description(`Generate a ${chalk.yellow('fonts.tss')} file based on the font and css files located in ${chalk.yellow('./purgetss/fonts')}`)
133
+ .help(`Generate a ${chalk.yellow('./purgetss/styles/fonts.tss')} file based on the font and css files located in ${chalk.yellow('./purgetss/fonts')} folder`)
134
+ .option('-m, --module', `To also generate a CommonJS module in ${chalk.yellow('./app/lib/')} folder called ${chalk.yellow('purgetss-fonts.js')}`)
135
+ .action((args, options, logger) => {
136
+ purgetss.buildFonts(options)
137
+ })
138
138
 
139
139
  program
140
- .command('module')
141
- .alias('m')
142
- .description(`Copy ${chalk.yellow('purgetss.ui.js')} module to your project's ${chalk.yellow('lib')} folder`)
143
- .help('This file contains the Animation module\n')
144
- .action((args, options, logger) => {
145
- purgetss.copyModulesLibrary();
146
- });
140
+ .command('module')
141
+ .alias('m')
142
+ .description(`Copy ${chalk.yellow('purgetss.ui.js')} module to your project's ${chalk.yellow('lib')} folder`)
143
+ .help(`Copy ${chalk.yellow('purgetss.ui.js')} module to your project's ${chalk.yellow('./app/lib/')} folder. This file contains the Animation module`)
144
+ .action((args, options, logger) => {
145
+ purgetss.copyModulesLibrary()
146
+ })
147
147
 
148
148
  program
149
- .command('update')
150
- .alias('u')
151
- .description(`Updates ${chalk.green('PurgeTSS')} to the latest version`)
152
- .help(`Please run update regularly!\nWe constantly update ${chalk.green('PurgeTSS')} to add new features, to include the latest version of ${chalk.green('Tailwind CSS')} and bug fixes`)
153
- .action((args, options, logger) => {
154
- logger.info(`${purgetss.colores.purgeLabel} Updating ${chalk.green('PurgeTSS')} to the latest version...`);
155
-
156
- const { exec } = require('child_process');
157
-
158
- exec('npm update -g purgetss', (error, stdout, stderr) => {
159
- if (error) {
160
- logger.info(`${purgetss.colores.purgeLabel} error: ${error.message}`);
161
- return;
162
- }
163
-
164
- if (stderr) {
165
- logger.info(`${purgetss.colores.purgeLabel} stderr: ${stderr}`);
166
- return;
167
- }
168
-
169
- logger.info(`${purgetss.colores.purgeLabel} Done!`);
170
- });
171
- });
149
+ .command('update')
150
+ .alias('u')
151
+ .description(`Update ${chalk.green('PurgeTSS')} to the latest version`)
152
+ .help(`Update ${chalk.green('PurgeTSS')} to the latest version\nWe constantly update ${chalk.green('PurgeTSS')} to add new features and bug fixes`)
153
+ .action((args, options, logger) => {
154
+ logger.info(`${purgetss.colores.purgeLabel} Updating ${chalk.green('PurgeTSS')} to the latest version...`)
155
+
156
+ const { exec } = require('child_process')
157
+
158
+ exec('npm update -g purgetss', (error, stdout, stderr) => {
159
+ if (error) {
160
+ logger.info(`${purgetss.colores.purgeLabel} error: ${error.message}`)
161
+ return
162
+ }
163
+
164
+ if (stderr) {
165
+ logger.info(`${purgetss.colores.purgeLabel} stderr: ${stderr}`)
166
+ return
167
+ }
168
+
169
+ logger.info(`${purgetss.colores.purgeLabel} Done!`)
170
+ })
171
+ })
172
172
 
173
173
  program
174
- .command('sudo-update')
175
- .alias('su')
176
- .description(`Updates ${chalk.green('PurgeTSS')} to the latest version using the ${chalk.yellow('sudo')} command`)
177
- .help(`Please run sudo-update regularly!\nWe constantly update ${chalk.green('PurgeTSS')} to add new features, to include the latest version of ${chalk.green('Tailwind CSS')} and bug fixes`)
178
- .action((args, options, logger) => {
179
- logger.info(`${purgetss.colores.purgeLabel} Updating ${chalk.green('PurgeTSS')} to the latest version using sudo...`);
180
-
181
- const { exec } = require('child_process');
182
-
183
- exec('sudo npm update -g purgetss', (error, stdout, stderr) => {
184
- if (error) {
185
- logger.info(`${purgetss.colores.purgeLabel} error: ${error.message}`);
186
- return;
187
- }
188
-
189
- if (stderr) {
190
- logger.info(`${purgetss.colores.purgeLabel} stderr: ${stderr}`);
191
- return;
192
- }
193
-
194
- logger.info(`${purgetss.colores.purgeLabel} Done!`);
195
- });
196
- });
174
+ .command('sudo-update')
175
+ .alias('su')
176
+ .description(`Update ${chalk.green('PurgeTSS')} to the latest version using the ${chalk.yellow('sudo')} command`)
177
+ .help(`Update ${chalk.green('PurgeTSS')} to the latest version using the ${chalk.yellow('sudo')} command\nWe constantly update ${chalk.green('PurgeTSS')} to add new features and bug fixes`)
178
+ .action((args, options, logger) => {
179
+ logger.info(`${purgetss.colores.purgeLabel} Updating ${chalk.green('PurgeTSS')} to the latest version using sudo...`)
180
+
181
+ const { exec } = require('child_process')
182
+
183
+ exec('sudo npm update -g purgetss', (error, stdout, stderr) => {
184
+ if (error) {
185
+ logger.info(`${purgetss.colores.purgeLabel} error: ${error.message}`)
186
+ return
187
+ }
188
+
189
+ if (stderr) {
190
+ logger.info(`${purgetss.colores.purgeLabel} stderr: ${stderr}`)
191
+ return
192
+ }
193
+
194
+ logger.info(`${purgetss.colores.purgeLabel} Done!`)
195
+ })
196
+ })
197
197
 
198
198
  program
199
- .parse(process.argv);
199
+ .parse(process.argv)
@@ -0,0 +1,7 @@
1
+ ```scss
2
+ // Property: filterAlwaysInclude
3
+ // Description: This row will always be visible when you filter your content.
4
+ // Component(s): Ti.UI.TableViewRow
5
+ '.filter-always-include': { filterAlwaysInclude: true }
6
+ '.filter-always-include-false': { filterAlwaysInclude: false }
7
+ ```
@@ -0,0 +1,7 @@
1
+ ```scss
2
+ // Property: forceUpdates
3
+ // Description: Optimize the continuousUpdate scrolling event.
4
+ // Component(s): Ti.UI.ListView
5
+ '.force-updates': { forceUpdates: true }
6
+ '.force-updates-false': { forceUpdates: false }
7
+ ```
@@ -1,7 +1,6 @@
1
1
  ```scss
2
2
  // Property: recording
3
- // Description: Indicates if the audio recorder is recording.
4
- // Component(s): Ti.Media.AudioRecorder
3
+ // Component(s): Ti.Media.AudioRecorder, CameraOptionsType
5
4
  '.recording': { recording: true }
6
5
  '.recording-false': { recording: false }
7
6
  ```
@@ -0,0 +1,7 @@
1
+ ```scss
2
+ // Property: scalesPageToFit
3
+ // Description: If true, scale contents to fit the web view.
4
+ // Component(s): Ti.UI.WebView
5
+ '.scales-page-to-fit': { scalesPageToFit: true }
6
+ '.scales-page-to-fit-false': { scalesPageToFit: false }
7
+ ```
@@ -1,6 +1,6 @@
1
1
  ```scss
2
2
  // Property: secure
3
- // Component(s): Ti.Network.Cookie, Ti.UI.WebView
3
+ // Component(s): Ti.Network.Cookie, Ti.Network.Socket.TCP, Ti.UI.WebView
4
4
  '.secure': { secure: true }
5
5
  '.secure-false': { secure: false }
6
6
  ```
@@ -0,0 +1,7 @@
1
+ ```scss
2
+ // Property: torch
3
+ // Description: Enable or disable the camera torch.
4
+ // Component(s): Ti.Media
5
+ '.torch': { torch: true }
6
+ '.torch-false': { torch: false }
7
+ ```
@@ -0,0 +1,7 @@
1
+ ```scss
2
+ // Property: useCameraX
3
+ // Description: To use the new CameraX classes for &quot;camera with overlay&quot; set useCameraX to true
4
+ // Component(s): Ti.Media
5
+ '.use-camera-x': { useCameraX: true }
6
+ '.use-camera-x-false': { useCameraX: false }
7
+ ```
@@ -0,0 +1,7 @@
1
+ ```scss
2
+ // Property: zoomEnabled
3
+ // Description: Specifies if pinch to zoom is enabled or not.
4
+ // Component(s): CameraOptionsType
5
+ '.zoom-enabled': { zoomEnabled: true }
6
+ '.zoom-enabled-false': { zoomEnabled: false }
7
+ ```