purgetss 3.0.4 → 3.1.2

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 (38) hide show
  1. package/.editorconfig +1 -1
  2. package/README.md +3 -3
  3. package/assets/fonts/bootstrap-icons.ttf +0 -0
  4. package/assets/fonts/tabler-icons.ttf +0 -0
  5. package/assets/images/blend-modes.png +0 -0
  6. package/assets/images/shadow.png +0 -0
  7. package/bin/purgetss +6 -5
  8. package/dist/bootstrapicons.js +1714 -0
  9. package/dist/bootstrapicons.tss +1692 -0
  10. package/dist/tablericons.js +95 -1
  11. package/dist/tablericons.tss +94 -0
  12. package/dist/tailwind.tss +3242 -411
  13. package/docs/configuring-guide.md +18 -5
  14. package/docs/glossary.md +3 -4
  15. package/docs/new-glossary.md +8313 -0
  16. package/docs/whats-new/v2.5.0.md +6 -6
  17. package/docs/whats-new/v3.0.4.md +7 -6
  18. package/docs/whats-new/v3.0.5.md +136 -0
  19. package/docs/whats-new/v3.1.0.md +614 -0
  20. package/docs/whats-new/v3.1.1.md +262 -0
  21. package/index.js +397 -246
  22. package/lib/build-bootstrap-icons-js.js +64 -0
  23. package/lib/build-bootstrap-icons-tss.js +50 -0
  24. package/lib/build-fonts-folder.js +7 -0
  25. package/lib/build-tailwind.js +78 -16
  26. package/lib/helpers.js +2027 -764
  27. package/lib/templates/bootstrap-icons/bootstrap-icons.css +1705 -0
  28. package/lib/templates/bootstrap-icons/bootstrap-icons.ttf +0 -0
  29. package/lib/templates/bootstrap-icons/reset.tss +6 -0
  30. package/lib/templates/bootstrap-icons/template.js +4 -0
  31. package/lib/templates/bootstrap-icons/template.tss +2 -0
  32. package/lib/templates/custom-template.tss +1 -1
  33. package/lib/templates/tablericons/template.js +1 -1
  34. package/lib/templates/tailwind/custom-template.tss +1 -1
  35. package/lib/templates/tailwind/template.tss +1 -1
  36. package/lib/test-function.js +9 -0
  37. package/package.json +8 -5
  38. package/purgetss.config.js +950 -0
package/.editorconfig CHANGED
@@ -2,7 +2,7 @@ root = true
2
2
 
3
3
  [*]
4
4
  indent_style = tab
5
- indent_size = 4
5
+ indent_size = 2
6
6
  charset = utf-8
7
7
  trim_trailing_whitespace = true
8
8
  insert_final_newline = true
package/README.md CHANGED
@@ -19,7 +19,7 @@
19
19
  ------
20
20
 
21
21
  ## Some key features of PurgeTSS
