-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(changeset): added a stacks feature to quickly build up app confi…
…g from the CLI (experimental)
- Loading branch information
Showing
45 changed files
with
542 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
"@vinxi/server-components": patch | ||
"@vinxi/server-functions": patch | ||
"@vinxi/plugin-directives": patch | ||
"vinxi": patch | ||
--- | ||
|
||
added a stacks feature to quickly build up app config from the CLI (experimental) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
8 | ||
20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.vercel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
# example-vanilla | ||
|
||
## null | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies [355daea] | ||
- @vinxi/plugin-references@0.0.24 | ||
- vinxi@0.0.34 | ||
|
||
## null | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies [1dec590] | ||
- vinxi@0.0.33 | ||
- @vinxi/plugin-references@0.0.23 | ||
|
||
## null | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies [982147a] | ||
- vinxi@0.0.32 | ||
- @vinxi/plugin-references@0.0.22 | ||
|
||
## null | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies [94f59aa] | ||
- Updated dependencies [bc82d8e] | ||
- Updated dependencies [1d8b542] | ||
- Updated dependencies [5bf5e03] | ||
- Updated dependencies [4c7fd35] | ||
- Updated dependencies [0f4b3ee] | ||
- Updated dependencies [ad62318] | ||
- Updated dependencies [c223ab6] | ||
- Updated dependencies [94f59aa] | ||
- @vinxi/plugin-references@0.0.21 | ||
- vinxi@0.0.31 | ||
|
||
## null | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies [fd06048] | ||
- Updated dependencies [0f14555] | ||
- Updated dependencies [82267c5] | ||
- vinxi@0.0.30 | ||
- @vinxi/plugin-references@0.0.20 | ||
|
||
## null | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies [8058084] | ||
- vinxi@0.0.29 | ||
- @vinxi/plugin-references@0.0.19 | ||
|
||
## null | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies [b934e84] | ||
- Updated dependencies [17693dc] | ||
- Updated dependencies [d6305b8] | ||
- Updated dependencies [cb91c48] | ||
- Updated dependencies [085116d] | ||
- Updated dependencies [f1ee5b8] | ||
- vinxi@0.0.28 | ||
- @vinxi/plugin-references@0.0.18 | ||
|
||
## null | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies [7803042] | ||
- vinxi@0.0.27 | ||
- @vinxi/plugin-references@0.0.17 | ||
|
||
## null | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies [2b17e0d] | ||
- vinxi@0.0.26 | ||
- @vinxi/plugin-references@0.0.16 | ||
|
||
## null | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies [552d8ca] | ||
- vinxi@0.0.25 | ||
- @vinxi/plugin-references@0.0.15 | ||
|
||
## null | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies [47abc3c] | ||
- @vinxi/plugin-references@0.0.14 | ||
- vinxi@0.0.24 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
"use server"; | ||
|
||
let store = { count: 0 }; | ||
export function sayHello() { | ||
console.log("Hello World"); | ||
store.count++; | ||
return store.count; | ||
} | ||
|
||
export function getStore() { | ||
return store.count; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/// <reference types="vinxi/types/client" /> | ||
import "vinxi/client"; | ||
|
||
import { sayHello } from "./actions"; | ||
import { world } from "./server-functions"; | ||
import "./style.css"; | ||
|
||
export async function world2(x) { | ||
"use server"; | ||
console.log("hello world 2", x); | ||
} | ||
|
||
async function world3(x, y) { | ||
"use server"; | ||
console.log("hello world 3", x, y); | ||
} | ||
|
||
const world4 = async (x, y) => { | ||
"use server"; | ||
console.log("hello world 4", x, y); | ||
}; | ||
|
||
const world5 = async (x) => { | ||
"use server"; | ||
console.log("hello world 4", x); | ||
}; | ||
|
||
console.log( | ||
await world(), | ||
await world2(1), | ||
await world3(2, 3), | ||
await world4(5, 6), | ||
await sayHello(), | ||
await world5({ hello: 1, world: "aasd", x: true }), | ||
); | ||
console.log("Hello world!"); | ||
|
||
document.getElementById("app").innerHTML = `Hello World`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { defineMiddleware, getContext, setContext } from "vinxi/server"; | ||
|
||
export default defineMiddleware({ | ||
onRequest: (event) => { | ||
setContext(event, "help", { foo: "bar" }); | ||
}, | ||
onBeforeResponse: (event) => { | ||
console.log(getContext(event, "help")); | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export async function world() { | ||
"use server"; | ||
console.log("hello"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
* { | ||
color: red; | ||
} |
Oops, something went wrong.