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
à à | |
â â | |
ç ç | |
è è | |
é é \\u00e9 | |
ê ê | |
ë ë | |
î i î | |
ï ï | |
ô ô |
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
tree -a -L 2 |
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
#!/bin/sh | |
# | |
# ----------------------------------------- | |
# | |
# | |
# Check if git directory exists | |
# if not exists will create and init a new local repository | |
if [ ! -d "$DIRECTORY" ]; then | |
git init |
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
#!/bin/bash | |
# | |
# Check if there's some unstaged/uncommitted changes | |
if [ -n "$(git status --porcelain)" ]; then | |
echo "[\033[1;31mPlease commit your changes before upgrading application version.\033[m"; | |
exit 1; | |
fi | |
# npm version (major|minor|patch|premajor|preminor|prepatch|prerelease) |
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
# Using Bash | |
VERSION=$(npm version patch) | |
VERSION=$(echo $VERSION | cut -c 2-) | |
# Using NodeJS | |
PACKAGE_VERSION=$(node -p -e "require('./package.json').version") |
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
#!/usr/bin/env bash | |
# Add or remove keywords here | |
FORBIDDEN="console\.(debug|info|log|warn)\(|alert\(|debugger" | |
# Add extensions to check here | |
FILES_PATTERN="\.(js|coffee)(\..+)?$" | |
LINE="" | |
VERBOSE=false | |
ERRORS_BUFFER="" |
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
#!/bin/bash | |
# ---------------------------------- | |
# | |
# pre-push hook running tests | |
# | |
git stash -q --keep-index | |
# NodeJS project | |
npm test |