Skip to content

Commit 79f93ac

Browse files
committed
2 parents 662a62f + 04795a6 commit 79f93ac

File tree

9 files changed

+323
-0
lines changed

9 files changed

+323
-0
lines changed

.snapshots/config.json

Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
{
2+
"excluded_patterns": [
3+
".git",
4+
".gitignore",
5+
"gradle",
6+
"gradlew",
7+
"gradlew.*",
8+
"node_modules",
9+
".snapshots",
10+
".idea",
11+
".vscode",
12+
"*.log",
13+
"*.tmp",
14+
"target",
15+
"dist",
16+
"build",
17+
".DS_Store",
18+
"*.bak",
19+
"*.swp",
20+
"*.swo",
21+
"*.lock",
22+
"*.iml",
23+
"coverage",
24+
"*.min.js",
25+
"*.min.css",
26+
"__pycache__",
27+
".marketing",
28+
".env",
29+
".env.*",
30+
"*.jpg",
31+
"*.jpeg",
32+
"*.png",
33+
"*.gif",
34+
"*.bmp",
35+
"*.tiff",
36+
"*.ico",
37+
"*.svg",
38+
"*.webp",
39+
"*.psd",
40+
"*.ai",
41+
"*.eps",
42+
"*.indd",
43+
"*.raw",
44+
"*.cr2",
45+
"*.nef",
46+
"*.mp4",
47+
"*.mov",
48+
"*.avi",
49+
"*.wmv",
50+
"*.flv",
51+
"*.mkv",
52+
"*.webm",
53+
"*.m4v",
54+
"*.wfp",
55+
"*.prproj",
56+
"*.aep",
57+
"*.psb",
58+
"*.xcf",
59+
"*.sketch",
60+
"*.fig",
61+
"*.xd",
62+
"*.db",
63+
"*.sqlite",
64+
"*.sqlite3",
65+
"*.mdb",
66+
"*.accdb",
67+
"*.frm",
68+
"*.myd",
69+
"*.myi",
70+
"*.ibd",
71+
"*.dbf",
72+
"*.rdb",
73+
"*.aof",
74+
"*.pdb",
75+
"*.sdb",
76+
"*.s3db",
77+
"*.ddb",
78+
"*.db-shm",
79+
"*.db-wal",
80+
"*.sqlitedb",
81+
"*.sql.gz",
82+
"*.bak.sql",
83+
"dump.sql",
84+
"dump.rdb",
85+
"*.vsix",
86+
"*.jar",
87+
"*.war",
88+
"*.ear",
89+
"*.zip",
90+
"*.tar",
91+
"*.tar.gz",
92+
"*.tgz",
93+
"*.rar",
94+
"*.7z",
95+
"*.exe",
96+
"*.dll",
97+
"*.so",
98+
"*.dylib",
99+
"*.app",
100+
"*.dmg",
101+
"*.iso",
102+
"*.msi",
103+
"*.deb",
104+
"*.rpm",
105+
"*.apk",
106+
"*.aab",
107+
"*.ipa",
108+
"*.pkg",
109+
"*.nupkg",
110+
"*.snap",
111+
"*.whl",
112+
"*.gem",
113+
"*.pyc",
114+
"*.pyo",
115+
"*.pyd",
116+
"*.class",
117+
"*.o",
118+
"*.obj",
119+
"*.lib",
120+
"*.a",
121+
"*.map",
122+
".npmrc"
123+
],
124+
"default": {
125+
"default_prompt": "Enter your prompt here",
126+
"default_include_all_files": false,
127+
"default_include_entire_project_structure": true
128+
},
129+
"included_patterns": [
130+
"build.gradle",
131+
"settings.gradle",
132+
"gradle.properties",
133+
"pom.xml",
134+
"Makefile",
135+
"CMakeLists.txt",
136+
"package.json",
137+
"requirements.txt",
138+
"Pipfile",
139+
"Gemfile",
140+
"composer.json",
141+
".editorconfig",
142+
".eslintrc.json",
143+
".eslintrc.js",
144+
".prettierrc",
145+
".babelrc",
146+
".dockerignore",
147+
".gitattributes",
148+
".stylelintrc",
149+
".npmrc"
150+
]
151+
}

.snapshots/readme.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Snapshots Directory
2+
3+
This directory contains snapshots of your code for AI interactions. Each snapshot is a markdown file that includes relevant code context and project structure information.
4+
5+
## What's included in snapshots?
6+
- Selected code files and their contents
7+
- Project structure (if enabled)
8+
- Your prompt/question for the AI
9+
10+
## Configuration
11+
You can customize snapshot behavior in `config.json`.

