This repository was archived by the owner on Mar 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgenerar.sh
65 lines (56 loc) · 1.7 KB
/
generar.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/usr/bin/env bash
# -*- ENCODING: UTF-8 -*-
##
## @author Raúl Caro Pastorino
## @copyright Copyright © 2018 Raúl Caro Pastorino
## @license https://wwww.gnu.org/licenses/gpl.txt
## @email tecnico@fryntiz.es
## @web www.fryntiz.es
## @github https://github.com/fryntiz
## @gitlab https://gitlab.com/fryntiz
## @twitter https://twitter.com/fryntiz
##
## Guía de estilos aplicada:
## @style https://github.com/fryntiz/Bash_Style_Guide
############################
## INSTRUCCIONES ##
############################
############################
## IMPORTACIONES ##
############################
############################
## CONSTANTES ##
############################
############################
## VARIABLES ##
############################
############################
## FUNCIONES ##
############################
javascript_preconfiguraciones() {
echo -e "$VE Generando Preconfiguraciones para el nuevo proyecto$CL"
compruebaExisteComando 'node' 'npm'
compruebaExisteProyecto
}
javascript_instalacion() {
echo -e "$VE Creando proyecto con el nombre$RO $nombre$CL"
generarEstructura "$WORKSCRIPT/javascript/estructura"
local dirActual=$PWD
cd "$nombre" || exit 1
npm install
cd "$dirActual" || exit 1
}
javascript_postconfiguraciones() {
echo -e "$VE Generando Postconfiguraciones$CL"
permisos
inicializar_GIT
}
###########################
## EJECUCIÓN ##
###########################
generar_javascript() {
echo -e "$VE Generador de proyecto$RO javascript$CL"
javascript_preconfiguraciones
javascript_instalacion
javascript_postconfiguraciones
}