22
- - Provides more than 6000 [Tailwind-like utility classes](https://tailwindcss.com/) ready to use in your projects.
22
+ - Provides more than 8400 [Tailwind-like utility classes](https://tailwindcss.com/) ready to use in your projects.
23
23
  - Creates a clean `app.tss` file with only the classes used in your project by parsing all your XML files.
24
24
  - You can customize any of the default classes through a simple configuration file, or you can create new *just-in-time* classes with arbitrary values within the `Views`.
25
25
  - You can easily use Font Awesome, Material Design, Lineicons, Boxicons, Tabler Icons and Framework7-Icons fonts in `Buttons` and `Labels`.
@@ -273,7 +273,7 @@ If you want to create a new Alloy Project with `purgetss` ready to go, use the `
273
273
  > purgetss create 'Name of the Project' [--vendor="fontawesome, materialdesign, lineicons, boxicons, framework7, tablericons"]
274
274
 
275
275
  # alias:
276
- > purgetss c 'Name of the Project' [-v=fa,md,li,bx,f7]
276
+ > purgetss c 'Name of the Project' [-v=fa,md,li,bx,f7,ti]
277
277
  ```
278
278
 
279
279
  You need to have `app.idprefix` and `app.idprefix` already configured in `ti config`.
@@ -300,7 +300,7 @@ When you run `purgetss create 'Name of the Project'` it will execute the followi
300
300
  - **`alloy new`** To convert it to an Alloy Project.
301
301
  - **`purgetss w`** To autorun `purgetss` every time you compile your project.
302
302
  - **`purgetss b`** To build a new `./purgetss/tailwind.tss` and `./purgetss/config.js` files.
303
- - **`[-v=fa,md,li,bx,f7]`** Set the `--vendor` argument to copy the selected fonts into your project. Including the CommonJS module into `./app/lib/` folder.
303
+ - **`[-v=fa,md,li,bx,f7,ti]`** Set the `--vendor` argument to copy the selected fonts into your project. Including the CommonJS module into `./app/lib/` folder.
304
304
  - **`code .`**, **`subl .`** or **`open .`** It will use either one of these commands to open `VS Code`, `Sublime Text` or the project’s folder in that order.
305
305
 
306
306
  ## fonts
Binary file
Binary file
Binary file
Binary file
package/bin/purgetss CHANGED
@@ -24,7 +24,7 @@ program
24
24
  program
25
25
  .command('init')
26
26
  .alias('i')
27
- .description('Create a `config.js` file for your project')
27
+ .description('Create a `config.js` file for your project.')
28
28
  .help('Creates a minimal `./purgetss/config.js` file at the root of your project.')
29
29
  .action((args, options, logger) => {
30
30
  purgetss.init();
@@ -35,6 +35,7 @@ program
35
35
  .alias('c')
36
36
  .description('Creates a new Alloy Project with `purgetss` already configured.')
37
37
  .help('Creates a new Alloy Project with `purgetss` already configured.')
38
+ .option('-t, --tailwind', 'To install Tailwind CSS in your project to work with `Tailwind CSS Intellisense`.')
38
39
  .option('-v, --vendor <arguments>', 'Use any of the following arguments to copy specific vendors:\n fa = Font Awesome Icons\n md = Material Design Icons\n li = LineIcons\n bx = Boxicons\n f7 = Framework7 Icons\n ti = Tabler Icons')
39
40
  .argument('<name>', 'The name of the project')
40
41
  .action((args, options, logger) => {
@@ -44,7 +45,7 @@ program
44
45
  program
45
46
  .command('build')
46
47
  .alias('b')
47
- .description('Build a custom `tailwind.tss` file')
48
+ .description('Build a custom `tailwind.tss` file.')
48
49
  .help('It will generate a new custom `tailwind.tss` file based on the attributes defined in `./purgetss/config.js`.')
49
50
  .action((args, options, logger) => {
50
51
  purgetss.buildCustom();
@@ -53,7 +54,7 @@ program
53
54
  program
54
55
  .command('watch')
55
56
  .alias('w')
56
- .description('Autorun `purgetss` every time you compile your project')
57
+ .description('Autorun `purgetss` every time you compile your project.')
57
58
  .help('Use this command if you want `purgetss` to autorun every time you compile your project. This is very useful in combination with `LiveView` because it will purge all your files every time you make a change, for example when adding or deleting styles in your Views.')
58
59
  .option('-o, --off', 'To turn off watch mode.')
59
60
  .action((args, options, logger) => {
@@ -63,7 +64,7 @@ program
63
64
  program
64
65
  .command('fonts')
65
66
  .alias('f')
66
- .description('Copy Font Awesome icons, Material Design Icons, LineIcons, Boxicons and Framework7-Icons Font files into your project')
67
+ .description('Copy Font Awesome icons, Material Design Icons, LineIcons, Boxicons and Framework7-Icons Font files into your project.')
67
68
  .help('Command to copy the Free versions of:\n\n • Font Awesome Icons ( Brands, Regular, Solid )\n • Material Design Icons\n • LineIcons\n • Boxicons\n • Framework7 Icons\n • Tabler Icons\n\nInto your projects’s app/assets/fonts/ folder.\n\nWith their names fixed to work with your app whether it is for iOS or for Android.')
68
69
  .option('-v, --vendor <arguments>', 'Use any of the following arguments to copy specific vendors:\n fa = Font Awesome Icons\n md = Material Design Icons\n li = LineIcons\n bx = Boxicons\n f7 = Framework7 Icons\n ti = Tabler Icons')
69
70
  .option('-m, --modules', 'Use the `--modules` option to also copy the corresponding CommonJS module into `./app/lib/` folder.')
@@ -83,7 +84,7 @@ program
83
84
  program
84
85
  .command('update')
85
86
  .alias('u')
86
- .description('Update PurgeTSS to the latest version')
87
+ .description('Update PurgeTSS to the latest version.')
87
88
  .help('Run auto-update regularly!\n\nWe constantly update PurgeTSS to add new features, to include the latest versions of Tailwind and for bug fixes.')
88
89
  .action((args, options, logger) => {
89
90
  logger.info(`${purgetss.colores.purgeLabel} Updating PurgeTSS to the latest version...`);