create-ng-tailwind 3.0.1 → 3.1.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.
- package/CHANGELOG.md +11 -5
- package/README.md +1 -1
- package/lib/templates/starter/index.js +13 -7
- package/lib/utils/ai-config.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,16 +5,22 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
-
## [3.0
|
|
8
|
+
## [3.1.0] - 2025-11-30
|
|
9
|
+
|
|
10
|
+
### ✨ New Features
|
|
11
|
+
|
|
12
|
+
- **simple-git-hooks**: Added lightweight pre-commit hooks (~1KB vs Husky's ~40KB)
|
|
13
|
+
- Runs `npm run lint` before each commit
|
|
14
|
+
- Auto-setup via `prepare` script on `npm install`
|
|
15
|
+
- Config stored in package.json (no separate folder)
|
|
16
|
+
- Zero dependencies, much simpler than Husky
|
|
9
17
|
|
|
10
18
|
### 🗑️ Removed
|
|
11
19
|
|
|
12
|
-
- **Husky**:
|
|
20
|
+
- **Husky**: Replaced Husky and lint-staged with simple-git-hooks
|
|
13
21
|
- Removed `husky` and `lint-staged` dev dependencies
|
|
14
|
-
- Removed `prepare` script for Husky installation
|
|
15
22
|
- Removed `setupHusky()` method
|
|
16
|
-
-
|
|
17
|
-
- Projects now use ESLint + Prettier without pre-commit hooks (developers can add Husky manually if needed)
|
|
23
|
+
- Lighter alternative with same functionality
|
|
18
24
|
|
|
19
25
|
## [3.0.0] - 2025-11-30
|
|
20
26
|
|
package/README.md
CHANGED
|
@@ -154,7 +154,7 @@ The **Starter Template** includes 25+ production-ready features:
|
|
|
154
154
|
- **Authentication Pages** - Login, Register, Forgot Password
|
|
155
155
|
- **Example Pages** - Home, About, Contact with reactive forms
|
|
156
156
|
- **PWA Support** - Service worker configuration
|
|
157
|
-
- **Linting & Formatting** - ESLint + Prettier
|
|
157
|
+
- **Linting & Formatting** - ESLint + Prettier + simple-git-hooks (pre-commit linting)
|
|
158
158
|
- **Modern Stack** - Tailwind v4, TypeScript, Signals
|
|
159
159
|
|
|
160
160
|
## 🎨 Tailwind CSS v4
|
|
@@ -64,7 +64,7 @@ const starter = {
|
|
|
64
64
|
'API, Auth, Storage, Loading, Cache, SEO services',
|
|
65
65
|
'TypeScript interfaces and models',
|
|
66
66
|
'Responsive Tailwind design system',
|
|
67
|
-
'ESLint + Prettier
|
|
67
|
+
'ESLint + Prettier + simple-git-hooks (pre-commit)',
|
|
68
68
|
'PWA-ready with service worker configuration',
|
|
69
69
|
'Icons library (@ng-icons/heroicons)',
|
|
70
70
|
],
|
|
@@ -129,7 +129,7 @@ const starter = {
|
|
|
129
129
|
completeStep('Utility pipes & directives');
|
|
130
130
|
completeStep('Authentication pages & guards');
|
|
131
131
|
completeStep('PWA support configured');
|
|
132
|
-
completeStep('ESLint + Prettier');
|
|
132
|
+
completeStep('ESLint + Prettier + simple-git-hooks');
|
|
133
133
|
console.log('');
|
|
134
134
|
},
|
|
135
135
|
|
|
@@ -3170,6 +3170,10 @@ export class HomeComponent implements OnInit {
|
|
|
3170
3170
|
<span class="font-mono text-gray-700">Prettier</span>
|
|
3171
3171
|
<span class="text-gray-500">{{ 'home.preConfigured.formatting' | translate }}</span>
|
|
3172
3172
|
</div>
|
|
3173
|
+
<div class="flex justify-between items-center p-2 bg-gray-50 rounded">
|
|
3174
|
+
<span class="font-mono text-gray-700">simple-git-hooks</span>
|
|
3175
|
+
<span class="text-gray-500">{{ 'home.preConfigured.gitHooks' | translate }}</span>
|
|
3176
|
+
</div>
|
|
3173
3177
|
<div class="flex justify-between items-center p-2 bg-gray-50 rounded">
|
|
3174
3178
|
<span class="font-mono text-gray-700">TypeScript</span>
|
|
3175
3179
|
<span class="text-gray-500">{{ 'home.preConfigured.typeSafety' | translate }}</span>
|
|
@@ -3723,6 +3727,7 @@ export class AboutComponent implements OnInit {
|
|
|
3723
3727
|
prettier: '^3.5.3',
|
|
3724
3728
|
'eslint-config-prettier': '^10.1.2',
|
|
3725
3729
|
'prettier-plugin-tailwindcss': '^0.6.11',
|
|
3730
|
+
'simple-git-hooks': '^2.11.1',
|
|
3726
3731
|
};
|
|
3727
3732
|
|
|
3728
3733
|
// Add enhanced scripts
|
|
@@ -3734,6 +3739,7 @@ export class AboutComponent implements OnInit {
|
|
|
3734
3739
|
'format:ts': 'prettier --write "**/*.ts"',
|
|
3735
3740
|
'code:check': 'npm run format:check && npm run lint',
|
|
3736
3741
|
'code:fix': 'npm run format && npm run lint:fix',
|
|
3742
|
+
prepare: 'simple-git-hooks',
|
|
3737
3743
|
};
|
|
3738
3744
|
|
|
3739
3745
|
// Add prettier configuration
|
|
@@ -3756,10 +3762,9 @@ export class AboutComponent implements OnInit {
|
|
|
3756
3762
|
],
|
|
3757
3763
|
};
|
|
3758
3764
|
|
|
3759
|
-
//
|
|
3760
|
-
const
|
|
3761
|
-
'
|
|
3762
|
-
'*.css': ['prettier --write'],
|
|
3765
|
+
// simple-git-hooks configuration (lightweight pre-commit hooks)
|
|
3766
|
+
const simpleGitHooksConfig = {
|
|
3767
|
+
'pre-commit': 'npm run lint',
|
|
3763
3768
|
};
|
|
3764
3769
|
|
|
3765
3770
|
// Update package.json
|
|
@@ -3769,7 +3774,7 @@ export class AboutComponent implements OnInit {
|
|
|
3769
3774
|
};
|
|
3770
3775
|
packageJson.scripts = { ...packageJson.scripts, ...enhancedScripts };
|
|
3771
3776
|
packageJson.prettier = prettierConfig;
|
|
3772
|
-
packageJson['
|
|
3777
|
+
packageJson['simple-git-hooks'] = simpleGitHooksConfig;
|
|
3773
3778
|
|
|
3774
3779
|
// Write updated package.json
|
|
3775
3780
|
await fs.writeFile(packageJsonPath, JSON.stringify(packageJson, null, 2));
|
|
@@ -3951,6 +3956,7 @@ node_modules/
|
|
|
3951
3956
|
'prettier@^3.5.3',
|
|
3952
3957
|
'eslint-config-prettier@^10.1.2',
|
|
3953
3958
|
'prettier-plugin-tailwindcss@^0.6.11',
|
|
3959
|
+
'simple-git-hooks@^2.11.1',
|
|
3954
3960
|
];
|
|
3955
3961
|
|
|
3956
3962
|
await execa.command(`npm install ${packages.join(' ')} --save-dev`, {
|
package/lib/utils/ai-config.js
CHANGED
|
@@ -50,7 +50,7 @@ src/app/
|
|
|
50
50
|
- **Forms:** Reactive Forms with validation
|
|
51
51
|
- **Routing:** Angular Router with lazy loading
|
|
52
52
|
- **Icons:** @ng-icons/heroicons
|
|
53
|
-
- **Linting:** ESLint + Prettier
|
|
53
|
+
- **Linting:** ESLint + Prettier + simple-git-hooks
|
|
54
54
|
|
|
55
55
|
## 🎯 Path Aliases (Use These!)
|
|
56
56
|
|