Skip to content

Commit c5bbd04

Browse files
committed
Initial commit
0 parents  commit c5bbd04

33 files changed

+11918
-0
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = false

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
jobs:
11+
release:
12+
name: Check and Release
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout Repo
16+
uses: actions/checkout@v4
17+
with:
18+
token: ${{ secrets.PAT }}
19+
20+
- name: Setup Node.js 20
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: 20
24+
25+
- name: Install Changesets
26+
run: npm install @changesets/cli
27+
28+
- name: Create Release Pull Request or Publish to NPM
29+
uses: changesets/action@v1
30+
with:
31+
publish: npm run release
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.PAT }}
34+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
dist
2+
.output
3+
.solid
4+
.vercel
5+
.vinxi
6+
7+
# Environment
8+
.env
9+
.env*.local
10+
11+
# dependencies
12+
/node_modules
13+
/env
14+
15+
# System Files
16+
.DS_Store
17+
Thumbs.db

.prettierrc.mjs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
export default {
2+
plugins: ["@trivago/prettier-plugin-sort-imports"],
3+
importOrderSeparation: true,
4+
importOrderSortSpecifiers: true,
5+
importOrder: [
6+
"<THIRD_PARTY_MODULES>",
7+
"^(~/)(components)/",
8+
"^(~/)([^.]+)$",
9+
"^(\\./)([^.]+)$",
10+
"^(\\./)([^.]+)(\\.css)$",
11+
],
12+
};

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"editor.defaultFormatter": "esbenp.prettier-vscode"
3+
}

CONTRIBUTING.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Contributing
2+
3+
Thanks for your interest in contributing to TreeSitter Playground! We're glad you're here.
4+
5+
## Submitting a pull request
6+
7+
1. [Fork][fork] and clone the repository
8+
1. Create a new branch (`git checkout -b my-branch-name`)
9+
1. Run the development server (`npm run dev`)
10+
1. Make your change
11+
1. Format your code (`npm run format`)
12+
1. Commit your changes with a descriptive commit message (`git commit -am 'Add some feature'`)
13+
1. Push to the branch (`git push origin my-branch-name`)
14+
1. Create a Pull Request from your branch
15+
1. Wait for your pull request to be reviewed and merged
16+
17+
Here are a few things you can do that will increase the likelihood of your pull request being accepted:
18+
19+
- Keep your change as focused as possible. If there are multiple changes you would like to make that are not dependent upon each other, consider submitting them as separate pull requests.
20+
- Write a [good commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
21+
22+
## Resources
23+
24+
- [How to Contribute to Open Source](https://opensource.guide/how-to-contribute/)
25+
- [Using Pull Requests](https://help.github.com/articles/about-pull-requests/)
26+
- [GitHub Help](https://help.github.com)
27+
28+
[fork]: https://github.com/picomet/treeground/fork
29+
[pr]: https://github.com/picomet/treeground/compare

LICENCE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) [2024] [Al Mahdi]
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Treeground
2+
3+
[![NPM Version](https://img.shields.io/npm/v/treeground)](https://www.npmjs.com/package/treeground)
4+
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/picomet/treeground/blob/main/LICENSE)
5+
6+
An interactive Tree-Sitter playground
7+
8+
## Features
9+
10+
- Hot refreshing
11+
- Syntax highlighting
12+
- Range folding
13+
- Error reporting
14+
15+
## Requirements
16+
17+
- Linux / Mac
18+
- [node](https://nodejs.org/en/download/) >= 20
19+
- [python](https://www.python.org/downloads/) >= 3.7
20+
- [git](https://git-scm.com/downloads)
21+
22+
## Setup
23+
24+
```bash
25+
npx treeground
26+
```
27+
28+
## Contributing
29+
30+
Contributions are welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for more details.
31+
32+
## License
33+
34+
MIT

0 commit comments

Comments
 (0)