purgetss 7.3.0 → 7.3.1

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/README.md CHANGED
@@ -56,52 +56,6 @@ npm install -g purgetss@latest
56
56
 
57
57
  ---
58
58
 
59
- ## What's New in v7.2.x
60
-
61
- FontAwesome 7 support and major internal cleanup. PurgeTSS v7.2 adds full support for FontAwesome 7, including the new CSS custom properties format. It also reduces installation size and reorganizes the codebase for better performance and maintainability.
62
-
63
- ### Breaking changes
64
-
65
- - Node.js 20+ required (due to the `inquirer` v13 upgrade)
66
- - Removed deprecated commands:
67
- - `copy-fonts` (use `icon-library` instead)
68
- - `build-legacy` (legacy Tailwind build removed)
69
- - Complete legacy mode removal:
70
- - All legacy-related code and conditional checks eliminated
71
- - Legacy mode no longer supported anywhere in the codebase
72
-
73
- ### Major improvements
74
-
75
- - FontAwesome 7 support: Works with the new `--fa:` custom properties while staying compatible with version 6.
76
- - Reduced installation size: About 45MB smaller by moving non-essential assets to dev dependencies.
77
- - Improved Unicode extraction: Better handling of short hex codes, ASCII symbols, and direct character mappings.
78
- - Optimized internal structure: Codebase split into focused modules for readability and speed.
79
- - Enhanced CLI experience: Commands grouped by purpose, with better error handling and smarter suggestions.
80
-
81
- ### Command improvements
82
-
83
- - `build-fonts` simplified:
84
- - Automatically detects and handles both FontAwesome 6 and 7 formats.
85
- - The `-f` flag now controls both font class names and icon prefixes using filenames.
86
- - `tailwind init`: Removed redundant flags for a cleaner initialization process.
87
- - `shades` command: Better precision when generating custom color shades.
88
- - CLI categories: Commands grouped by purpose: Setup, Development, Assets, Utilities, and Maintenance.
89
-
90
- ### Migration guide
91
-
92
- For most users, upgrading is straightforward:
93
- ```bash
94
- npm install -g purgetss@latest
95
- ```
96
-
97
- Key changes to note:
98
- - Node.js 20 or higher is now required.
99
- - FontAwesome 7: If you use FA7, PurgeTSS will automatically handle the new `--fa:` properties.
100
- - VS Code extension: We recommend `KevinYouu.tailwind-raw-reorder-tw4` for better compatibility with modern Tailwind versions and XML reordering.
101
- - Clean reinstall: If you run into issues, try `npm uninstall -g purgetss && npm install -g purgetss`.
102
-
103
- ---
104
-
105
59
  Here are its main functionalities:
106
60
 
107
61
  - **Utility-First Classes**: PurgeTSS ships with 21,000+ utility classes, so you get a lot of styling options out of the box.
@@ -7,16 +7,16 @@
7
7
  '.fa':{ font: { fontFamily: 'FontAwesome7Free-Solid' } }
8
8
  '.fas': { font: { fontFamily: 'FontAwesome7Free-Solid' } }
9
9
  '.far': { font: { fontFamily: 'FontAwesome7Free-Regular' } }
10
- '.fab': { font: { fontFamily: 'FontAwesome6Brands-Regular' } }
10
+ '.fab': { font: { fontFamily: 'FontAwesome7Brands-Regular' } }
11
11
 
12
12
  '.fa-solid': { font: { fontFamily: 'FontAwesome7Free-Solid' } }
13
13
  '.fa-regular': { font: { fontFamily: 'FontAwesome7Free-Regular' } }
14
- '.fa-brands': { font: { fontFamily: 'FontAwesome6Brands-Regular' } }
14
+ '.fa-brands': { font: { fontFamily: 'FontAwesome7Brands-Regular' } }
15
15
 
16
16
  '.fontawesome': { font: { fontFamily: 'FontAwesome7Free-Solid' } }
17
17
  '.fontawesome-solid': { font: { fontFamily: 'FontAwesome7Free-Solid' } }
18
18
  '.fontawesome-regular': { font: { fontFamily: 'FontAwesome7Free-Regular' } }
19
- '.fontawesome-brands': { font: { fontFamily: 'FontAwesome6Brands-Regular' } }
19
+ '.fontawesome-brands': { font: { fontFamily: 'FontAwesome7Brands-Regular' } }
20
20
 
21
21
  // Font Sizes
22
22
  '.fa-lg': { font: { fontSize: 21 } }
@@ -4,20 +4,20 @@
4
4
  '.fas': { font: { fontFamily: 'FontAwesome6Pro-Solid' } }
5
5
  '.fal': { font: { fontFamily: 'FontAwesome6Pro-Light' } }
6
6
  '.far': { font: { fontFamily: 'FontAwesome6Pro-Regular' } }
7
- '.fab': { font: { fontFamily: 'FontAwesome6Brands-Regular' } }
7
+ '.fab': { font: { fontFamily: 'FontAwesome7Brands-Regular' } }
8
8
 
9
9
  '.fa-thin': { font: { fontFamily: 'FontAwesome6Pro-Thin' } }
10
10
  '.fa-solid': { font: { fontFamily: 'FontAwesome6Pro-Solid' } }
11
11
  '.fa-light': { font: { fontFamily: 'FontAwesome6Pro-Light' } }
12
12
  '.fa-regular': { font: { fontFamily: 'FontAwesome6Pro-Regular' } }
