scaff-ui 0.1.0 → 0.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 (2) hide show
  1. package/README.md +170 -15
  2. package/package.json +6 -5
package/README.md CHANGED
@@ -1,15 +1,170 @@
1
- # scaff-js
2
-
3
- A lightweight CLI for generating simple, ready-made frontend components.
4
-
5
- Scaff provides common web structure patterns such as headers, heroes, and footers using Tailwind CSS. Generated code is intentionally simple, editable, and easy to adapt.
6
-
7
- Scaff does not create projects or manage project configuration.
8
-
9
- ## Installation
10
-
11
- Install Scaff in your existing frontend project:
12
-
13
- ```bash
14
- npm install scaff-js
15
- ```
1
+ # scaff-ui
2
+
3
+ Scaffold the UI. Make it yours.
4
+
5
+ `scaff-ui` is a minimalistic CLI-based frontend component generator for developers who want to speed up development without dropping pre-made, highly opinionated UI into their projects. It generates responsive, customizable implementations of common UI patterns across multiple frontend frameworks, giving developers a practical starting point they can adapt to their project's requirements
6
+
7
+ ## Features
8
+
9
+ * Generate ready-made frontend components
10
+ * Supports HTML and React
11
+ * Multiple variants for each component
12
+ * Uses Tailwind CSS utility classes
13
+ * Generates directly into `src/components`
14
+ * No project setup or configuration required
15
+ * No unnecessary abstractions
16
+
17
+ ## Requirements
18
+
19
+ * Node.js 20 or later
20
+ * An existing frontend project
21
+ * Tailwind CSS already installed and configured
22
+
23
+ `scaff-ui` does not install or configure Tailwind CSS, React, Vite, or other build tools.
24
+
25
+ ## Installation
26
+
27
+ Install `scaff-ui` in your existing frontend project:
28
+
29
+ ```bash
30
+ npm install scaff-ui
31
+ ```
32
+
33
+ ## Usage
34
+
35
+ Run the interactive component generator from your project's root directory:
36
+
37
+ ```bash
38
+ npx scf add
39
+ ```
40
+
41
+ You will be prompted to select a framework, component, and variant:
42
+
43
+ ```text
44
+ ? Select Framework
45
+ ❯ HTML
46
+ React
47
+
48
+ ? Select Component
49
+ ❯ Header
50
+ Hero
51
+ Footer
52
+
53
+ ? Select Variant
54
+ ❯ Logo + Navigation Links
55
+ Logo + Navigation Links + CTA Button
56
+ Navigation Links Only
57
+ ```
58
+
59
+ You can also specify a component directly:
60
+
61
+ ```bash
62
+ npx scf add header
63
+ npx scf add hero
64
+ npx scf add footer
65
+ ```
66
+
67
+ To view available components:
68
+
69
+ ```bash
70
+ npx scf list
71
+ ```
72
+
73
+ ## Generated Files
74
+
75
+ Components are generated inside your project's `src/components` directory.
76
+
77
+ ### React
78
+
79
+ ```text
80
+ src/
81
+ └── components/
82
+ ├── Header.jsx
83
+ ├── Hero.jsx
84
+ └── Footer.jsx
85
+ ```
86
+
87
+ ### HTML
88
+
89
+ ```text
90
+ src/
91
+ └── components/
92
+ ├── header.html
93
+ ├── hero.html
94
+ └── footer.html
95
+ ```
96
+
97
+ ## Components
98
+
99
+ ### Header
100
+
101
+ Available variants:
102
+
103
+ * Logo + Navigation Links
104
+ * Logo + Navigation Links + CTA Button
105
+ * Navigation Links Only
106
+
107
+ ### Hero
108
+
109
+ Available variants:
110
+
111
+ * Heading + Description + Button
112
+ * Heading + Description + Button + Image
113
+ * Heading + Description Only
114
+
115
+ ### Footer
116
+
117
+ Available variants:
118
+
119
+ * Copyright Only
120
+ * Copyright + Navigation Links
121
+ * Copyright + Social Links
122
+
123
+ ## Tailwind CSS
124
+
125
+ Generated components use Tailwind CSS utility classes.
126
+
127
+ `scaff-ui` assumes Tailwind CSS is already installed and configured in your project.
128
+
129
+ It does not:
130
+
131
+ * Install Tailwind CSS
132
+ * Configure Tailwind CSS
133
+ * Install React
134
+ * Configure Vite
135
+ * Create a project
136
+ * Manage build tools
137
+
138
+ This keeps `scaff-ui` focused on generating frontend source code.
139
+
140
+ ## Development
141
+
142
+ Clone the repository and install dependencies:
143
+
144
+ ```bash
145
+ git clone https://github.com/carleoj/scaff-ui.git
146
+ cd scaff-ui
147
+ npm install
148
+ ```
149
+
150
+ Link the package locally:
151
+
152
+ ```bash
153
+ npm link
154
+ ```
155
+
156
+ You can then use the `scf` command while developing:
157
+
158
+ ```bash
159
+ scf add
160
+ ```
161
+
162
+ Run tests with:
163
+
164
+ ```bash
165
+ npm test
166
+ ```
167
+
168
+ ## License
169
+
170
+ MIT
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "scaff-ui",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "A lightweight CLI for generating simple, ready-made frontend components.",
5
+ "type": "module",
5
6
  "bin": {
6
7
  "scf": "./bin/scf.js"
7
8
  },
@@ -17,16 +18,16 @@
17
18
  "html",
18
19
  "react"
19
20
  ],
20
- "author": "Carl Eoj",
21
+ "author": "Carl P.",
21
22
  "license": "MIT",
22
23
  "repository": {
23
24
  "type": "git",
24
- "url": "git+https://github.com/carleoj/scaff-js.git"
25
+ "url": "git+https://github.com/carleoj/scaff-ui.git"
25
26
  },
26
27
  "bugs": {
27
- "url": "https://github.com/carleoj/scaff-js/issues"
28
+ "url": "https://github.com/carleoj/scaff-ui/issues"
28
29
  },
29
- "homepage": "https://github.com/carleoj/scaff-js#readme",
30
+ "homepage": "https://github.com/carleoj/scaff-ui#readme",
30
31
  "engines": {
31
32
  "node": ">=20"
32
33
  },