Skip to content

Commit 798593e

Browse files
committed
chore: wip
1 parent 3b36461 commit 798593e

File tree

221 files changed

+1197
-3324
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

221 files changed

+1197
-3324
lines changed

app/Actions/Buddy/CommandsAction.ts

Lines changed: 15 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ export default new Action({
1919
{
2020
signature: 'buddy --help',
2121
description: 'View help menu',
22-
notes:
23-
'Please note: you may suffix any command with the e.g `command --help` flag to review the help menu',
22+
notes: 'Please note: you may suffix any command with the e.g `command --help` flag to review the help menu',
2423
synopsis: 'buddy --help',
2524
aliases: [],
2625
arguments: [],
@@ -136,8 +135,7 @@ export default new Action({
136135
},
137136
{
138137
signature: 'buddy dev -i',
139-
description:
140-
'Prompts any of the dev servers (components, functions, views, or docs)',
138+
description: 'Prompts any of the dev servers (components, functions, views, or docs)',
141139
notes: '',
142140
synopsis: 'buddy dev -i',
143141
aliases: [],
@@ -209,8 +207,7 @@ export default new Action({
209207
},
210208
{
211209
signature: 'buddy dev docs',
212-
description:
213-
'Also starts the local docs dev server (colon is optional)',
210+
description: 'Also starts the local docs dev server (colon is optional)',
214211
notes: '',
215212
synopsis: 'buddy dev docs',
216213
aliases: [],
@@ -282,8 +279,7 @@ export default new Action({
282279
},
283280
{
284281
signature: 'buddy build:web-components',
285-
description:
286-
'Builds framework-agnostic Web Component library (i.e. Custom Elements)',
282+
description: 'Builds framework-agnostic Web Component library (i.e. Custom Elements)',
287283
notes: '',
288284
synopsis: 'buddy build:web-components',
289285
aliases: [],
@@ -341,8 +337,7 @@ export default new Action({
341337
arguments: [
342338
{
343339
name: 'name',
344-
description:
345-
'The function name to be created. Must be in <snake-case>',
340+
description: 'The function name to be created. Must be in <snake-case>',
346341
value_required: true,
347342
},
348343
],
@@ -357,8 +352,7 @@ export default new Action({
357352
arguments: [
358353
{
359354
name: 'name',
360-
description:
361-
'The component to be created. Must be in <snake-case>',
355+
description: 'The component to be created. Must be in <snake-case>',
362356
value_required: true,
363357
},
364358
],
@@ -456,8 +450,7 @@ export default new Action({
456450
},
457451
{
458452
signature: 'buddy make:lang',
459-
description:
460-
'Bootstraps a new yml language file under `lang/<name>.yml`',
453+
description: 'Bootstraps a new yml language file under `lang/<name>.yml`',
461454
notes: '',
462455
synopsis: 'buddy make:lang <name>',
463456
aliases: [],
@@ -512,8 +505,7 @@ export default new Action({
512505
arguments: [
513506
{
514507
name: 'site',
515-
description:
516-
'The name of the site to list all of its DNS records',
508+
description: 'The name of the site to list all of its DNS records',
517509
value_required: true,
518510
},
519511
],
@@ -554,8 +546,7 @@ export default new Action({
554546
},
555547
{
556548
signature: 'buddy release',
557-
description:
558-
'Creates the releases for the stack & triggers the Release Action (workflow)',
549+
description: 'Creates the releases for the stack & triggers the Release Action (workflow)',
559550
notes: '',
560551
synopsis: 'buddy release',
561552
aliases: [],
@@ -582,8 +573,7 @@ export default new Action({
582573
},
583574
{
584575
signature: 'buddy undeploy',
585-
description:
586-
'Be careful: "undeploys" removes/deletes your deployed resources',
576+
description: 'Be careful: "undeploys" removes/deletes your deployed resources',
587577
notes: '',
588578
synopsis: 'buddy undeploy',
589579
aliases: [],
@@ -601,8 +591,7 @@ export default new Action({
601591
},
602592
{
603593
signature: 'buddy cloud:cleanup',
604-
description:
605-
'Removes cloud setup & cleans up all potentially leftover resources',
594+
description: 'Removes cloud setup & cleans up all potentially leftover resources',
606595
notes: '',
607596
synopsis: 'buddy cloud:cleanup',
608597
aliases: [],
@@ -656,8 +645,7 @@ export default new Action({
656645
},
657646
{
658647
signature: 'buddy generate:types',
659-
description:
660-
'Generates types for your components, functions, & views',
648+
description: 'Generates types for your components, functions, & views',
661649
notes: '',
662650
synopsis: 'buddy generate:types',
663651
aliases: [],
@@ -666,8 +654,7 @@ export default new Action({
666654
},
667655
{
668656
signature: 'buddy generate:entries',
669-
description:
670-
'Generates entry files for components, functions, & views',
657+
description: 'Generates entry files for components, functions, & views',
671658
notes: '',
672659
synopsis: 'buddy generate:entries',
673660
aliases: [],
@@ -721,8 +708,7 @@ export default new Action({
721708
},
722709
{
723710
signature: 'buddy types:generate',
724-
description:
725-
'Generates types for your components, functions, & views',
711+
description: 'Generates types for your components, functions, & views',
726712
notes: '',
727713
synopsis: 'buddy types:generate',
728714
aliases: [],
@@ -731,8 +717,7 @@ export default new Action({
731717
},
732718
{
733719
signature: 'buddy types:fix',
734-
description:
735-
'Auto-fixes types for your components, functions, & views',
720+
description: 'Auto-fixes types for your components, functions, & views',
736721
notes: '',
737722
synopsis: 'buddy types:fix',
738723
aliases: [],

app/Actions/ExampleAction.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ export default new Action({
1313
},
1414
})
1515

16-
function sendEmail({
17-
to,
18-
subject,
19-
text,
20-
}: { to: string; subject: string; text: string }) {
16+
function sendEmail({ to, subject, text }: { to: string; subject: string; text: string }) {
2117
log.info('Sending email', { to, subject, text })
2218
return `Welcome email sent to ${email}`
2319
}

app/Actions/LogAction.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ interface Request {
99

1010
export default new Action({
1111
name: 'Dummy Logger',
12-
description:
13-
'This action is used to demo how to POST to a server and upon success, log a message.',
12+
description: 'This action is used to demo how to POST to a server and upon success, log a message.',
1413

1514
// the request object is optional, but if it is provided, it will be used for validation
1615
fields: {

app/Commands/Inspire.ts

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,31 +18,23 @@ export default function (cli: CLI) {
1818
})
1919
.alias('insp')
2020
.action((options: InspireOptions) => {
21-
if (options.two)
22-
quotes
23-
.random(2)
24-
.map((quote, index) => log.info(`${index + 1}. ${quote}`))
21+
if (options.two) quotes.random(2).map((quote, index) => log.info(`${index + 1}. ${quote}`))
2522
else log.info(quotes.random())
2623

2724
log.success('Have a great day!')
2825
process.exit(ExitCode.Success)
2926
})
3027

31-
cli
32-
.command('inspire:two', 'Inspire yourself with two random quotes')
33-
.action(() => {
34-
// @ts-expect-error - this is safe because we hard-coded the quotes
35-
quotes.random(2).map((quote, index) => log.info(`${index + 1}. ${quote}`))
28+
cli.command('inspire:two', 'Inspire yourself with two random quotes').action(() => {
29+
// @ts-expect-error - this is safe because we hard-coded the quotes
30+
quotes.random(2).map((quote, index) => log.info(`${index + 1}. ${quote}`))
3631

37-
log.success('Have a great day!')
38-
process.exit(ExitCode.Success)
39-
})
32+
log.success('Have a great day!')
33+
process.exit(ExitCode.Success)
34+
})
4035

4136
cli.on('inspire:*', () => {
42-
log.error(
43-
'Invalid command: %s\nSee --help for a list of available commands.',
44-
cli.args.join(' '),
45-
)
37+
log.error('Invalid command: %s\nSee --help for a list of available commands.', cli.args.join(' '))
4638
process.exit(1)
4739
})
4840

app/Jobs/ExampleTwoJob.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ export default new Job({
77
handle: () => {
88
// action: 'SendWelcomeEmail', // instead of handle, you may target an action or `action: () => {`
99
log.info('This cron job log this message every two minutes')
10-
log.info(
11-
'Please note, any job may also be dispatched individually, or scheduled via ./app/Schedule',
12-
)
10+
log.info('Please note, any job may also be dispatched individually, or scheduled via ./app/Schedule')
1311
},
1412
})

commitlint.config.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ const ignore = ['readme-md']
77

88
const components = fs
99
.readdirSync(resolve(__dirname, './resources/components'))
10-
.map(item => kebabCase(item.replace(/\.(stx|vue)/g, '')))
11-
.filter(item => !ignore.includes(item))
10+
.map((item) => kebabCase(item.replace(/\.(stx|vue)/g, '')))
11+
.filter((item) => !ignore.includes(item))
1212

1313
const functions = fs
1414
.readdirSync(resolve(__dirname, './resources/functions'))
15-
.map(item => kebabCase(item.replace(/.ts/g, '')))
16-
.filter(item => !ignore.includes(item))
15+
.map((item) => kebabCase(item.replace(/.ts/g, '')))
16+
.filter((item) => !ignore.includes(item))
1717

1818
const scopes = [...git.scopes, ...components, ...functions]
1919
const uniqueScopes = [...new Set(scopes)]
@@ -40,9 +40,7 @@ export default {
4040
breaklineNumber: 100,
4141
breaklineChar: '|',
4242
skipQuestions: [],
43-
issuePrefixes: [
44-
{ value: 'closed', name: 'closed: ISSUES has been processed' },
45-
],
43+
issuePrefixes: [{ value: 'closed', name: 'closed: ISSUES has been processed' }],
4644
customIssuePrefixesAlign: 'top',
4745
emptyIssuePrefixesAlias: 'skip',
4846
customIssuePrefixesAlias: 'custom',

config/app.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ import type { AppConfig } from '@stacksjs/types'
1010
*/
1111
export default {
1212
name: env.APP_NAME || 'Stacks',
13-
description:
14-
'Stacks is a full-stack framework for building modern web applications.',
13+
description: 'Stacks is a full-stack framework for building modern web applications.',
1514
env: env.APP_ENV || 'local',
1615
url: env.APP_URL || 'stacks.localhost',
1716
redirectUrls: ['stacksjs.com'],

config/git.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,8 @@ export default {
6060
customScope: 'Select the SCOPE of this change:',
6161
subject: 'Write a SHORT, IMPERATIVE tense description of the change:\n',
6262
body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',
63-
breaking:
64-
'List any BREAKING CHANGES (optional). Use "|" to break new line:\n',
65-
footerPrefixesSelect:
66-
'Select the ISSUES type of the change list by this change (optional):',
63+
breaking: 'List any BREAKING CHANGES (optional). Use "|" to break new line:\n',
64+
footerPrefixesSelect: 'Select the ISSUES type of the change list by this change (optional):',
6765
customFooterPrefixes: 'Input ISSUES prefix:',
6866
footer: 'List any ISSUES by this change. E.g.: #31, #34:\n',
6967
confirmCommit: 'Are you sure you want to proceed with the commit above?',

config/library.ts

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,11 @@ export default {
2020
vueComponents: {
2121
name: 'hello-world-vue',
2222
description: 'Your Vue component library description',
23-
keywords: [
24-
'component',
25-
'library',
26-
'vue',
27-
'vite',
28-
'typescript',
29-
'javascript',
30-
],
23+
keywords: ['component', 'library', 'vue', 'vite', 'typescript', 'javascript'],
3124
tags: [
3225
{
3326
name: ['HelloWorld', 'AppHelloWorld'],
34-
description:
35-
'The Hello World custom element, built via this framework.',
27+
description: 'The Hello World custom element, built via this framework.',
3628
attributes: [
3729
{
3830
name: 'greeting',
@@ -46,19 +38,11 @@ export default {
4638
webComponents: {
4739
name: 'hello-world-elements',
4840
description: 'Your framework agnostic web component library description.',
49-
keywords: [
50-
'custom-elements',
51-
'web-components',
52-
'library',
53-
'framework-agnostic',
54-
'typescript',
55-
'javascript',
56-
],
41+
keywords: ['custom-elements', 'web-components', 'library', 'framework-agnostic', 'typescript', 'javascript'],
5742
tags: [
5843
{
5944
name: ['HelloWorld', 'AppHelloWorld'],
60-
description:
61-
'The Hello World custom element, built via this framework.',
45+
description: 'The Hello World custom element, built via this framework.',
6246
attributes: [
6347
{
6448
name: 'greeting',
@@ -72,13 +56,7 @@ export default {
7256
functions: {
7357
name: 'hello-world-fx',
7458
description: 'Your function library description.',
75-
keywords: [
76-
'functions',
77-
'composables',
78-
'library',
79-
'typescript',
80-
'javascript',
81-
],
59+
keywords: ['functions', 'composables', 'library', 'typescript', 'javascript'],
8260
shouldGenerateSourcemap: false,
8361
functions: ['counter', 'dark'],
8462
},

docs/_data/team.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ export const core = [
3333
sponsor: 'https://github.com/sponsors/konkonam',
3434
},
3535
{
36-
avatar:
37-
'https://www.averyahill.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Favatar.626e0c07.jpg&w=128&q=75',
36+
avatar: 'https://www.averyahill.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Favatar.626e0c07.jpg&w=128&q=75',
3837
name: 'Avery Hill',
3938
title: 'Merchandise & Event Planning',
4039
org: 'Stacks',

0 commit comments

Comments
 (0)