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.
- package/.editorconfig +1 -1
- package/.eslintrc.js +27 -0
- package/README.md +4 -2
- package/bin/purgetss +163 -163
- package/dist/glossary/booleanProperties/filterAlwaysInclude.md +7 -0
- package/dist/glossary/booleanProperties/forceUpdates.md +7 -0
- package/dist/glossary/booleanProperties/recording.md +1 -2
- package/dist/glossary/booleanProperties/scalesPageToFit.md +7 -0
- package/dist/glossary/booleanProperties/secure.md +1 -1
- package/dist/glossary/booleanProperties/torch.md +7 -0
- package/dist/glossary/booleanProperties/useCameraX.md +7 -0
- package/dist/glossary/booleanProperties/zoomEnabled.md +7 -0
- package/dist/glossary/colorProperties/badgeBackgroundColor.md +250 -0
- package/dist/glossary/colorProperties/badgeColor.md +1 -1
- package/dist/glossary/colorProperties/badgeTextColor.md +250 -0
- package/dist/glossary/colorProperties/tintColor.md +246 -246
- package/dist/glossary/configurableProperties/duration.md +1 -1
- package/dist/glossary/configurableProperties/height.md +1 -1
- package/dist/glossary/configurableProperties/targetImageHeight.md +69 -0
- package/dist/glossary/configurableProperties/targetImageWidth.md +69 -0
- package/dist/glossary/configurableProperties/width.md +1 -1
- package/dist/glossary/constantProperties/aspectRatio.md +7 -0
- package/dist/glossary/constantProperties/keyboardDismissMode.md +1 -1
- package/dist/glossary/constantProperties/scalingMode.md +3 -3
- package/dist/glossary/constantProperties/state.md +0 -1
- package/dist/glossary/constantProperties/tabMode.md +7 -0
- package/dist/glossary/constantProperties/verticalAlign.md +7 -4
- package/dist/glossary/constantProperties/videoQuality.md +4 -0
- package/dist/glossary-legacy/Window.md +1 -1
- package/dist/glossary-legacy/colorProperties/activeTintColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/activeTitleColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/backgroundColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/backgroundDisabledColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/backgroundFocusedColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/backgroundGradient.md +44 -0
- package/dist/glossary-legacy/colorProperties/backgroundSelectedColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/backgroundSelectedGradient.md +44 -0
- package/dist/glossary-legacy/colorProperties/badgeColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/barColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/borderColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/currentPageIndicatorColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/dateTimeColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/disabledColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/highlightedColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/hintTextColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/imageTouchFeedbackColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/indicatorColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/keyboardToolbarColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/navTintColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/onTintColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/pageIndicatorColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/pagingControlColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/placeholder.md +22 -0
- package/dist/glossary-legacy/colorProperties/pullBackgroundColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/resultsBackgroundColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/resultsSeparatorColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/selectedButtonColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/selectedColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/selectedSubtitleColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/selectedTextColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/separatorColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/shadowColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/subtitleColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/tabsBackgroundColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/tabsBackgroundSelectedColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/textColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/thumbTintColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/tintColor.md +23 -1
- package/dist/glossary-legacy/colorProperties/titleAttributesColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/titleAttributesShadowColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/titleColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/titleTextColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/touchFeedbackColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/trackTintColor.md +22 -0
- package/dist/glossary-legacy/colorProperties/viewShadowColor.md +22 -0
- package/dist/tailwind.tss +709 -289
- package/experimental/completions.js +702 -703
- package/experimental/completions2.js +687 -687
- package/index.js +2271 -2266
- package/lib/completions/titanium/completions-v3.json +331 -22
- package/package.json +8 -2
- package/dist/glossary/booleanProperties/hidden.md +0 -6
- package/dist/glossary/constantProperties/anchorPoint.md +0 -24
- package/dist/glossary/constantProperties/autocapitalization-alternative.md +0 -8
- package/dist/glossary/constantProperties/backgroundGradient-linear.md +0 -25
- package/dist/glossary/constantProperties/backgroundGradient-radial.md +0 -13
- package/dist/glossary/constantProperties/backgroundGradient.md +0 -497
- package/dist/glossary/constantProperties/backgroundSelectedGradient.md +0 -497
- package/dist/glossary/constantProperties/borderRadius-alternative.md +0 -466
- package/dist/glossary/constantProperties/borderRadius-full.md +0 -45
- package/dist/glossary/constantProperties/clipMode.md +0 -6
- package/dist/glossary/constantProperties/constraint.md +0 -6
- package/dist/glossary/constantProperties/content-height-and-width.md +0 -10
- package/dist/glossary/constantProperties/curve-alternative.md +0 -11
- package/dist/glossary/constantProperties/defaultItemTemplate.md +0 -8
- package/dist/glossary/constantProperties/displayCaps.md +0 -11
- package/dist/glossary/constantProperties/draggingType.md +0 -6
- package/dist/glossary/constantProperties/dropShadow.md +0 -12
- package/dist/glossary/constantProperties/ellipsize-alternative.md +0 -17
- package/dist/glossary/constantProperties/filterAttribute.md +0 -6
- package/dist/glossary/constantProperties/flip.md +0 -6
- package/dist/glossary/constantProperties/fontFamily.md +0 -4
- package/dist/glossary/constantProperties/fontSize.md +0 -17
- package/dist/glossary/constantProperties/fontStyle.md +0 -6
- package/dist/glossary/constantProperties/fontWeight.md +0 -13
- package/dist/glossary/constantProperties/grid-cols-rows-span.md +0 -31
- package/dist/glossary/constantProperties/gridFlow.md +0 -8
- package/dist/glossary/constantProperties/gridSystem.md +0 -31
- package/dist/glossary/constantProperties/items.md +0 -8
- package/dist/glossary/constantProperties/margin-alternative.md +0 -263
- package/dist/glossary/constantProperties/margin.md +0 -1137
- package/dist/glossary/constantProperties/minimumFontSize.md +0 -17
- package/dist/glossary/constantProperties/moveByProperties.md +0 -5
- package/dist/glossary/constantProperties/navigationMode.md +0 -6
- package/dist/glossary/constantProperties/orientationModes.md +0 -19
- package/dist/glossary/constantProperties/padding-alternative.md +0 -249
- package/dist/glossary/constantProperties/placement.md +0 -14
- package/dist/glossary/constantProperties/progressBarStyle.md +0 -7
- package/dist/glossary/constantProperties/r-drawable.md +0 -172
- package/dist/glossary/constantProperties/rotate-negative-values.md +0 -18
- package/dist/glossary/constantProperties/scrollType.md +0 -6
- package/dist/glossary/constantProperties/showScrollIndicators.md +0 -10
- package/dist/glossary/constantProperties/statusBarStyle-alternative.md +0 -7
- package/dist/glossary/constantProperties/theme.md +0 -28
- package/dist/glossary/constantProperties/tiMedia.md +0 -18
- package/dist/glossary/constantProperties/titleAttributesShadow-alternative.md +0 -12
- package/dist/glossary/constantProperties/toggle.md +0 -7
- package/dist/glossary/constantProperties/touchEnabled-alternative.md +0 -6
- package/dist/glossary/constantProperties/viewShadowOffset.md +0 -14
- package/dist/glossary/constantProperties/visible-alternative.md +0 -6
- package/dist/glossary/constantProperties/widthHeight.md +0 -68
- package/dist/glossary/constantProperties/zoom-in-out.md +0 -34
package/.editorconfig
CHANGED
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**
|
|
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
|
|
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
|
-
|
|
12
|
+
notifier.notify({ defer: false, isGlobal: true })
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
program
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
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
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
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
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
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
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
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
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
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
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
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
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
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
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
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
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
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
|
-
|
|
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
|
+
```
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
```scss
|
|
2
2
|
// Property: recording
|
|
3
|
-
//
|
|
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
|
```
|