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
/** | |
* retire.js - Retire obsolete files/directories to another directory. | |
*/ | |
const path = require('path'); | |
const fs = require('fs'); | |
const fse = require('fs-extra'); | |
const chalk = require('chalk'); | |
const appDirectory = fs.realpathSync(process.cwd()); |
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
#!/usr/bin/python | |
""" | |
Referencing current branch in github readme.md[1] | |
This pre-commit hook[2] updates the README.md file's | |
CircleCI badge with the current branch. Gist at[4]. | |
[1] http://stackoverflow.com/questions/18673694/referencing-current-branch-in-github-readme-md | |
[2] http://www.git-scm.com/book/en/v2/Customizing-Git-Git-Hooks | |
[3] https://circleci.com/docs/1.0/status-badges/ |