-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: several minor updates & improvements
chore: update sponsors page chore: wip chore: wip chore: remove get started section chore: wip chore: wip chore: wip chore: add license chore: wip chore: wip chore: wip chore: wip chore: add note chore: sponsorpage updates chore: wip chore: wip chore: wip chore: add white logo
- Loading branch information
1 parent
71e64ef
commit 54f5a4e
Showing
16 changed files
with
317 additions
and
54 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 |
---|---|---|
@@ -1,2 +1 @@ | ||
* text=auto | ||
*.lockb binary diff=lockb |
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 |
---|---|---|
|
@@ -10,3 +10,4 @@ logs | |
node_modules | ||
temp | ||
docs/.vitepress/cache | ||
.env |
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,69 @@ | ||
# Configuration | ||
|
||
The plugin can be configured with the following options: | ||
|
||
```ts | ||
// vite.config.ts | ||
import type { LocalConfig } from 'vite-plugin-local' | ||
import { defineConfig } from 'vite' | ||
import Local from 'vite-plugin-local' | ||
|
||
const config: LocalConfig = { | ||
/** | ||
* Enable/disable the plugin | ||
* @default true | ||
*/ | ||
enabled: true, | ||
|
||
/** | ||
* The target domain to proxy to (e.g., 'my-app.localhost') | ||
* @example 'my-app.test' | ||
* @example 'example.com' | ||
* @default 'stacks.localhost' | ||
*/ | ||
domain: 'my-app.local', // default: stacks.localhost | ||
|
||
/** | ||
* SSL/TLS configuration | ||
* - true: uses default SSL config | ||
* - false: disables SSL | ||
* - object: custom SSL configuration | ||
* @default false | ||
* @example true | ||
*/ | ||
https: true, // default: true, pass TlsConfig options for custom certificates | ||
|
||
/** | ||
* Cleanup options | ||
* - true: cleanup everything | ||
* - false: cleanup nothing | ||
* - object: cleanup specific items | ||
* @default { hosts: true, certs: false } | ||
* @example { hosts: true, certs: true } | ||
*/ | ||
cleanup: { | ||
certs: true, // default: false, cleans up the certificates created on server shutdown | ||
hosts: true, // default: true, cleans up /etc/hosts on server shutdown | ||
}, | ||
|
||
/** | ||
* By default, VitePress resolves inbound links to URLs ending with .html. | ||
* However, some users may prefer "Clean URLs" without the .html extension | ||
* for example, example.com/path instead of example.com/path.html. | ||
* @default false | ||
*/ | ||
cleanUrls: true, // default: false, cleans up URLs by not requiring the .html extension | ||
|
||
/** | ||
* Enable verbose logging | ||
* @default false | ||
*/ | ||
verbose: true, // default: false, enables detailed logging | ||
} | ||
|
||
export default defineConfig({ | ||
plugins: [ | ||
Local(config) | ||
] | ||
}) | ||
``` |
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,18 +1,49 @@ | ||
# Install | ||
|
||
## Bun & Node.js | ||
Installing `vite-plugin-local` is easy. Simply pull it in via your package manager of choice. | ||
|
||
```bash | ||
npm install -d vite-plugin-local | ||
#bun install -d @stacksjs/vite-plugin-local | ||
::: code-group | ||
|
||
# or, invoke immediately | ||
bunx vite-plugin-local | ||
npx vite-plugin-local | ||
```bash [npm] | ||
npm install --save-dev vite-plugin-local | ||
|
||
# or | ||
# npm i -d vite-plugin-local | ||
``` | ||
|
||
```bash [bun] | ||
bun install --dev vite-plugin-local | ||
|
||
# or | ||
# bun add --dev vite-plugin-local | ||
# bun i -d vite-plugin-local | ||
``` | ||
|
||
_We are looking to publish this package npm under the name `vite-plugin-local`. We are also hoping npm will release the name for us._ | ||
```bash [yarn] | ||
yarn add --dev vite-plugin-local | ||
|
||
# or | ||
# yarn i -d vite-plugin-local | ||
``` | ||
|
||
## Binaries | ||
::: | ||
|
||
## Usage | ||
|
||
This minimal usage example shows how to use `vite-plugin-local` in your Vite configuration, using the plugin’s default settings. | ||
|
||
```javascript | ||
// vite.config.{js,ts} | ||
import vue from '@vitejs/plugin-vue' | ||
import { defineConfig } from 'vite' | ||
import local from 'vite-plugin-local' | ||
|
||
export default defineConfig({ | ||
plugins: [ | ||
vue(), // svelte(), react(), ... | ||
local() | ||
] | ||
}) | ||
``` | ||
|
||
For now, you can download the `vite-plugin-local` binaries from the [releases page](https://github.com/stacksjs/vite-plugin-local/releases/tag/v0.4.1). Choose the binary that matches your platform and architecture: | ||
To read about the more elaborate usage API, check out the the following page in our documentation. |
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,21 @@ | ||
# MIT License | ||
|
||
Copyright (c) 2024 Stacks.js | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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 @@ | ||
# Partners | ||
|
||
The following companies and organizations are supporting Stacks development through partnerships: | ||
|
||
- [JetBrains](https://www.jetbrains.com/) | ||
- [The Solana Foundation](https://solana.com/) | ||
|
||
If you are interested in becoming a partner, please reach out to us. |
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,11 @@ | ||
# Postcardware | ||
|
||
Two things are true: Stacks OSS will always stay open-source, and we do love to receive postcards from wherever Stacks is used! 🌍 | ||
|
||
_We also publish them on our website._ | ||
|
||
## Address | ||
|
||
Our address in the US is: | ||
|
||
Stacks.js, 12665 Village Ln #2306, Playa Vista, CA 90094, United States 🌎 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,3 @@ | ||
# Showcase | ||
|
||
Here are all the cool projects that people have built using `vite-plugin-local`. If you have something you’d like to share, please share it with us in any way _(on Discord, Social Media, or via a PR, etc.)_, and we’ll add it here. |
Oops, something went wrong.