frontend-guardian 0.1.17 → 0.1.18

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 (2) hide show
  1. package/README.md +9 -31
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,37 +1,15 @@
1
- # frontend-guardian (CLI)
1
+ Scan engine for Frontend Guardian.
2
2
 
3
- Scan a folder or ZIP for Tailwind & component consistency.
3
+ What is Frontend Guardian? It helps frontend teams keep UIs consistent. After you ship, spacing, borders, colors, and components often drift. This tool scans your code (Tailwind, JSX/TSX) and flags inconsistent spacing, arbitrary colors, mixed border-radius, duplicate components, and similar issues so you can fix them before they pile up.
4
4
 
5
- ## Commands (from npm)
5
+ Use this package only if you want to run the scanner from your own Node code (programmatic use).
6
6
 
7
- ```bash
8
- npx frontend-guardian . # scan current dir
9
- npx frontend-guardian ./src # scan ./src
10
- npx frontend-guardian . --fail-on-score 70 # exit 1 if score < 70 (for CI)
11
- npx frontend-guardian . --json # output JSON
12
- npx frontend-guardian . --suggest # AI fix suggestions (hosted API or GEMINI_API_KEY)
13
- npx frontend-guardian init # add .github/workflows/frontend-guardian.yml to repo
14
- ```
7
+ Most users: run the CLI instead (no install):
15
8
 
16
- ## Local (from repo)
9
+ npx frontend-guardian .
10
+ npx frontend-guardian init # add GitHub Actions workflow to your repo
11
+ npx frontend-guardian . --suggest # AI fix suggestions (hosted API or GEMINI_API_KEY)
17
12
 
18
- ```bash
19
- pnpm run build:packages
20
- pnpm cli .
21
- # or
22
- node packages/cli/dist/cli.js .
23
- ```
13
+ Install (optional) — only if you're embedding the scanner in your app:
24
14
 
25
- ## Publish to npm
26
-
27
- From repo root:
28
-
29
- ```bash
30
- pnpm run build:packages
31
- cd packages/core && npm publish --access public
32
- cd packages/cli && npm publish --access public
33
- ```
34
-
35
- ## Output
36
-
37
- Score (0–100), warnings (spacing, radius, colors, buttons, unused imports), duplicate components.
15
+ npm i @justinmoto/frontend-guardian-core
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "frontend-guardian",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "description": "Scan frontend projects for Tailwind & component consistency (Phase 1 CLI)",
5
5
  "type": "module",
6
6
  "bin": {