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
#!/bin/bash | |
echo "Let's migrate a package! Make sure this is running in the root of your monorepo." | |
read -p "Package name: " name | |
read -p "Repo URL (ssh://git...): " repo | |
# Setup the remote git repo | |
git remote add $name $repo | |
git fetch $name | |
read -p "Which branch should we merge? " branch |
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
import babel from 'rollup-plugin-babel'; | |
import commonjs from 'rollup-plugin-commonjs'; | |
import external from 'rollup-plugin-peer-deps-external'; | |
import postcss from 'rollup-plugin-postcss'; | |
import resolve from 'rollup-plugin-node-resolve'; | |
import url from 'rollup-plugin-url'; | |
import autoprefixer from 'autoprefixer'; | |
import json from 'rollup-plugin-json'; | |
import filesize from 'rollup-plugin-filesize'; | |
import globby from 'globby'; |
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
/* | |
* flatten_arr(array) | |
* Purpose: Flatten an array of nested arrays | |
* | |
* Usage: | |
* var arrayToFlatten = flatten_arr([[1,2,[3]],4]); // [1,2,3,4] | |
* | |
* // If not passing an array it returns the initial value | |
* var notArray = flatten_arr('5'); // '5' returns initial value | |
*/ |
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
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |