Skip to content

Commit 63e3a57

Browse files
committed
clean up repository to be focused on the documentation site
1 parent b672222 commit 63e3a57

8 files changed

Lines changed: 21 additions & 774 deletions

File tree

.changeset/README.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

.changeset/config.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,8 @@
11
## Changes
22

3-
- Resolves #ISSUE_NUMBER
4-
- What does this change?
5-
- Be short and concise. Bullet points can help!
6-
- Before/after screenshots can help as well.
3+
- Related issue: #ISSUE_NUMBER
4+
- Why is this documentation being updated?
75

8-
- [ ] I have read [the "Making a Pull Request" section](https://github.com/bholmesdev/simple-stack/blob/main/CONTRIBUTING.md#making-a-pull-request) before making this PR.
6+
## Prereqs
97

10-
## Testing
11-
12-
<!-- How was this change tested? -->
13-
<!-- DON'T DELETE THIS SECTION! If no tests added, explain why. -->
14-
15-
## Docs
16-
17-
<!-- Could this affect a user’s behavior? We probably need to update docs! -->
18-
<!-- If docs will be needed or you’re not sure, uncomment the next line: -->
19-
<!-- /cc @withastro/maintainers-docs for feedback! -->
20-
21-
<!-- DON'T DELETE THIS SECTION! If no docs added, explain why.-->
22-
<!-- https://github.com/withastro/docs -->
8+
- [ ] I have read the [CONTRIBUTING guide](https://github.com/bholmesdev/simple-stack/blob/main/CONTRIBUTING.md).

.github/workflows/release.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 10 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,31 @@
11
# Contributing to simple stack
22

3-
Hey contributor 👋 Welcome to simple stack! We're a young project open to contributions of any kind, from fixes to features to documentation and tooling.
3+
We are only open to contributions to the `www/` documentation site. The remaining packages are here for legacy purposes.
44

5-
## Repository overview
5+
## Prerequisites
66

7-
Simple stack is a **monorepo** containing a suite of packages built for Astro. These are the most important directories:
7+
- [Node 18.14+](https://nodejs.org/en/download)
8+
- [pnpm](https://pnpm.io/)
89

9-
```bash
10-
# packages including `simple-stack-form`, `simple-stack-partial`, etc
11-
packages/*
12-
# Astro projects that use and test these packages
13-
examples/*
14-
```
15-
16-
All source code is written in TypeScript, and components may use a variety of frameworks (Astro, React, Vue, Svelte, etc).
17-
18-
## What to ask before making a PR
19-
20-
Before submitting a pull request, we suggest asking:
21-
22-
1. **Have I checked the community discord and existing issue logs first?** We use GitHub issues and [discord discussions](https://wtw.dev/chat) to collaborate on changes. By opening an issue or starting a Discord thread, you can get early feedback on your problem before diving into a solution.
23-
24-
2. **Have I reviewed the existing documentation?** You may find an answer to your request in the package README. In fact, you might find room to improve our docs for future users with a similar problem.
25-
26-
If the answer is **yes** to both and you have a PR to contribute, get to it!
27-
28-
## Prerequisites
29-
30-
New contributors need the following tools:
31-
32-
- [Node 18.14+](https://nodejs.org/en/download) for building packages and example sites.
33-
- [pnpm](https://pnpm.io/) to install dependencies. We prefer pnpm since it runs quickly and offers a [robust workspace feature](https://pnpm.io/workspaces) to manage monorepo dependencies.
34-
35-
## Initial setup
36-
37-
To get started, clone this repository and install dependencies from the project root:
10+
## Setup
3811

3912
```bash
4013
git clone https://github.com/bholmesdev/simple-stack.git
41-
cd simple-stack
14+
cd simple-stack/www
4215
pnpm install
4316
```
4417

45-
### Linting and formatting
46-
47-
This project uses [Biome](https://biomejs.dev/) to lint and format code across packages. If you use VS Code, this repository includes a `.vscode/` directory to preconfigure your default linter. [Visit the editor integration docs](https://biomejs.dev/guides/integrate-in-editor/) to enable linting in your editor of choice.
48-
49-
To run the linter manually, you can use the following commands at the project root:
50-
51-
```bash
52-
# lint and format all files in packages/*
53-
pnpm check
54-
# apply lint and format fixes to all files in packages/*
55-
pnpm check:apply
56-
# run `lint` or `format` steps individually
57-
pnpm lint
58-
pnpm lint:apply
59-
pnpm format
60-
pnpm format:apply
61-
```
62-
6318
## Development
6419

65-
You may want live compilation for your TypeScript code while working. We use [turborepo](https://turbo.build/) to build packages for development and production. For live reloading, run the following at the project root:
66-
6720
```bash
6821
pnpm dev
6922
```
7023

71-
This will build all `packages/*` entries and listen for changes.
72-
73-
To test your code, you can run any one of our Astro projects under `examples/*`. First open a second terminal, navigate to that example, and run the same `pnpm dev` command. You may need to kill and restart this server to see your package edits take effect.
24+
The docs site is built with [Astro](https://astro.build/) + [Starlight](https://starlight.astro.build/).
7425

75-
You can also run packages _and_ examples simultaneously:
26+
## Linting
7627

7728
```bash
78-
pnpm dev:all
29+
pnpm check # check for issues
30+
pnpm check:fix # auto-fix issues
7931
```
80-
81-
However, we've found console logs are harder to read using this approach. Use whichever you prefer!
82-
83-
## Making a Pull Request
84-
85-
When requesting a change to a simple stack package, be sure to add a [changeset](https://github.com/changesets/changesets?tab=readme-ov-file#how-do-we-do-that). This is used to specify the version bump for the package, and to update the package CHANGELOG with a description of the change. Note that changes to examples (`examples/*`) do not need changesets.
86-
87-
To create a new changeset, run the following command:
88-
89-
```bash
90-
pnpm exec changeset
91-
```
92-
93-
Then, provide a brief description of the change. Be sure to focus on the _user-facing change_ (the what), rather than describing _technical implementation_ (the how).
94-
95-
❌ Apply response headers using the `{ headers }` object in the middleware function.
96-
✅ Fix the missing `text/html` header for Astro routes.

README.md

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,7 @@
1-
# Simple Stack 🌱
1+
# Simple Stack documentation 🌱
22

3-
A collection of tools I've built to make JS app development simpler. To be honest, there isn't a "story" connecting these packages together (I'm no TanStack). But they follow a common theme: solve a simple use case without too many features.
3+
This is the repository for managing the documentation on [simple-stack.dev](https://simple-stack.dev). We've also included legacy `simple-stack` packages for archival purposes.
44

5-
## Simple Store
5+
## Contributing
66

7-
Simple Store is a reactive store that combines the simplicity of signals with the power of "selectors" you'd find in Zustand or Redux.
8-
9-
- Source code: [simplestack-store](https://github.com/bholmesdev/simplestack-store)
10-
- Documentation: [simple-stack.dev/store](https://simple-stack.dev/store)
11-
12-
## Simple Scope
13-
14-
Simple Scope is a vite plugin that generates scoped IDs for any file you're in. Perfect for form label IDs and query selectors.
15-
16-
- Source code: [simplestack-scope](https://github.com/bholmesdev/simplestack-scope)
17-
- Documentation: [simple-stack.dev/scope](https://simple-stack.dev/scope)
18-
19-
## Simple Query
20-
21-
Simple Query is a simple way to add JS scripts to Astro components.
22-
23-
- Source code: [simplestack-query](https://github.com/bholmesdev/simplestack-query)
24-
- Documentation: [simple-stack.dev/query](https://simple-stack.dev/query)
7+
Contributions to our docs are welcome! Read the CONTRIBUTING.md to see how to set up the documentation site locally and contribute your first PR.

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,14 @@
1010
"test": "turbo test --filter='./packages/*'",
1111
"e2e": "turbo e2e",
1212
"check": "pnpm -C www check",
13-
"check:fix": "pnpm -C www check:fix",
14-
"version": "changeset version && pnpm install --no-frozen-lockfile && pnpm run check:fix"
13+
"check:fix": "pnpm -C www check:fix"
1514
},
1615
"keywords": [
1716
"withastro"
1817
],
1918
"author": "bholmesdev",
2019
"license": "MIT",
2120
"devDependencies": {
22-
"@changesets/changelog-github": "^0.5.0",
23-
"@changesets/cli": "^2.27.1",
2421
"@playwright/test": "^1.45.3",
2522
"@types/node": "^20.14.11",
2623
"turbo": "^1.11.2",

0 commit comments

Comments
 (0)