Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesMessinger committed Aug 18, 2016
0 parents commit 945236e
Show file tree
Hide file tree
Showing 6 changed files with 196 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .editorconfig
@@ -0,0 +1,26 @@
# Editor config
# http://EditorConfig.org

# This EditorConfig overrides any parent EditorConfigs
root = true

# Default rules applied to all file types
[*]

# No trailing spaces, newline at EOF
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

# 2 space indentation
indent_style = space
indent_size = 2

# JavaScript-specific settings
[*.js]
quote_type = single
continuation_indent_size = 2
curly_bracket_next_line = false
indent_brace_style = BSD
spaces_around_operators = true
spaces_around_brackets = none
21 changes: 21 additions & 0 deletions .eslintrc.yml
@@ -0,0 +1,21 @@
extends: 'eslint:recommended'

env:
node: true

globals:
Promise: true

rules:
indent:
- error
- 2
linebreak-style:
- error
- unix
quotes:
- error
- single
semi:
- error
- always
41 changes: 41 additions & 0 deletions .gitignore
@@ -0,0 +1,41 @@
# Git ignore
# https://git-scm.com/docs/gitignore

# Miscellaneous
*~
*#
.DS_STORE
Thumbs.db
.netbeans
nbproject
.node_history

# IDEs & Text Editors
.idea
.sublime-*
.vscode
.netbeans
nbproject

# Temporary files
.tmp
.temp
.grunt
.lock-wscript

# Logs
/logs
*.log

# Runtime data
pids
*.pid
*.seed

# Dependencies
node_modules

# Test files
lib-cov
/coverage
/test/dir/**/*symlink*
39 changes: 39 additions & 0 deletions .travis.yml
@@ -0,0 +1,39 @@
# Travis CI config
# http://docs.travis-ci.com/user/languages/javascript-with-nodejs/

sudo: false
language: node_js
matrix:
include:
# Node
- node_js: 0.12
env: KARMA=false
- node_js: 4
env: KARMA=false

# Local Browsers
- node_js: 0.12
env: KARMA_COVERAGE=true KARMA_SAUCE=false

# Sauce Labs
- node_js: 0.12
env: KARMA_COVERAGE=true KARMA_SAUCE=true

fast_finish: true
allow_failures:
- node_js: 0.12
env: KARMA_COVERAGE=true KARMA_SAUCE=true

before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- npm update -g npm
branches:
only:
- master # only run CI on the master branch
- /^PR / # also build pull requests
after_success:
- cat coverage/*/lcov.info > coveralls.txt # concatenate all code-coverage data into a single file
- cat coveralls.txt # output the file contents (for debugging)
- ls -R1 coverage/*/lcov.info # list the files (for debugging)
- cat coveralls.txt | node_modules/coveralls/bin/coveralls.js # send code-coverage data to Coveralls
23 changes: 23 additions & 0 deletions LICENSE
@@ -0,0 +1,23 @@
The MIT License (MIT)

Copyright (c) 2016 James Messinger

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

.
46 changes: 46 additions & 0 deletions package.json
@@ -0,0 +1,46 @@
{
"name": "readdir-enhanced",
"version": "1.0.0",
"description": "fs.readdir with sync, async, and streaming APIs + filtering, recursion, full paths, etc.",
"keywords": [
"fs",
"readdir",
"stream",
"event",
"recursive",
"deep",
"filter",
"absolute"
],
"author": {
"name": "James Messinger",
"url": "http://jamesmessinger.com"
},
"license": "MIT",
"homepage": "https://github.com/bigstickcarpet/readdir-enhanced",
"main": "lib/index.js",
"scripts": {
"lint": "eslint lib test --fix",
"test": "mocha && npm run lint",
"upgrade": "npm-check -u",
"bump": "bump --prompt --tag --push --all",
"release": "npm run upgrade && npm test && npm run bump && npm publish"
},
"repository": {
"type": "git",
"url": "https://github.com/bigstickcarpet/readdir-enhanced.git"
},
"devDependencies": {
"chai": "^3.5.0",
"del": "^2.2.2",
"eslint": "^3.3.0",
"mkdirp": "^0.5.1",
"mocha": "^3.0.2",
"npm-check": "^5.2.3",
"version-bump-prompt": "^1.5.2"
},
"dependencies": {
"call-me-maybe": "^1.0.1",
"es6-promise": "^3.2.1"
}
}

0 comments on commit 945236e

Please sign in to comment.