Skip to content

Commit ae8a8c7

Browse files
committed
👷 Actualizar plantilla
1 parent 728ea7a commit ae8a8c7

File tree

9 files changed

+437
-233
lines changed

9 files changed

+437
-233
lines changed

.github/estilo-codigo.yml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Estilo Código
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
ci:
13+
runs-on: ${{ matrix.os }}
14+
15+
strategy:
16+
matrix:
17+
os: [ubuntu-latest]
18+
node: [16]
19+
20+
steps:
21+
- name: Extraer cambios del repositorio 🛎
22+
uses: actions/checkout@master
23+
24+
- name: Configurar ambiente de Node 🏗
25+
uses: actions/[email protected]
26+
with:
27+
node-version: ${{ matrix.node }}
28+
check-latest: true
29+
30+
- name: Configurar Yarn 🛠
31+
id: yarn-cache-dir-path
32+
run: echo "::set-output name=dir::$(yarn cache dir)"
33+
34+
- name: Cache node_modules 📦
35+
uses: actions/cache@v2
36+
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
37+
with:
38+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
39+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
40+
restore-keys: |
41+
${{ runner.os }}-yarn-
42+
- name: Instalar dependencias 👨🏻‍💻
43+
run: yarn
44+
45+
- name: Comprobar estilo del código 👀
46+
run: yarn lint

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
22
.DS_Store
3+
publico

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
publico

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
# Plantilla Vite y Vue
2+
3+
![Estilo Código](https://github.com/enflujo/enflujo-plantilla-vite/actions/workflows/estilo-codigo.yml/badge.svg)
4+
![Tamaño](https://img.shields.io/github/repo-size/enflujo/enflujo-plantilla-vite?color=%235757f7&label=Tama%C3%B1o%20repo&logo=open-access&logoColor=white)
5+
![Licencia](https://img.shields.io/github/license/enflujo/enflujo-plantilla-vite?label=Licencia&logo=open-source-initiative&logoColor=white)

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="es">
33
<head>
44
<meta charset="UTF-8" />
55
<meta http-equiv="X-UA-Compatible" content="IE=edge" />

package.json

+9-5
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,19 @@
66
"license": "MIT",
77
"type": "module",
88
"scripts": {
9-
"start": "vite",
9+
"dev": "vite",
1010
"build": "vite build",
11-
"preview": "vite preview"
11+
"preview": "vite preview",
12+
"lint": "prettier --check .",
13+
"lint:fix": "prettier --write --list-different ."
1214
},
1315
"dependencies": {
14-
"vue": "^3.2.33"
16+
"vue": "^3.2.39"
1517
},
1618
"devDependencies": {
17-
"@vitejs/plugin-vue": "^2.3.1",
18-
"vite": "^2.9.5"
19+
"@vitejs/plugin-vue": "^3.1.0",
20+
"prettier": "^2.7.1",
21+
"sass": "^1.54.9",
22+
"vite": "^3.1.3"
1923
}
2024
}

src/Aplicacion.vue

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
<script setup>
2-
// https://vuejs.org/api/sfc-script-setup.html#script-setup
32
import Hola from './componentes/Hola.vue';
43
</script>
54

65
<template>
76
<Hola />
87
</template>
98

10-
<style></style>
9+
<style lang="scss" scoped></style>

src/componentes/Hola.vue

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1+
<script setup></script>
2+
13
<template>
24
<h1>Plantilla Vue EnFlujo</h1>
35
</template>
46

5-
<script>
6-
export default {};
7-
</script>
8-
9-
<style></style>
7+
<style lang="scss" scoped></style>

0 commit comments

Comments
 (0)