Skip to content

Commit 5849615

Browse files
chore: wip
1 parent 143e667 commit 5849615

Some content is hidden

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

44 files changed

+1616
-3236
lines changed

.github/CODE_OF_CONDUCT.md

Lines changed: 13 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,9 @@ We pledge to act and interact in ways that contribute to an open, welcoming, div
88

99
## Our Standards
1010

11-
Examples of behavior that contributes to a positive environment for our community include:
11+
Examples of behavior that contributes to a positive environment for our community include:*Demonstrating empathy and kindness toward other people*Being respectful of differing opinions, viewpoints, and experiences*Giving and gracefully accepting constructive feedback*Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience*Focusing on what is best not just for us as individuals, but for the overall community
1212

13-
* Demonstrating empathy and kindness toward other people
14-
* Being respectful of differing opinions, viewpoints, and experiences
15-
* Giving and gracefully accepting constructive feedback
16-
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17-
* Focusing on what is best not just for us as individuals, but for the overall community
18-
19-
Examples of unacceptable behavior include:
20-
21-
* The use of sexualized language or imagery, and sexual attention or advances of any kind
22-
* Trolling, insulting or derogatory comments, and personal or political attacks
23-
* Public or private harassment
24-
* Publishing others' private information, such as a physical or email address, without their explicit permission
25-
* Other conduct which could reasonably be considered inappropriate in a professional setting
13+
Examples of unacceptable behavior include:*The use of sexualized language or imagery, and sexual attention or advances of any kind*Trolling, insulting or derogatory comments, and personal or political attacks*Public or private harassment*Publishing others' private information, such as a physical or email address, without their explicit permission*Other conduct which could reasonably be considered inappropriate in a professional setting
2614

2715
## Enforcement Responsibilities
2816

@@ -44,40 +32,24 @@ All community leaders are obligated to respect the privacy and security of the r
4432

4533
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
4634

47-
### 1. Correction
48-
49-
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
50-
51-
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
52-
53-
### 2. Warning
54-
55-
**Community Impact**: A violation through a single incident or series of actions.
56-
57-
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
58-
59-
### 3. Temporary Ban
60-
61-
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
62-
63-
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
35+
### 1. Correction**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested
6436

65-
### 4. Permanent Ban
37+
### 2. Warning**Community Impact**: A violation through a single incident or series of actions.**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban
6638

67-
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
39+
### 3. Temporary Ban**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban
6840

69-
**Consequence**: A permanent ban from any sort of public interaction within the community.
41+
### 4. Permanent Ban**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.**Consequence**: A permanent ban from any sort of public interaction within the community
7042

7143
## Attribution
7244

