Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Verificación

on:
push:
branches:
- main
pull_request:

permissions:
contents: read

jobs:
verify:
name: Compilar, analizar, probar y empaquetar
runs-on: ubuntu-latest

steps:
- name: Descargar el código
uses: actions/checkout@v4

- name: Configurar Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- name: Instalar dependencias
run: npm ci

- name: Verificar el proyecto
run: npm run check

- name: Crear VSIX
run: npm run package

- name: Guardar VSIX
uses: actions/upload-artifact@v4
with:
name: simple-db-vsix
path: "*.vsix"
if-no-files-found: error
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules/
dist/
coverage/
.vscode-test/
*.vsix
*.log
.DS_Store
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"dbaeumer.vscode-eslint"
]
}
17 changes: 17 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Ejecutar Simple DB",
"type": "extensionHost",
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
],
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
],
"preLaunchTask": "npm: compile"
}
]
}
20 changes: 20 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "compile",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": "$tsc"
},
{
"type": "npm",
"script": "watch",
"isBackground": true,
"problemMatcher": "$tsc-watch"
}
]
}
12 changes: 12 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.github/**
.vscode/**
src/**
dist/test/**
coverage/**
node_modules/**
.gitignore
eslint.config.mjs
tsconfig.json
plan.txt
project requirements.txt
*.vsix
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Changelog

Todos los cambios relevantes de Simple DB se documentarán en este archivo.

## 0.0.1 - 2026-08-05

### Añadido

- Esqueleto de extensión para Visual Studio Code escrito en TypeScript.
- Contenedor Simple DB y vista lateral inicial de conexiones.
- Catálogo inicial de PostgreSQL, MySQL, SQL Server y Oracle.
- Configuración de compilación, ESLint, pruebas y depuración con F5.
- Empaquetado VSIX y flujo de verificación en GitHub Actions.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 suzdalenko-dev

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.
59 changes: 59 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Simple DB

Simple DB será una extensión de Visual Studio Code para trabajar desde una sola interfaz con PostgreSQL, MySQL, SQL Server y Oracle.

## Estado actual

La versión `0.0.1` contiene el esqueleto técnico del proyecto:

- Extensión escrita en TypeScript.
- Contenedor propio de **Simple DB** en la barra de actividad.
- Vista inicial **Conexiones** con los cuatro motores previstos.
- Compilación, análisis estático y pruebas automatizadas.
- Configuración para iniciar una ventana de desarrollo con `F5`.
- Empaquetado local en formato `.vsix`.
- Verificación automática mediante GitHub Actions.

La creación y el almacenamiento seguro de conexiones todavía no forman parte de esta versión. Se incorporarán en los pasos siguientes del plan.

## Requisitos para desarrollar

- Visual Studio Code `1.95.0` o posterior.
- Node.js `20` o posterior.
- npm.

## Puesta en marcha

1. Clona el repositorio.
2. Ejecuta `npm install`.
3. Abre la carpeta del proyecto en Visual Studio Code.
4. Pulsa `F5` y elige **Ejecutar Simple DB**.
5. En la nueva ventana de VS Code, abre el icono **Simple DB** de la barra lateral.

La vista **Conexiones** debe mostrar PostgreSQL, MySQL, SQL Server y Oracle.

## Comandos de desarrollo

| Comando | Función |
|---|---|
| `npm run compile` | Compila TypeScript en la carpeta `dist`. |
| `npm run watch` | Recompila al detectar cambios. |
| `npm run lint` | Revisa el código con ESLint. |
| `npm test` | Ejecuta las pruebas unitarias. |
| `npm run check` | Compila, revisa y prueba todo el proyecto. |
| `npm run package` | Verifica el proyecto y genera el archivo VSIX. |

## Estructura principal

- `src/extension.ts`: punto de activación de la extensión.
- `src/databaseEngines.ts`: catálogo inicial de motores.
- `src/views/`: proveedores de las vistas laterales.
- `src/test/`: pruebas unitarias.
- `resources/`: recursos visuales de la extensión.
- `.vscode/`: tareas y configuración de depuración.
- `.github/workflows/`: verificación automática.
- `plan.txt`: plan completo de desarrollo.

## Licencia

Este proyecto se distribuye bajo la licencia MIT.
20 changes: 20 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';

export default tseslint.config(
{
ignores: [
'coverage/**',
'dist/**',
'node_modules/**',
],
},
eslint.configs.recommended,
...tseslint.configs.recommended,
{
files: ['src/**/*.ts'],
rules: {
'@typescript-eslint/consistent-type-imports': 'error',
},
},
);
Loading
Loading