This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const glob = require('glob'); | |
const fs = require('fs'); | |
const path = require('path'); | |
const readline = require('readline'); | |
// Directory of your project | |
const projectDir = path.resolve(__dirname, 'src'); | |
// Patterns to match image files and JS/JSX files | |
const imagePatterns = ['**/*.svg', '**/*.png']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Git Flow - Process | |
A continue we can find a light description of the git-flow, we going to focus on easy commands and the best way to install | |
this tool into your environment. | |
![](https://cdn.cacher.io/attachments/u/3bz2rgk12vzkd/muxhr4hGHDOxq8G5PGkOg3WSDj7lYfJb/68747470733a2f2f6d69726f2e6d656469756d2e636f6d2f6d61782f3632302f312a4669723639313252704b6c386978306f4155624966512e706e67.png) | |
## How to install git flow: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// When exists some error in console when trying install a new plugin. follow the next step: | |
cordova plugins --save | |
cordova platforms --save | |
rm -rf platforms | |
rm -rf plugins | |
cordova prepare |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
prettier --write "**/*.js" | |
prettier --write "**/*.ts" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## reset last commit | |
git reset HEAD~1 --hard | |
git reset HEAD~1 --soft |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
first install this curl | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash | |
next put the correct source in bash profile | |
source ~/.bash_profile | |
link | |
command -v nvm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tomado de : https://desarrolloweb.com/articulos/especificar-versiones-git-tag.html | |
Crear un tag | |
Se supone que cuando comienzas con un repositorio no tienes ninguna numeración de versión y ningún tag, por lo que empezaremos viendo cómo se crean. | |
Supongamos que empezamos por el número de versión 0.0.1. Entonces lanzarás el comando: | |
git tag v0.0.1 -m "Primera versión" | |
Como ves, es una manera de etiquetar estados del repositorio, en este caso para definir números de versión. Los acompañas con un mensaje, igual que se envían mensajes en el commit. | |
Nota: Este es el mecanismo que se conoce como "Etiquetas ligeras", existen otros tipos de etiquetado que es posible hacer mediante Git. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
classMiComponenteextendsComponents{ | |
constructor(){ | |
// Enlazo (bind) eventos y/o inicializo estado | |
} | |
componentWillMount(){ | |
// Se ejecuta antes de montar el componente | |
// Se podría usar para hacer un setState() | |
} | |
render(){ |