Skip to content

Commit 47cde3e

Browse files
committed
chore: wip
1 parent 0de96c3 commit 47cde3e

Some content is hidden

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

66 files changed

+68
-67
lines changed

.github/CONTRIBUTING.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ The following list of commands is one of the most common ways to interact with t
6262

6363
```bash
6464
buddy install # installs all dependencies
65-
buddy dev # starts one of the dev servers (components, functions, pages, desktop or docs)
65+
buddy dev # starts one of the dev servers (components, functions, views, desktop or docs)
6666
buddy build # follow CLI prompts to select which library (or server) to build
6767
buddy commit # follow CLI prompts for committing changes
6868
buddy release # creates the releases of the stack & consequently, publishes them (to npm)
@@ -90,17 +90,17 @@ buddy --help # view help menu
9090
# if you need any more info to any command listed here, you may suffix
9191
# any of them via the "help option", i.e. `buddy command --help`
9292

93-
buddy dev # starts one of the dev servers (components, functions, pages, or docs)
93+
buddy dev # starts one of the dev servers (components, functions, views, or docs)
9494
buddy dev:components # starts local playground dev server
9595
buddy dev:desktop # starts the Desktop playground
96-
buddy dev:pages # starts local playground pages dev server
96+
buddy dev:views # starts local playground views dev server
9797
buddy dev:functions # stubs local the functions
9898
buddy dev:docs # starts local docs dev server
9999

100100
# for Laravel folks, `serve` may ring more familiar than the `dev` name. Hence, we aliased it:
101-
buddy serve # starts one of the dev servers (components, functions, pages, or docs)
101+
buddy serve # starts one of the dev servers (components, functions, viewsviews, or docs)
102102
buddy serve:components # starts local playground dev server
103-
buddy serve:pages # starts local playground pages dev server
103+
buddy serve:views # starts local playground views dev server
104104
buddy serve:functions # stubs local the functions
105105
buddy serve:docs # starts local docs dev server
106106

@@ -130,12 +130,12 @@ buddy build:components # builds Vue component library & Web Component library
130130
buddy build:functions # builds function library
131131
buddy build:vue-components # builds Vue 2 & 3-ready Component library
132132
buddy build:web-components # builds framework agnostic Web Component library (i.e. Custom Elements)
133-
buddy build:pages # builds pages
133+
buddy build:views # builds views
134134

135135
# when deploying your app/s
136136
buddy deploy:docs
137137
buddy deploy:functions
138-
buddy deploy:pages
138+
buddy deploy:views
139139

140140
# select the example to run (follow CLI prompts)
141141
buddy example

.stacks/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ The following list includes some of the most common ways to interact with the St
126126

127127
```bash
128128
buddy install # installs all dependencies
129-
buddy dev # starts one of the dev servers (components, functions, pages, or docs)
129+
buddy dev # starts one of the dev servers (components, functions, views, or docs)
130130
buddy build # follow CLI prompts to select which library (or server) to build
131131
buddy commit # follow CLI prompts for committing changes
132132
buddy release # creates the releases for the stack & consequently, publishes them to npm
@@ -163,18 +163,18 @@ buddy update:all # update Node, package manager, framework, dependencies
163163
# if you need any more info on any command listed here, you may suffix
164164
# any of them via the "help option", i.e. `buddy ... --help`
165165

166-
buddy dev # start one of the dev servers (components, functions, pages, or docs)
166+
buddy dev # start one of the dev servers (components, functions, views, or docs)
167167
buddy dev:components # start local playground dev server
168168
buddy dev:desktop # starts the Desktop playground
169-
buddy dev:pages # start local playground pages dev server
169+
buddy dev:views # start local playground views dev server
170170
buddy dev:functions # stub local the functions
171171
buddy dev:docs # start local docs dev server
172172
buddy development # `buddy dev` alias
173173

174174
# for Laravel folks, `serve` may ring more familiar than the `dev` name. Hence, we aliased it:
175175
buddy serve
176176
buddy serve:components
177-
buddy serve:pages
177+
buddy serve:views
178178
buddy serve:functions
179179
buddy serve:docs
180180

@@ -184,7 +184,7 @@ buddy build:components # build Vue component library & Web Component library
184184
buddy build:vue-components # build Vue 2 & 3-ready Component library
185185
buddy build:web-components # build framework agnostic Web Component library (i.e. Custom Elements)
186186
buddy build:functions # build function library
187-
buddy build:pages # build SSG pages
187+
buddy build:views # build SSG views
188188
buddy build:all # build all your code
189189

