appshot-cli 0.1.0 → 0.2.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/README.md +377 -5
- package/dist/cli.js +4 -0
- package/dist/cli.js.map +1 -1
- package/dist/commands/build.d.ts.map +1 -1
- package/dist/commands/build.js +4 -1
- package/dist/commands/build.js.map +1 -1
- package/dist/commands/gradients.d.ts +3 -0
- package/dist/commands/gradients.d.ts.map +1 -0
- package/dist/commands/gradients.js +343 -0
- package/dist/commands/gradients.js.map +1 -0
- package/dist/commands/style.d.ts +3 -0
- package/dist/commands/style.d.ts.map +1 -0
- package/dist/commands/style.js +375 -0
- package/dist/commands/style.js.map +1 -0
- package/dist/core/compose.d.ts.map +1 -1
- package/dist/core/compose.js +128 -52
- package/dist/core/compose.js.map +1 -1
- package/dist/core/devices.d.ts.map +1 -1
- package/dist/core/devices.js +413 -31
- package/dist/core/devices.js.map +1 -1
- package/dist/core/gradient-presets.d.ts +25 -0
- package/dist/core/gradient-presets.d.ts.map +1 -0
- package/dist/core/gradient-presets.js +222 -0
- package/dist/core/gradient-presets.js.map +1 -0
- package/dist/core/text-utils.d.ts +39 -0
- package/dist/core/text-utils.d.ts.map +1 -0
- package/dist/core/text-utils.js +137 -0
- package/dist/core/text-utils.js.map +1 -0
- package/dist/types.d.ts +16 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
import { Command } from 'commander';
|
|
2
|
+
import pc from 'picocolors';
|
|
3
|
+
import inquirer from 'inquirer';
|
|
4
|
+
import { promises as fs } from 'fs';
|
|
5
|
+
import path from 'path';
|
|
6
|
+
import sharp from 'sharp';
|
|
7
|
+
import { gradientPresets, getGradientCategories, getGradientsByCategory, getGradientPreset } from '../core/gradient-presets.js';
|
|
8
|
+
import { loadConfig } from '../core/files.js';
|
|
9
|
+
import { renderGradient } from '../core/render.js';
|
|
10
|
+
/**
|
|
11
|
+
* Convert hex color to ANSI color block for terminal display
|
|
12
|
+
*/
|
|
13
|
+
function getColorBlock(color) {
|
|
14
|
+
const r = parseInt(color.slice(1, 3), 16);
|
|
15
|
+
const g = parseInt(color.slice(3, 5), 16);
|
|
16
|
+
const b = parseInt(color.slice(5, 7), 16);
|
|
17
|
+
// Use bright colors for better visibility
|
|
18
|
+
if (r > 200 && g < 100 && b < 100)
|
|
19
|
+
return pc.red('█');
|
|
20
|
+
if (r > 200 && g > 200 && b < 100)
|
|
21
|
+
return pc.yellow('█');
|
|
22
|
+
if (r < 100 && g > 200 && b < 100)
|
|
23
|
+
return pc.green('█');
|
|
24
|
+
if (r < 100 && g < 100 && b > 200)
|
|
25
|
+
return pc.blue('█');
|
|
26
|
+
if (r > 200 && g < 100 && b > 200)
|
|
27
|
+
return pc.magenta('█');
|
|
28
|
+
if (r < 100 && g > 200 && b > 200)
|
|
29
|
+
return pc.cyan('█');
|
|
30
|
+
if (r > 200 && g > 200 && b > 200)
|
|
31
|
+
return pc.white('█');
|
|
32
|
+
if (r < 100 && g < 100 && b < 100)
|
|
33
|
+
return pc.gray('█');
|
|
34
|
+
return pc.dim('█');
|
|
35
|
+
}
|
|
36
|
+
export default function gradientsCmd() {
|
|
37
|
+
const cmd = new Command('gradients')
|
|
38
|
+
.description('Browse and preview gradient presets')
|
|
39
|
+
.option('--list', 'list all available gradients')
|
|
40
|
+
.option('--category <name>', 'filter by category (warm, cool, vibrant, subtle, monochrome, brand)')
|
|
41
|
+
.option('--preview <id>', 'generate preview image for a gradient')
|
|
42
|
+
.option('--sample', 'generate sample images for all gradients')
|
|
43
|
+
.option('--apply <id>', 'apply gradient preset to current project')
|
|
44
|
+
.action(async (opts) => {
|
|
45
|
+
try {
|
|
46
|
+
// List mode
|
|
47
|
+
if (opts.list || (!opts.preview && !opts.sample && !opts.apply)) {
|
|
48
|
+
console.log(pc.bold('\n📊 Gradient Presets\n'));
|
|
49
|
+
const categories = opts.category ? [opts.category] : getGradientCategories();
|
|
50
|
+
for (const category of categories) {
|
|
51
|
+
const categoryGradients = getGradientsByCategory(category);
|
|
52
|
+
if (categoryGradients.length === 0)
|
|
53
|
+
continue;
|
|
54
|
+
// Category header with emoji
|
|
55
|
+
const categoryEmoji = getCategoryEmoji(category);
|
|
56
|
+
console.log(pc.bold(`${categoryEmoji} ${category.charAt(0).toUpperCase() + category.slice(1)} Gradients`));
|
|
57
|
+
console.log(pc.dim('─'.repeat(50)));
|
|
58
|
+
for (const gradient of categoryGradients) {
|
|
59
|
+
// Display gradient with color blocks
|
|
60
|
+
const colorBlocks = gradient.colors.map(getColorBlock).join('');
|
|
61
|
+
const directionIcon = getDirectionIcon(gradient.direction);
|
|
62
|
+
console.log(` ${pc.cyan(gradient.id.padEnd(12))} ${colorBlocks} ${directionIcon} ${pc.dim(gradient.description)}`);
|
|
63
|
+
}
|
|
64
|
+
console.log();
|
|
65
|
+
}
|
|
66
|
+
console.log(pc.dim('Usage:'));
|
|
67
|
+
console.log(pc.dim(' appshot gradients --preview <id> Preview a gradient'));
|
|
68
|
+
console.log(pc.dim(' appshot gradients --apply <id> Apply to project'));
|
|
69
|
+
console.log(pc.dim(' appshot gradients --sample Generate all samples'));
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
// Preview mode
|
|
73
|
+
if (opts.preview) {
|
|
74
|
+
const gradient = getGradientPreset(opts.preview);
|
|
75
|
+
if (!gradient) {
|
|
76
|
+
console.error(pc.red(`Gradient "${opts.preview}" not found`));
|
|
77
|
+
process.exit(1);
|
|
78
|
+
}
|
|
79
|
+
console.log(pc.cyan('Generating preview for:'), gradient.name);
|
|
80
|
+
console.log(pc.dim(`Colors: ${gradient.colors.join(' → ')}`));
|
|
81
|
+
console.log(pc.dim(`Direction: ${gradient.direction}`));
|
|
82
|
+
// Generate preview image
|
|
83
|
+
const previewPath = path.join(process.cwd(), `gradient-${gradient.id}.png`);
|
|
84
|
+
const buffer = await renderGradient(400, 800, {
|
|
85
|
+
colors: gradient.colors,
|
|
86
|
+
direction: gradient.direction
|
|
87
|
+
});
|
|
88
|
+
await sharp(buffer).toFile(previewPath);
|
|
89
|
+
console.log(pc.green('✓'), `Preview saved to ${previewPath}`);
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
// Sample mode - generate all gradient samples
|
|
93
|
+
if (opts.sample) {
|
|
94
|
+
console.log(pc.cyan('Generating gradient samples...\n'));
|
|
95
|
+
const samplesDir = path.join(process.cwd(), 'gradient-samples');
|
|
96
|
+
await fs.mkdir(samplesDir, { recursive: true });
|
|
97
|
+
for (const gradient of gradientPresets) {
|
|
98
|
+
const buffer = await renderGradient(200, 400, {
|
|
99
|
+
colors: gradient.colors,
|
|
100
|
+
direction: gradient.direction
|
|
101
|
+
});
|
|
102
|
+
const filePath = path.join(samplesDir, `${gradient.id}.png`);
|
|
103
|
+
await sharp(buffer).toFile(filePath);
|
|
104
|
+
const colorBlocks = gradient.colors.map(getColorBlock).join('');
|
|
105
|
+
console.log(pc.green('✓'), `${gradient.id.padEnd(12)} ${colorBlocks}`);
|
|
106
|
+
}
|
|
107
|
+
console.log('\n' + pc.green('✓'), `${gradientPresets.length} samples saved to gradient-samples/`);
|
|
108
|
+
// Generate HTML preview page
|
|
109
|
+
const html = generatePreviewHTML();
|
|
110
|
+
await fs.writeFile(path.join(samplesDir, 'preview.html'), html);
|
|
111
|
+
console.log(pc.green('✓'), 'Preview page saved to gradient-samples/preview.html');
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
// Apply mode
|
|
115
|
+
if (opts.apply) {
|
|
116
|
+
const gradient = getGradientPreset(opts.apply);
|
|
117
|
+
if (!gradient) {
|
|
118
|
+
console.error(pc.red(`Gradient "${opts.apply}" not found`));
|
|
119
|
+
process.exit(1);
|
|
120
|
+
}
|
|
121
|
+
// Load current config
|
|
122
|
+
const config = await loadConfig();
|
|
123
|
+
// Update gradient settings
|
|
124
|
+
config.gradient = {
|
|
125
|
+
colors: gradient.colors,
|
|
126
|
+
direction: gradient.direction
|
|
127
|
+
};
|
|
128
|
+
// Save config
|
|
129
|
+
const configPath = path.join(process.cwd(), '.appshot', 'config.json');
|
|
130
|
+
await fs.writeFile(configPath, JSON.stringify(config, null, 2));
|
|
131
|
+
console.log(pc.green('✓'), `Applied "${gradient.name}" gradient`);
|
|
132
|
+
console.log(pc.dim(`Colors: ${gradient.colors.join(' → ')}`));
|
|
133
|
+
console.log(pc.dim(`Direction: ${gradient.direction}`));
|
|
134
|
+
console.log('\nRun', pc.cyan('appshot build'), 'to generate screenshots with the new gradient');
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
catch (error) {
|
|
139
|
+
console.error(pc.red('Error:'), error instanceof Error ? error.message : String(error));
|
|
140
|
+
process.exit(1);
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
// Interactive selection subcommand
|
|
144
|
+
cmd.command('select')
|
|
145
|
+
.description('Interactively select and apply a gradient')
|
|
146
|
+
.action(async () => {
|
|
147
|
+
try {
|
|
148
|
+
// Category selection
|
|
149
|
+
const categoryAnswer = await inquirer.prompt([{
|
|
150
|
+
type: 'list',
|
|
151
|
+
name: 'category',
|
|
152
|
+
message: 'Choose a gradient category:',
|
|
153
|
+
choices: [
|
|
154
|
+
{ name: '🌅 Warm - Sunset, sunrise, autumn colors', value: 'warm' },
|
|
155
|
+
{ name: '❄️ Cool - Ocean, ice, mint colors', value: 'cool' },
|
|
156
|
+
{ name: '🎨 Vibrant - Bold, bright, energetic', value: 'vibrant' },
|
|
157
|
+
{ name: '☁️ Subtle - Soft, muted, professional', value: 'subtle' },
|
|
158
|
+
{ name: '⚫ Monochrome - Black, white, gray', value: 'monochrome' },
|
|
159
|
+
{ name: '🏢 Brand - Popular brand colors', value: 'brand' },
|
|
160
|
+
{ name: 'All Categories', value: 'all' }
|
|
161
|
+
]
|
|
162
|
+
}]);
|
|
163
|
+
// Get gradients for selected category
|
|
164
|
+
const gradients = categoryAnswer.category === 'all'
|
|
165
|
+
? gradientPresets
|
|
166
|
+
: getGradientsByCategory(categoryAnswer.category);
|
|
167
|
+
// Gradient selection with colored preview
|
|
168
|
+
const gradientChoices = gradients.map(g => {
|
|
169
|
+
const colorPreview = g.colors.map(getColorBlock).join('');
|
|
170
|
+
return {
|
|
171
|
+
name: `${colorPreview} ${g.name} - ${g.description}`,
|
|
172
|
+
value: g.id
|
|
173
|
+
};
|
|
174
|
+
});
|
|
175
|
+
const gradientAnswer = await inquirer.prompt([{
|
|
176
|
+
type: 'list',
|
|
177
|
+
name: 'gradient',
|
|
178
|
+
message: 'Select a gradient:',
|
|
179
|
+
choices: gradientChoices,
|
|
180
|
+
pageSize: 15
|
|
181
|
+
}]);
|
|
182
|
+
// Preview before applying
|
|
183
|
+
const selectedGradient = getGradientPreset(gradientAnswer.gradient);
|
|
184
|
+
console.log('\n' + pc.cyan('Selected:'), selectedGradient.name);
|
|
185
|
+
console.log(pc.dim(`Colors: ${selectedGradient.colors.join(' → ')}`));
|
|
186
|
+
console.log(pc.dim(`Direction: ${selectedGradient.direction}`));
|
|
187
|
+
const confirmAnswer = await inquirer.prompt([{
|
|
188
|
+
type: 'confirm',
|
|
189
|
+
name: 'apply',
|
|
190
|
+
message: 'Apply this gradient to your project?',
|
|
191
|
+
default: true
|
|
192
|
+
}]);
|
|
193
|
+
if (confirmAnswer.apply) {
|
|
194
|
+
// Load and update config
|
|
195
|
+
const config = await loadConfig();
|
|
196
|
+
config.gradient = {
|
|
197
|
+
colors: selectedGradient.colors,
|
|
198
|
+
direction: selectedGradient.direction
|
|
199
|
+
};
|
|
200
|
+
const configPath = path.join(process.cwd(), '.appshot', 'config.json');
|
|
201
|
+
await fs.writeFile(configPath, JSON.stringify(config, null, 2));
|
|
202
|
+
console.log(pc.green('✓'), 'Gradient applied successfully!');
|
|
203
|
+
console.log('\nRun', pc.cyan('appshot build'), 'to generate screenshots with the new gradient');
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
catch (error) {
|
|
207
|
+
console.error(pc.red('Error:'), error instanceof Error ? error.message : String(error));
|
|
208
|
+
process.exit(1);
|
|
209
|
+
}
|
|
210
|
+
});
|
|
211
|
+
return cmd;
|
|
212
|
+
}
|
|
213
|
+
function getCategoryEmoji(category) {
|
|
214
|
+
const emojis = {
|
|
215
|
+
warm: '🌅',
|
|
216
|
+
cool: '❄️',
|
|
217
|
+
vibrant: '🎨',
|
|
218
|
+
subtle: '☁️',
|
|
219
|
+
monochrome: '⚫',
|
|
220
|
+
brand: '🏢'
|
|
221
|
+
};
|
|
222
|
+
return emojis[category] || '📊';
|
|
223
|
+
}
|
|
224
|
+
function getDirectionIcon(direction) {
|
|
225
|
+
const icons = {
|
|
226
|
+
'top-bottom': '↓',
|
|
227
|
+
'bottom-top': '↑',
|
|
228
|
+
'left-right': '→',
|
|
229
|
+
'right-left': '←',
|
|
230
|
+
'diagonal': '↘'
|
|
231
|
+
};
|
|
232
|
+
return pc.dim(icons[direction] || '');
|
|
233
|
+
}
|
|
234
|
+
function generatePreviewHTML() {
|
|
235
|
+
const categories = getGradientCategories();
|
|
236
|
+
let html = `<!DOCTYPE html>
|
|
237
|
+
<html>
|
|
238
|
+
<head>
|
|
239
|
+
<title>Appshot Gradient Presets</title>
|
|
240
|
+
<style>
|
|
241
|
+
body {
|
|
242
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
243
|
+
background: #f5f5f5;
|
|
244
|
+
padding: 20px;
|
|
245
|
+
margin: 0;
|
|
246
|
+
}
|
|
247
|
+
h1 {
|
|
248
|
+
text-align: center;
|
|
249
|
+
color: #333;
|
|
250
|
+
margin-bottom: 40px;
|
|
251
|
+
}
|
|
252
|
+
.category {
|
|
253
|
+
margin-bottom: 40px;
|
|
254
|
+
}
|
|
255
|
+
.category h2 {
|
|
256
|
+
color: #555;
|
|
257
|
+
border-bottom: 2px solid #ddd;
|
|
258
|
+
padding-bottom: 10px;
|
|
259
|
+
margin-bottom: 20px;
|
|
260
|
+
}
|
|
261
|
+
.gradients {
|
|
262
|
+
display: grid;
|
|
263
|
+
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
264
|
+
gap: 20px;
|
|
265
|
+
}
|
|
266
|
+
.gradient {
|
|
267
|
+
background: white;
|
|
268
|
+
border-radius: 8px;
|
|
269
|
+
overflow: hidden;
|
|
270
|
+
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
|
271
|
+
transition: transform 0.2s;
|
|
272
|
+
}
|
|
273
|
+
.gradient:hover {
|
|
274
|
+
transform: translateY(-2px);
|
|
275
|
+
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
|
|
276
|
+
}
|
|
277
|
+
.gradient img {
|
|
278
|
+
width: 100%;
|
|
279
|
+
height: 200px;
|
|
280
|
+
object-fit: cover;
|
|
281
|
+
}
|
|
282
|
+
.gradient-info {
|
|
283
|
+
padding: 12px;
|
|
284
|
+
}
|
|
285
|
+
.gradient-name {
|
|
286
|
+
font-weight: 600;
|
|
287
|
+
color: #333;
|
|
288
|
+
margin-bottom: 4px;
|
|
289
|
+
}
|
|
290
|
+
.gradient-desc {
|
|
291
|
+
font-size: 12px;
|
|
292
|
+
color: #666;
|
|
293
|
+
margin-bottom: 8px;
|
|
294
|
+
}
|
|
295
|
+
.gradient-colors {
|
|
296
|
+
display: flex;
|
|
297
|
+
height: 20px;
|
|
298
|
+
border-radius: 4px;
|
|
299
|
+
overflow: hidden;
|
|
300
|
+
}
|
|
301
|
+
.color-block {
|
|
302
|
+
flex: 1;
|
|
303
|
+
}
|
|
304
|
+
.gradient-id {
|
|
305
|
+
font-family: monospace;
|
|
306
|
+
font-size: 11px;
|
|
307
|
+
color: #999;
|
|
308
|
+
margin-top: 8px;
|
|
309
|
+
}
|
|
310
|
+
</style>
|
|
311
|
+
</head>
|
|
312
|
+
<body>
|
|
313
|
+
<h1>🎨 Appshot Gradient Presets</h1>`;
|
|
314
|
+
for (const category of categories) {
|
|
315
|
+
const gradients = getGradientsByCategory(category);
|
|
316
|
+
const emoji = getCategoryEmoji(category);
|
|
317
|
+
html += `
|
|
318
|
+
<div class="category">
|
|
319
|
+
<h2>${emoji} ${category.charAt(0).toUpperCase() + category.slice(1)}</h2>
|
|
320
|
+
<div class="gradients">`;
|
|
321
|
+
for (const gradient of gradients) {
|
|
322
|
+
const colorBlocks = gradient.colors.map(color => `<div class="color-block" style="background: ${color}"></div>`).join('');
|
|
323
|
+
html += `
|
|
324
|
+
<div class="gradient">
|
|
325
|
+
<img src="${gradient.id}.png" alt="${gradient.name}">
|
|
326
|
+
<div class="gradient-info">
|
|
327
|
+
<div class="gradient-name">${gradient.name}</div>
|
|
328
|
+
<div class="gradient-desc">${gradient.description}</div>
|
|
329
|
+
<div class="gradient-colors">${colorBlocks}</div>
|
|
330
|
+
<div class="gradient-id">ID: ${gradient.id}</div>
|
|
331
|
+
</div>
|
|
332
|
+
</div>`;
|
|
333
|
+
}
|
|
334
|
+
html += `
|
|
335
|
+
</div>
|
|
336
|
+
</div>`;
|
|
337
|
+
}
|
|
338
|
+
html += `
|
|
339
|
+
</body>
|
|
340
|
+
</html>`;
|
|
341
|
+
return html;
|
|
342
|
+
}
|
|
343
|
+
//# sourceMappingURL=gradients.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gradients.js","sourceRoot":"","sources":["../../src/commands/gradients.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,IAAI,CAAC;AACpC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChI,OAAO,EAAE,UAAU,EAAE,MAA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