Last active
August 29, 2015 14:05
-
-
Save FredKSchott/008af2dc4d16e257312d to your computer and use it in GitHub Desktop.
Getting Files By Type - ShellJS Recipes - http://shelljs-recipes.tumblr.com/
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
// Useful for passing files & directories as command arguments | |
var JS_DIRS = ['lib', 'tests'].join(' '); | |
var JS_FILES = find(['lib', 'tests']).filter(fileType('js')).join(' '); | |
var JSON_FILES = find(['lib', 'tests']).filter(fileType('json')).join(' '); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment