This file contains hidden or 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 hidden or 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. | |
|  | |
| ## How to install git flow: |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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(){ |

