Skip to content

Commit ff15c14

Browse files
committed
fix: add LICENSE, ci matrix Node 20/22, test:ci script, remove dev overlay
1 parent ffed51c commit ff15c14

File tree

4 files changed

+37
-9
lines changed

4 files changed

+37
-9
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,28 @@ on:
99
jobs:
1010
build:
1111
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [20, 22]
16+
1217
steps:
1318
- uses: actions/checkout@v4
14-
- name: Use Node.js
19+
20+
- name: Use Node.js ${{ matrix.node-version }}
1521
uses: actions/setup-node@v4
1622
with:
17-
node-version: 20
23+
node-version: ${{ matrix.node-version }}
1824
cache: npm
25+
1926
- name: Install dependencies
2027
run: npm ci
28+
2129
- name: Lint
2230
run: npm run lint
31+
2332
- name: Run tests
24-
run: npm test --silent
33+
run: npm run test:ci
34+
2535
- name: Build
2636
run: npm run build

LICENSE

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) 2025 Cesar Camacho Duran
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.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
"preview": "vite preview",
1313
"lint": "eslint --ext .js,.vue src",
1414
"format": "prettier --write \"src/**/*.{js,vue,css}\"",
15-
"test": "vitest"
15+
"test": "vitest",
16+
"test:ci": "vitest run",
17+
"test:coverage": "vitest run --coverage"
1618
},
1719
"dependencies": {
1820
"dompurify": "^2.4.0",

vite.config.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ export default defineConfig(({ mode }) => ({
1919
},
2020
},
2121

22-
// Configuración del servidor de desarrollo
23-
server: {
24-
overlay: false
25-
},
26-
2722
// Optimización para producción
2823
build: {
2924
outDir: 'dist',

0 commit comments

Comments
 (0)