190190
# `buddy build` aliases
@@ -193,7 +193,7 @@ buddy prod:components
193193
buddy prod:vue-components
194194
buddy prod:web-components
195195
buddy prod:functions
196-
buddy prod:pages
196+
buddy prod:views
197197
buddy prod:all
198198
buddy production # `buddy prod` alias
199199

@@ -223,7 +223,7 @@ buddy changelog # generates CHANGELOG.md
223223
buddy deploy
224224
buddy deploy:docs
225225
buddy deploy:functions
226-
buddy deploy:pages
226+
buddy deploy:views
227227
buddy deploy:all
228228

229229
# select the example to run (follow CLI prompts)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env node
2-
// import { generateSettings } from '@stacksjs/pages'
2+
// import { generateSettings } from '@stacksjs/views'
33
//
44
// await generateSettings()

.stacks/core/buddy/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ The following list includes some of the most common ways to interact with the St
126126

127127
```bash
128128
buddy install # installs all dependencies
129-
buddy dev # starts one of the dev servers (components, functions, pages, or docs)
129+
buddy dev # starts one of the dev servers (components, functions, views, or docs)
130130
buddy build # follow CLI prompts to select which library (or server) to build
131131
buddy commit # follow CLI prompts for committing changes
132132
buddy release # creates the releases for the stack & consequently, publishes them to npm
@@ -163,18 +163,18 @@ buddy update:all # update Node, package manager, framework, dependencies
163163
# if you need any more info on any command listed here, you may suffix
164164
# any of them via the "help option", i.e. `buddy ... --help`
165165

166-
buddy dev # start one of the dev servers (components, functions, pages, or docs)
166+
buddy dev # start one of the dev servers (components, functions, views, or docs)
167167
buddy dev:components # start local playground dev server
168168
buddy dev:desktop # starts the Desktop playground
169-
buddy dev:pages # start local playground pages dev server
169+
buddy dev:views # start local playground views dev server
170170
buddy dev:functions # stub local the functions
171171
buddy dev:docs # start local docs dev server
172172
buddy development # `buddy dev` alias
173173

174174
# for Laravel folks, `serve` may ring more familiar than the `dev` name. Hence, we aliased it:
175175
buddy serve
176176
buddy serve:components
177-
buddy serve:pages
177+
buddy serve:views
178178
buddy serve:functions
179179
buddy serve:docs
180180

@@ -184,7 +184,7 @@ buddy build:components # build Vue component library & Web Component library
184184
buddy build:vue-components # build Vue 2 & 3-ready Component library
185185
buddy build:web-components # build framework agnostic Web Component library (i.e. Custom Elements)
186186
buddy build:functions # build function library
187-
buddy build:pages # build SSG pages
187+
buddy build:views # build SSG views
188188
buddy build:all # build all your code
189189

190190
# `buddy build` aliases
@@ -193,7 +193,7 @@ buddy prod:components
193193
buddy prod:vue-components
194194
buddy prod:web-components
195195
buddy prod:functions
196-
buddy prod:pages
196+
buddy prod:views
197197
buddy prod:all
198198
buddy production # `buddy prod` alias
199199

@@ -223,7 +223,7 @@ buddy changelog # generates CHANGELOG.md
223223
buddy deploy
224224
buddy deploy:docs
225225
buddy deploy:functions
226-
buddy deploy:pages
226+
buddy deploy:views
227227
buddy deploy:all
228228

229229
# select the example to run (follow CLI prompts)

.stacks/core/buddy/src/commands/build.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ async function build(buddy: CLI) {
1010
webComponents: 'Build your framework agnostic web component library',
1111
elements: 'An alias to the -w flag',
1212
functions: 'Build your function library',
13-
pages: 'Build your SSG pages',
13+
pages: 'Build your SSG views',
1414
docs: 'Build your documentation site',
1515
stacks: 'Build Stacks framework',
1616
select: 'What are you trying to build?',
@@ -24,7 +24,7 @@ async function build(buddy: CLI) {
2424
.option('-w, --web-components', descriptions.webComponents) // these are automatically built with your -c option as well
2525
.option('-e, --elements', descriptions.elements)
2626
.option('-f, --functions', descriptions.functions)
27-
.option('-p, --pages', descriptions.pages)
27+
.option('-p, --views', descriptions.pages)
2828
.option('-d, --docs', descriptions.docs)
2929
.option('-s, --stacks', descriptions.stacks, { default: false })
3030
.option('--verbose', descriptions.verbose, { default: false })

.stacks/core/buddy/src/commands/create.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ async function create(buddy: CLI) {
1313
components: 'Are you building UI components?',
1414
webComponents: 'Automagically built optimized custom elements/web components?',
1515
vue: 'Automagically built a Vue component library?',
16-
pages: 'How about pages?',
16+
pages: 'How about views/views?',
1717
functions: 'Are you developing functions/composables?',
1818
api: 'Are you building an API?',
1919
database: 'Do you need a database?',
@@ -26,7 +26,7 @@ async function create(buddy: CLI) {
2626
.option('-c, --components', descriptions.components, { default: true }) // if no, -v and -w would be false
2727
.option('-w, --web-components', descriptions.webComponents, { default: true })
2828
.option('-v, --vue', descriptions.vue, { default: true })
29-
.option('-p, --pages', descriptions.pages, { default: true }) // pages need an HTTP server
29+
.option('-p, --views', descriptions.pages, { default: true }) // views need an HTTP server
3030
.option('-f, --functions', descriptions.functions, { default: true }) // if no, API would be false
3131
.option('-a, --api', descriptions.api, { default: true }) // APIs need an HTTP server & assumes functions is true
3232
.option('-d, --database', descriptions.database, { default: true })

.stacks/core/buddy/src/commands/dev.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { CLI, DevOptions } from '@stacksjs/types'
44
import { intro, log, outro, prompt } from '@stacksjs/cli'
55
import { components, desktop, functions, pages } from '@stacksjs/actions/dev'
66

7-
// import { components, desktop, functions, pages, invoke as startDevelopmentServer } from '@stacksjs/actions/dev'
7+
// import { components, desktop, functions, views, invoke as startDevelopmentServer } from '@stacksjs/actions/dev'
88

99
async function dev(buddy: CLI) {
1010
const descriptions = {
@@ -22,7 +22,7 @@ async function dev(buddy: CLI) {
2222
.option('-c, --components', descriptions.components)
2323
.option('-f, --functions', descriptions.functions)
2424
.option('-d, --docs', descriptions.docs)
25-
.option('-p, --pages', descriptions.pages)
25+
.option('-p, --views', descriptions.pages)
2626
.option('--verbose', descriptions.verbose, { default: false })
2727
.action(async (options: DevOptions) => {
2828
if (hasNoOptions(options)) {
@@ -127,7 +127,7 @@ async function dev(buddy: CLI) {
127127
})
128128

129129
buddy
130-
.command('dev:pages', descriptions.pages)
130+
.command('dev:views', descriptions.pages)
131131
.option('--verbose', descriptions.verbose, { default: false })
132132
.action(async (options: DevOptions) => {
133133
await pages(options)

.stacks/core/buddy/src/commands/setting.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ async function setting(buddy: CLI) {
1010
.command('page:setting', descriptions.command)
1111
.option('--verbose', descriptions.verbose, { default: false })
1212
.action(async () => {
13-
console.log('Generating setting pages...')
13+
console.log('Generating setting views...')
1414
// const startTime = await intro('buddy page:setting')
1515
// const result = await runAction(Action.GenerateSettings)
1616
//

.stacks/core/build/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export * from './example-vue'
22
export * from './example-wc'
33
export * from './functions'
4-
export * from './pages'
4+
export * from './views'
55
export * from './vue-components'
66
export * from './web-components'
77
export * from './stacks'

.stacks/core/build/src/pages.ts renamed to .stacks/core/build/src/views.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { defineConfig } from 'vite'
44
import type { ViteConfig } from '@stacksjs/types'
55
import { functionsPath, projectPath } from '@stacksjs/path'
66
import { alias } from '@stacksjs/alias'
7-
import { autoImports, components, cssEngine, inspect, layouts, markdown, pages, pwa, uiEngine } from '.'
7+
import { autoImports, components, cssEngine, inspect, layouts, pages, pwa, uiEngine } from '.'
88

99
export const pagesConfig: ViteConfig = {
1010
root: functionsPath(),
@@ -23,7 +23,6 @@ export const pagesConfig: ViteConfig = {
2323
components(),
2424
layouts(),
2525
// i18n(),
26-
markdown(),
2726
autoImports(),
2827
pwa(),
2928
inspect(),

0 commit comments

Comments
 (0)