File tree 9 files changed +437
-233
lines changed
9 files changed +437
-233
lines changed Original file line number Diff line number Diff line change
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
+
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
Original file line number Diff line number Diff line change 1
1
node_modules
2
2
.DS_Store
3
+ publico
Original file line number Diff line number Diff line change
1
+ publico
Original file line number Diff line number Diff line change 1
1
# 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 )
Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html>
2
- < html lang ="en ">
2
+ < html lang ="es ">
3
3
< head >
4
4
< meta charset ="UTF-8 " />
5
5
< meta http-equiv ="X-UA-Compatible " content ="IE=edge " />
Original file line number Diff line number Diff line change 6
6
"license" : " MIT" ,
7
7
"type" : " module" ,
8
8
"scripts" : {
9
- "start " : " vite" ,
9
+ "dev " : " vite" ,
10
10
"build" : " vite build" ,
11
- "preview" : " vite preview"
11
+ "preview" : " vite preview" ,
12
+ "lint" : " prettier --check ." ,
13
+ "lint:fix" : " prettier --write --list-different ."
12
14
},
13
15
"dependencies" : {
14
- "vue" : " ^3.2.33 "
16
+ "vue" : " ^3.2.39 "
15
17
},
16
18
"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"
19
23
}
20
24
}
Original file line number Diff line number Diff line change 1
1
<script setup>
2
- // https://vuejs.org/api/sfc-script-setup.html#script-setup
3
2
import Hola from ' ./componentes/Hola.vue' ;
4
3
</script >
5
4
6
5
<template >
7
6
<Hola />
8
7
</template >
9
8
10
- <style ></style >
9
+ <style lang="scss" scoped ></style >
Original file line number Diff line number Diff line change
1
+ <script setup></script >
2
+
1
3
<template >
2
4
<h1 >Plantilla Vue EnFlujo</h1 >
3
5
</template >
4
6
5
- <script >
6
- export default {};
7
- </script >
8
-
9
- <style ></style >
7
+ <style lang="scss" scoped></style >
You can’t perform that action at this time.
0 commit comments