73-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
45+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at [<https://www.contributor-covenant.org/version/2/1/code*of*conduct.htm>l][v2.1].
7446

7547
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
7648

77-
For answers to common questions about this code of conduct, see the FAQ at [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at [https://www.contributor-covenant.org/translations][translations].
49+
For answers to common questions about this code of conduct, see the FAQ at [<https://www.contributor-covenant.org/fa>q][FAQ]. Translations are available at [<https://www.contributor-covenant.org/translation>s][translations].
7850

79-
[homepage]: https://www.contributor-covenant.org
80-
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
81-
[Mozilla CoC]: https://github.com/mozilla/diversity
82-
[FAQ]: https://www.contributor-covenant.org/faq
83-
[translations]: https://www.contributor-covenant.org/translations
51+
[homepage]: <https://www.contributor-covenant.org>
52+
[v2.1]: <https://www.contributor-covenant.org/version/2/1/code*of*conduct.html>
53+
[Mozilla CoC]: <https://github.com/mozilla/diversity>
54+
[FAQ]: <https://www.contributor-covenant.org/faq>
55+
[translations]: <https://www.contributor-covenant.org/translations>

.github/CONTRIBUTING.md

Lines changed: 51 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -2,61 +2,52 @@
22

33
First off, thank you for taking the time to contribute to the Stacks ecosystem ❤️
44

5-
> **Note**
6-
> The likelihood is high that the repo you are working on is either a Stack or Stacks itself. In both cases, you will be exposed to a meshup of technologies, like [Vue][vue], [Vite][vite], [Tauri][tauri], [Nitro][nitro], and [Bun][bun].
5+
>**Note**> The likelihood is high that the repo you are working on is either a Stack or Stacks itself. In both cases, you will be exposed to a meshup of technologies, like [Vue][vue], [Vite][vite], [Tauri][tauri], [Nitro][nitro], and [Bun][bun].
76
87
## 💭 Knowledge
98

109
### TypeScript
1110

12-
It's important to note early on that these projects are written with [TypeScript][typescript]. If you're unfamiliar with it (or any strongly typed languages such as Java) then this may feel like a slight roadblock. However, there's never a truly perfect time to start learning it, so ... why not today using well-written codebases as your playground?
13-
14-
_Don't be discouraged. You will get by learning TypeScript on-the-fly as you review some of the examples within the codebase. It's easy to get started—the code is, we hope, very approachable (and readable)._
15-
16-
### Architecture
11+
It's important to note early on that these projects are written with [TypeScript][typescript]. If you're unfamiliar with it (or any strongly typed languages such as Java) then this may feel like a slight roadblock. However, there's never a truly perfect time to start learning it, so ... why not today using well-written codebases as your playground?_Don't be discouraged. You will get by learning TypeScript on-the-fly as you review some of the examples within the codebase. It's easy to get started—the code is, we hope, very approachable (and readable)._### Architecture
1712

1813
An understanding of the framework architecture and design will help if you're looking to contribute long-term, or if you are working on a "more complex" PR. Browse the source and read our documentation to get a better sense of how it is structured. The documentation is very thorough and can be used as your progressive guide as you're learning more about Stacks.
1914

20-
Feel free to ask any question _(Twitter, Discord, or GitHub Discussions)_, we would love to elaborate & collaborate.
15+
Feel free to ask any question_(Twitter, Discord, or GitHub Discussions)_, we would love to elaborate & collaborate.
2116

2217
### Stacks/Core Setup
2318

24-
Are you interested in contributing to the Stacks codebase?
25-
26-
**Working on your first Pull Request?** You can learn how from this free series [How to Contribute to an Open Source Project on GitHub][pr-beginner-series].
19+
Are you interested in contributing to the Stacks codebase?**Working on your first Pull Request?**You can learn how from this free series [How to Contribute to an Open Source Project on GitHub][pr-beginner-series].
2720

2821
Head over to the [repository][stacks] on GitHub and click the Fork button in the top right corner. After the project has been forked, run the following commands in your terminal:
2922

3023
```bash
31-
# Replace {github-username} with your GitHub username.
32-
git clone https://github.com/{github-username}/stacks --depth=1
24+
25+
# Replace {github-username} with your GitHub username
26+
27+
git clone <https://github.com/{github-username}/stacks> --depth=1
3328

3429
cd stacks
3530

36-
# Create a branch for your PR, replace {issue-no} with the GitHub issue number.
31+
# Create a branch for your PR, replace {issue-no} with the GitHub issue number
32+
3733
git checkout -b issue-{issue-no}
38-
```
34+
```Now it'll help if we keep our`main`branch pointing at the original repository and make
3935
40-
Now it'll help if we keep our `main` branch pointing at the original repository and make
41-
pull requests from the forked branch.
36+
pull requests from the forked branch.```bash
37+
38+
# Add the original repository as a "remote" called "upstream"
4239
43-
```bash
44-
# Add the original repository as a "remote" called "upstream".
4540
git remote add upstream git@github.com:stacksjs/stacks.git
4641
47-
# Fetch the git information from the remote.
48-
git fetch upstream
42+
# Fetch the git information from the remote
4943
50-
# Set your local main branch to use the upstream main branch whenever you run `git pull`.
51-
git branch --set-upstream-to=upstream/main main
44+
git fetch upstream
5245
53-
# Run this when we want to update our version of main.
54-
git pull
55-
```
46+
# Set your local main branch to use the upstream main branch whenever you run `git pull`git branch --set-upstream-to=upstream/main main
5647
57-
_You may also use GitHub Desktop or any other GUI—if that is your preference._
48+
# Run this when we want to update our version of main
5849
59-
### Buddy Toolkit
50+
git pull```_You may also use GitHub Desktop or any other GUI—if that is your preference._### Buddy Toolkit
6051
6152
The following list of commands is one of the most common ways to interact with the Stacks API. Meet Buddy:
6253
@@ -73,12 +64,9 @@ buddy make:function HelloWorld # scaffolds a function
7364
buddy make:page hello-world # scaffolds a page (https://my-project.test/hello-world)
7465
7566
buddy help
76-
```
67+
```<details>
7768
78-
<details>
79-
<summary>View the complete Buddy Toolkit</summary>
80-
81-
```bash
69+
<summary>View the complete Buddy Toolkit</summary>```bash
8270
buddy --help # view help menu
8371
buddy install # installs your dependencies
8472
buddy fresh # fresh reinstall of all deps
@@ -88,23 +76,25 @@ buddy --version # get the Stacks version
8876
buddy --help # view help menu
8977
9078
# if you need any more info to any command listed here, you may suffix
91-
# any of them via the "help option", i.e. `buddy command --help`
9279
93-
buddy dev # starts one of the dev servers (components, functions, views, or docs)
80+
# any of them via the "help option", i.e. `buddy command --help`buddy dev # starts one of the dev servers (components, functions, views, or docs)
81+
9482
buddy dev:components # starts local playground dev server
9583
buddy dev:desktop # starts the Desktop playground
9684
buddy dev:views # starts local playground views dev server
9785
buddy dev:functions # stubs local the functions
9886
buddy dev:docs # starts local docs dev server
9987
100-
# for Laravel folks, `serve` may ring more familiar than the `dev` name. Hence, we aliased it:
88+
# for Laravel folks,`serve`may ring more familiar than the`dev`name. Hence, we aliased it
89+
10190
buddy serve # starts one of the dev servers (components, functions, viewsviews, or docs)
10291
buddy serve:components # starts local playground dev server
10392
buddy serve:views # starts local playground views dev server
10493
buddy serve:functions # stubs local the functions
10594
buddy serve:docs # starts local docs dev server
10695
10796
# sets your application key
97+
10898
buddy key:generate
10999
110100
buddy make:stack project
@@ -125,6 +115,7 @@ buddy release # creates the releases for the stack & triggers the Release Action
125115
buddy changelog # generates CHANGELOG.md
126116
127117
# building for production (e.g. npm, Vercel, Netlify, et al.)
118+
128119
buddy build # select a specific build (follow CLI prompts)
129120
buddy build:components # builds Vue component library & Web Component library
130121
buddy build:functions # builds function library
@@ -133,58 +124,57 @@ buddy build:web-components # builds framework agnostic Web Component library (i.
133124
buddy build:views # builds views
134125
135126
# when deploying your app/s
127+
136128
buddy deploy:docs
137129
buddy deploy:functions
138130
buddy deploy:views
139131
140132
# select the example to run (follow CLI prompts)
133+
141134
buddy example
142135
143136
# test your stack
137+
144138
buddy test # runs test suite (unit & e2e)
145139
buddy test:coverage # runs test coverage
146-
buddy test:types # runs typecheck
147-
```
148-
149-
</details>
140+
buddy test:types # runs typecheck```</details>
150141
151142
## 🧪 Testing
152143
153-
All the framework tests are stored within the `./.stacks/tests` project folder. When adding or updating functionality, please ensure it is covered through our test suite. Ensure so by running `buddy test`.
144+
All the framework tests are stored within the`./.stacks/tests`project folder. When adding or updating functionality, please ensure it is covered through our test suite. Ensure so by running`buddy test`.
154145
155-
When working on an individual Stack, tests are stored within the `./tests` project folder & it is recommended to write tests (when useful). Bu
146+
When working on an individual Stack, tests are stored within the `./tests`project folder & it is recommended to write tests (when useful). Bu
156147
157148
## ✍️ Commit
158149
159-
Stacks uses [semantic commit messages][semantic-commit-style] to automate package releases. No worries, you may not be aware what this is or how it works—just let Buddy guide you. Stacks automated the commit process for you, simply run `buddy commit` in your terminal and follow the instructions.
150+
Stacks uses [semantic commit messages][semantic-commit-style] to automate package releases. No worries, you may not be aware what this is or how it works—just let Buddy guide you. Stacks automated the commit process for you, simply run`buddy commit`in your terminal and follow the instructions.
160151
161-
For example,
152+
For example,```bash
153+
154+
# Add all changes to staging to be committed
162155
163-
```bash
164-
# Add all changes to staging to be committed.
165156
git add .
166157
167-
# Commit changes.
158+
# Commit changes
159+
168160
buddy commit
169161
170-
# Push changes up to GitHub.
171-
git push
172-
```
162+
# Push changes up to GitHub
173163
174-
_By following these minor steps, Stacks is able to automatically release new versions & generate relating local & remote changelogs._
164+
git push
175165
176-
## 🎉 Pull Request
166+
```_By following these minor steps, Stacks is able to automatically release new versions & generate relating local & remote changelogs._## 🎉 Pull Request
177167
178168
When you're all done, head over to the [repository][stacks], and click the big green `Compare & Pull Request` button that should appear after you've pushed changes to your fork.
179169
180170
Don't expect your PR to be accepted immediately or even accepted at all. Give the community time to vet it and see if it should be merged. Please don't be disheartened if it's not accepted. Your contribution is appreciated more than you can imagine, and even a unmerged PR can teach us a lot ❤️
181171
182-
[typescript]: https://www.typescriptlang.org
183-
[vue]: https://vuejs.org/
184-
[vite]: https://vitejs.dev/
185-
[tauri]: https://tauri.app/
186-
[nitro]: https://nitro.unjs.io/
187-
[bun]: https://bun.sh/
188-
[stacks]: https://github.com/stacksjs/stacks
189-
[semantic-commit-style]: https://gist.github.com/joshbuchea/6f47e86d2510bce28f8e7f42ae84c716
190-
[pr-beginner-series]: https://app.egghead.io/courses/how-to-contribute-to-an-open-source-project-on-github
172+
[typescript]: <https://www.typescriptlang.org>
173+
[vue]: <https://vuejs.org/>
174+
[vite]: <https://vitejs.dev/>
175+
[tauri]: <https://tauri.app/>
176+
[nitro]: <https://nitro.unjs.io/>
177+
[bun]: <https://bun.sh/>
178+
[stacks]: <https://github.com/stacksjs/stacks>
179+
[semantic-commit-style]: <https://gist.github.com/joshbuchea/6f47e86d2510bce28f8e7f42ae84c716>
180+
[pr-beginner-series]: <https://app.egghead.io/courses/how-to-contribute-to-an-open-source-project-on-github>

.github/SECURITY.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
# Security Policy
2-
3-
**PLEASE DON'T DISCLOSE SECURITY-RELATED ISSUES PUBLICLY, [SEE BELOW](#reporting-a-vulnerability).**
4-
5-
## Supported Versions
1+
# Security Policy**PLEASE DON'T DISCLOSE SECURITY-RELATED ISSUES PUBLICLY, [SEE BELOW](#reporting-a-vulnerability).**## Supported Versions
62

73
Only the latest major version receives security fixes.
84

@@ -12,10 +8,9 @@ If you discover a security vulnerability within this package, please send an ema
128

139
### Public PGP Key
1410

15-
```
16-
-----BEGIN PGP PUBLIC KEY BLOCK-----
11+
```-----BEGIN PGP PUBLIC KEY BLOCK-----
1712
Version: OpenPGP v2.0.8
18-
Comment: https://sela.io/pgp/
13+
Comment: <https://sela.io/pgp/>
1914
2015
mQINBGEO6uYBEACw8ldEmdK0xR2RjeGnAyNQItT83JG1BQmByttddyikolGHY0w1
2116
MLCSNAwveUT4f5vbDU41sH8QQDda+NBNIWNo+xtFahfWxi3gYpX0xltgPrYkuBIr
@@ -66,5 +61,4 @@ Lo2polLYC3wvFQl14tyT3OoDH+mkCPcD+GbDwYbWpcb+v6uCkquqAcHTrbYhwhxY
6661
kXSnpSzMVde7LbHMHiVr0Ubl3k4+1uNiKhY7CLW9pLJwJ4mUmG2VX3YPfG4shnYR
6762
HF/6SiI=
6863
=le/X
69-
-----END PGP PUBLIC KEY BLOCK-----
70-
```
64+
-----END PGP PUBLIC KEY BLOCK-----```

0 commit comments

Comments
 (0)