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 | |
gpg --version # Check GPG installation | |
git --version # Check Git installation | |
git-secret --version # Check git-secret installation | |
gpg --list-keys # Make sure that your GPG key is listed here | |
git init # Initialize the repository if you have not done it already | |
git secret init # Initialize the repository using git-secret | |
git secret tell email@example.com # Add a user |
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 | |
set -e | |
NM_BIN=./node_modules/.bin | |
echo "Linting changed files" | |
SRC_FILES=$(git diff --staged --diff-filter=ACMTUXB --name-only -- '*.js' | grep -v '\.test\|mock\|e2e\.js$') && x=1 | |
function lint() { | |
if [ "$2" ]; then |