diff --git a/.editorconfig b/.editorconfig index 192641a..32dd133 100644 --- a/.editorconfig +++ b/.editorconfig @@ -3,15 +3,25 @@ root = true [*] indent_style = space -indent_size = 2 end_of_line = lf charset = utf-8 +indent_size = 2 trim_trailing_whitespace = true insert_final_newline = true +[*.json] +indent_style = space +indent_size = 2 + +[*.yml] +indent_style = space +indent_size = 2 + [*.md] +indent_style = space +indent_size = 2 trim_trailing_whitespace = false [test/fixtures/*] -insert_final_newline = false trim_trailing_whitespace = false +insert_final_newline = false \ No newline at end of file diff --git a/.gitattributes b/.gitattributes index a52bd18..4a3f1d3 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,10 @@ -*.* text eol=lf \ No newline at end of file +# Enforce Unix newlines +* text eol=lf + +# binaries +*.ai binary +*.psd binary +*.jpg binary +*.gif binary +*.png binary +*.jpeg binary \ No newline at end of file diff --git a/.gitignore b/.gitignore index 73b0154..c22270c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +*.DS_Store *.DS_store *.sublime-* _gh_pages @@ -11,3 +12,4 @@ tmp TODO.md vendor support.js +example.js diff --git a/.jshintrc b/.jshintrc index 8face3c..6e5a84a 100644 --- a/.jshintrc +++ b/.jshintrc @@ -8,11 +8,11 @@ "immed": true, "latedef": false, "laxcomma": false, + "mocha": true, "newcap": true, "noarg": true, "node": true, "sub": true, - "undef": "var", - "unused": true, - "mocha": true -} + "undef": true, + "unused": true +} \ No newline at end of file diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..efe94c0 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,8 @@ +sudo: false +language: node_js +node_js: + - "0.10" + - "0.12" + - "iojs" +git: + depth: 10 \ No newline at end of file diff --git a/.verb.md b/.verb.md index ad725c6..750c7de 100644 --- a/.verb.md +++ b/.verb.md @@ -1,4 +1,4 @@ -# {%= name %} {%= badge("fury") %} +# {%= name %} {%= badge("fury") %} {%= badge("travis") %} > {%= description %} @@ -98,23 +98,20 @@ The resulting object would be: base: 'a/b' } ``` - -## Run tests - -Install dev dependencies: - -```bash -npm i -d && npm test -``` +## Related +{%= related(['glob-base', 'glob-parent', 'is-glob', 'glob-path-regex', 'micromatch']) %} ## Contributing -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue]({%= bugs.url %}) +{%= include("contributing") %} + +## Tests +{%= include("tests") %} ## Author {%= include("author") %} ## License -{%= copyright() %} +{%= copyright({year: 2014}) %} {%= license() %} *** diff --git a/LICENSE b/LICENSE index 33754da..65f90ac 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2015 Jon Schlinkert +Copyright (c) 2015, Jon Schlinkert. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index ea18e5d..7209529 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# parse-glob [![NPM version](https://badge.fury.io/js/parse-glob.svg)](http://badge.fury.io/js/parse-glob) +# parse-glob [![NPM version](https://badge.fury.io/js/parse-glob.svg)](http://badge.fury.io/js/parse-glob) [![Build Status](https://travis-ci.org/jonschlinkert/parse-glob.svg)](https://travis-ci.org/jonschlinkert/parse-glob) > Parse a glob pattern into an object of tokens. @@ -102,17 +102,24 @@ The resulting object would be: base: 'a/b' } ``` +## Related +* [glob-base](https://github.com/jonschlinkert/glob-base): Split a glob into a base path and a pattern. +* [glob-parent](https://github.com/es128/glob-parent): Strips glob magic from a string to provide the parent path +* [is-glob](https://github.com/jonschlinkert/is-glob): Returns `true` if the given string looks like a glob pattern. +* [glob-path-regex](https://github.com/regexps/glob-path-regex): Regular expression for matching the parts of glob pattern. +* [micromatch](https://github.com/jonschlinkert/micromatch): Glob matching for javascript/node.js. A faster alternative to minimatch (10-45x faster on avg), with all the features you're used to using in your Grunt and gulp tasks. -## Run tests +## Contributing +Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/parse-glob/issues) -Install dev dependencies: + +## Tests +Install dev dependencies. ```bash npm i -d && npm test ``` -## Contributing -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/parse-glob/issues) ## Author @@ -122,9 +129,9 @@ Pull requests and stars are always welcome. For bugs and feature requests, [plea + [twitter/jonschlinkert](http://twitter.com/jonschlinkert) ## License -Copyright (c) 2015 Jon Schlinkert +Copyright (c) 2014-2015 Jon Schlinkert Released under the MIT license *** -_This file was generated by [verb](https://github.com/assemble/verb) on February 17, 2015._ +_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on March 04, 2015._