.snapshots/sponsors.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Thank you for using Snapshots for AI
2+
3+
Thanks for using Snapshots for AI. We hope this tool has helped you solve a problem or two.
4+
5+
If you would like to support our work, please help us by considering the following offers and requests:
6+
7+
## Ways to Support
8+
9+
### Join the GBTI Network!!! 🙏🙏🙏
10+
The GBTI Network is a community of developers who are passionate about open source and community-driven development. Members enjoy access to exclussive tools, resources, a private MineCraft server, a listing in our members directory, co-op opportunities and more.
11+
12+
- Support our work by becoming a [GBTI Network member](https://gbti.network/membership/).
13+
14+
### Try out BugHerd 🐛
15+
BugHerd is a visual feedback and bug-tracking tool designed to streamline website development by enabling users to pin feedback directly onto web pages. This approach facilitates clear communication among clients, designers, developers, and project managers.
16+
17+
- Start your free trial with [BugHerd](https://partners.bugherd.com/55z6c8az8rvr) today.
18+
19+
### Hire Developers from Codeable 👥
20+
Codeable connects you with top-tier professionals skilled in frameworks and technologies such as Laravel, React, Django, Node, Vue.js, Angular, Ruby on Rails, and Node.js. Don't let the WordPress focus discourage you. Codeable experts do it all.
21+
22+
- Visit [Codeable](https://www.codeable.io/developers/?ref=z8h3e) to hire your next team member.
23+
24+
### Lead positive reviews on our marketplace listing ⭐⭐⭐⭐⭐
25+
- Rate us on [VSCode marketplace](https://marketplace.visualstudio.com/items?itemName=GBTI.snapshots-for-ai)
26+
- Review us on [Cursor marketplace](https://open-vsx.org/extension/GBTI/snapshots-for-ai)
27+
28+
### Star Our GitHub Repository ⭐
29+
- Star and watch our [repository](https://github.com/gbti-network/vscode-snapshots-for-ai)
30+
31+
### 📡 Stay Connected
32+
Follow us on your favorite platforms for updates, news, and community discussions:
33+
- **[Twitter/X](https://twitter.com/gbti_network)**
34+
- **[GitHub](https://github.com/gbti-network)**
35+
- **[YouTube](https://www.youtube.com/channel/UCh4FjB6r4oWQW-QFiwqv-UA)**
36+
- **[Dev.to](https://dev.to/gbti)**
37+
- **[Daily.dev](https://dly.to/zfCriM6JfRF)**
38+
- **[Hashnode](https://gbti.hashnode.dev/)**
39+
- **[Discord Community](https://gbti.network)**
40+
- **[Reddit Community](https://www.reddit.com/r/GBTI_network)**
41+
42+
---
43+
44+
Thank you for supporting open source software! 🙏

.vscode/launch.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"configurations": [
3+
{
4+
"name": "Containers: Node.js Launch",
5+
"type": "docker",
6+
"request": "launch",
7+
"preLaunchTask": "docker-run: debug",
8+
"platform": "node",
9+
"node": {
10+
"package": "${workspaceFolder}/dist/lib/package.json",
11+
"localRoot": "${workspaceFolder}/dist/lib"
12+
}
13+
}
14+
]
15+
}

.vscode/tasks.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type": "docker-build",
6+
"label": "docker-build",
7+
"platform": "node",
8+
"dockerBuild": {
9+
"dockerfile": "${workspaceFolder}/dist/lib/Dockerfile",
10+
"context": "${workspaceFolder}/dist/lib",
11+
"pull": true
12+
},
13+
"node": {
14+
"package": "${workspaceFolder}/dist/lib/package.json"
15+
}
16+
},
17+
{
18+
"type": "docker-run",
19+
"label": "docker-run: release",
20+
"dependsOn": [
21+
"docker-build"
22+
],
23+
"platform": "node",
24+
"node": {
25+
"package": "${workspaceFolder}/dist/lib/package.json"
26+
}
27+
},
28+
{
29+
"type": "docker-run",
30+
"label": "docker-run: debug",
31+
"dependsOn": [
32+
"docker-build"
33+
],
34+
"dockerRun": {
35+
"env": {
36+
"DEBUG": "*",
37+
"NODE_ENV": "development"
38+
}
39+
},
40+
"node": {
41+
"package": "${workspaceFolder}/dist/lib/package.json",
42+
"enableDebugging": true
43+
}
44+
}
45+
]
46+
}

compose.debug.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
services:
2+
pyodide:
3+
image: pyodide
4+
build:
5+
context: dist/lib
6+
dockerfile: ./Dockerfile
7+
environment:
8+
NODE_ENV: development
9+
ports:
10+
- 3000:3000
11+
- 9229:9229
12+
command: ["node", "--inspect=0.0.0.0:9229", "pyodide.js"]

compose.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
services:
2+
pyodide:
3+
image: pyodide
4+
build:
5+
context: dist/lib
6+
dockerfile: ./Dockerfile
7+
environment:
8+
NODE_ENV: production
9+
ports:
10+
- 3000:3000

dist/lib/.dockerignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
**/.classpath
2+
**/.dockerignore
3+
**/.env
4+
**/.git
5+
**/.gitignore
6+
**/.project
7+
**/.settings
8+
**/.toolstarget
9+
**/.vs
10+
**/.vscode
11+
**/*.*proj.user
12+
**/*.dbmdl
13+
**/*.jfm
14+
**/charts
15+
**/docker-compose*
16+
**/compose*
17+
**/Dockerfile*
18+
**/node_modules
19+
**/npm-debug.log
20+
**/obj
21+
**/secrets.dev.yaml
22+
**/values.dev.yaml
23+
LICENSE
24+
README.md

dist/lib/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM node:lts-alpine
2+
ENV NODE_ENV=production
3+
WORKDIR /usr/src/app
4+
COPY ["package.json", "package-lock.json*", "npm-shrinkwrap.json*", "./"]
5+
RUN npm install --production --silent && mv node_modules ../
6+
COPY . .
7+
EXPOSE 3000
8+
RUN chown -R node /usr/src/app
9+
USER node
10+
CMD ["node", "pyodide.js"]

0 commit comments

Comments
 (0)