CSS and SVG recreation of the new Google material design loading spinner.
A Pen by Fran Pérez on CodePen.
#!/usr/bin/env node | |
// USAGE ------ | |
// ============ | |
var shell = require('./shellHelper'); | |
// execute a single shell command | |
shell.exec('npm test --coverage', function(err){ | |
console.log('executed test'); |
CSS and SVG recreation of the new Google material design loading spinner.
A Pen by Fran Pérez on CodePen.
var child_process = require('child_process'), | |
sys = require('sys'), | |
http = require('http'), | |
parse = require('url').parse, | |
fs = require('fs'); | |
var spawn = child_process.spawn; | |
var exec = child_process.exec; | |
#!/bin/bash | |
for file in $(git diff --diff-filter=d --cached --name-only | grep -E '\.(js|jsx)$') | |
do | |
git show ":$file" | node_modules/.bin/eslint --stdin --stdin-filename "$file" # we only want to lint the staged changes, not any un-staged changes | |
if [ $? -ne 0 ]; then | |
echo "ESLint failed on staged file '$file'. Please check your code and try again." | |
exit 1 # exit with failure status | |
fi | |
done |