13
- '.fa-brands': { font: { fontFamily: 'FontAwesome6Brands-Regular' } }
13
+ '.fa-brands': { font: { fontFamily: 'FontAwesome7Brands-Regular' } }
14
14
 
15
15
  '.fontawesome': { font: { fontFamily: 'FontAwesome6Pro-Solid' } }
16
16
  '.fontawesome-thin': { font: { fontFamily: 'FontAwesome6Pro-Thin' } }
17
17
  '.fontawesome-solid': { font: { fontFamily: 'FontAwesome6Pro-Solid' } }
18
18
  '.fontawesome-light': { font: { fontFamily: 'FontAwesome6Pro-Light' } }
19
19
  '.fontawesome-regular': { font: { fontFamily: 'FontAwesome6Pro-Regular' } }
20
- '.fontawesome-brands': { font: { fontFamily: 'FontAwesome6Brands-Regular' } }
20
+ '.fontawesome-brands': { font: { fontFamily: 'FontAwesome7Brands-Regular' } }
21
21
 
22
22
  // Font Sizes
23
23
  '.fa-1x': { font: { fontSize: 16 } }
@@ -2,16 +2,16 @@
2
2
  '.fa':{ font: { fontFamily: 'FontAwesome7Free-Solid' } }
3
3
  '.fas': { font: { fontFamily: 'FontAwesome7Free-Solid' } }
4
4
  '.far': { font: { fontFamily: 'FontAwesome7Free-Regular' } }
5
- '.fab': { font: { fontFamily: 'FontAwesome6Brands-Regular' } }
5
+ '.fab': { font: { fontFamily: 'FontAwesome7Brands-Regular' } }
6
6
 
7
7
  '.fa-solid': { font: { fontFamily: 'FontAwesome7Free-Solid' } }
8
8
  '.fa-regular': { font: { fontFamily: 'FontAwesome7Free-Regular' } }
9
- '.fa-brands': { font: { fontFamily: 'FontAwesome6Brands-Regular' } }
9
+ '.fa-brands': { font: { fontFamily: 'FontAwesome7Brands-Regular' } }
10
10
 
11
11
  '.fontawesome': { font: { fontFamily: 'FontAwesome7Free-Solid' } }
12
12
  '.fontawesome-solid': { font: { fontFamily: 'FontAwesome7Free-Solid' } }
13
13
  '.fontawesome-regular': { font: { fontFamily: 'FontAwesome7Free-Regular' } }
14
- '.fontawesome-brands': { font: { fontFamily: 'FontAwesome6Brands-Regular' } }
14
+ '.fontawesome-brands': { font: { fontFamily: 'FontAwesome7Brands-Regular' } }
15
15
 
16
16
  // Font Sizes
17
17
  '.fa-lg': { font: { fontSize: 21 } }
@@ -4,20 +4,20 @@
4
4
  '.fas': { font: { fontFamily: 'FontAwesome6Pro-Solid' } }
5
5
  '.fal': { font: { fontFamily: 'FontAwesome6Pro-Light' } }
6
6
  '.far': { font: { fontFamily: 'FontAwesome6Pro-Regular' } }
7
- '.fab': { font: { fontFamily: 'FontAwesome6Brands-Regular' } }
7
+ '.fab': { font: { fontFamily: 'FontAwesome7Brands-Regular' } }
8
8
 
9
9
  '.fa-thin': { font: { fontFamily: 'FontAwesome6Pro-Thin' } }
10
10
  '.fa-solid': { font: { fontFamily: 'FontAwesome6Pro-Solid' } }
11
11
  '.fa-light': { font: { fontFamily: 'FontAwesome6Pro-Light' } }
12
12
  '.fa-regular': { font: { fontFamily: 'FontAwesome6Pro-Regular' } }
13
- '.fa-brands': { font: { fontFamily: 'FontAwesome6Brands-Regular' } }
13
+ '.fa-brands': { font: { fontFamily: 'FontAwesome7Brands-Regular' } }
14
14
 
15
15
  '.fontawesome': { font: { fontFamily: 'FontAwesome6Pro-Solid' } }
16
16
  '.fontawesome-thin': { font: { fontFamily: 'FontAwesome6Pro-Thin' } }
17
17
  '.fontawesome-solid': { font: { fontFamily: 'FontAwesome6Pro-Solid' } }
18
18
  '.fontawesome-light': { font: { fontFamily: 'FontAwesome6Pro-Light' } }
19
19
  '.fontawesome-regular': { font: { fontFamily: 'FontAwesome6Pro-Regular' } }
20
- '.fontawesome-brands': { font: { fontFamily: 'FontAwesome6Brands-Regular' } }
20
+ '.fontawesome-brands': { font: { fontFamily: 'FontAwesome7Brands-Regular' } }
21
21
 
22
22
  // Font Sizes
23
23
  '.fa-lg': { font: { fontSize: 21 } }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "purgetss",
4
- "version": "7.3.0",
4
+ "version": "7.3.1",
5
5
  "main": "src/index.js",
6
6
  "bin": {
7
7
  "purgetss": "bin/purgetss"
@@ -59,7 +59,7 @@ export function dependencies(options) {
59
59
 
60
60
  // Install Tailwind CSS
61
61
  logger.info(`Installing ${chalk.green('Tailwind CSS')}`)
62
- execSync(`cd "${cwd}" && npm i -D tailwindcss && npx tailwindcss init`)
62
+ execSync(`cd "${cwd}" && npm i -D tailwindcss@3 && npx tailwindcss init`)
63
63
 
64
64
  logger.info('The dependencies and config files have been installed successfully!')
65
65