Skip to content

Commit 4b1b39a

Browse files
committed
Scaffold: Normalize project
1 parent 8a6becc commit 4b1b39a

8 files changed

+99
-54
lines changed

.editorconfig

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
# editorconfig.org
1+
# http://editorconfig.org
22
root = true
33

44
[*]
55
indent_style = space
66
indent_size = 2
7-
end_of_line = lf
87
charset = utf-8
98
trim_trailing_whitespace = true
10-
insert_final_newline = true
9+
insert_final_newline = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false

.gitignore

+32-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,34 @@
1-
.DS_Store
1+
# Logs
2+
logs
23
*.log
3-
node_modules
4-
build
5-
*.node
6-
*.orig
7-
.idea
8-
sandbox
4+
5+
# Runtime data
6+
pids
7+
*.pid
8+
*.seed
9+
10+
# Directory for instrumented libs generated by jscoverage/JSCover
11+
lib-cov
12+
13+
# Coverage directory used by tools like istanbul
914
coverage
15+
16+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
17+
.grunt
18+
19+
# Compiled binary addons (http://nodejs.org/api/addons.html)
20+
build/Release
21+
22+
# Dependency directory
23+
# Commenting this out is preferred by some people, see
24+
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
25+
node_modules
26+
27+
# Users Environment Variables
28+
.lock-wscript
29+
30+
# Garbage files
31+
.DS_Store
32+
33+
# Generated by integration tests
34+
test/out-fixtures/

.travis.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
sudo: required
22
language: node_js
33
node_js:
4-
- 'stable'
4+
- '6'
5+
- '5'
56
- '4'
67
- '0.12'
78
- '0.10'

LICENSE

+18-17
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1-
Copyright (c) 2013-2016 Fractal <[email protected]>
1+
The MIT License (MIT)
22

3-
Permission is hereby granted, free of charge, to any person obtaining
4-
a copy of this software and associated documentation files (the
5-
"Software"), to deal in the Software without restriction, including
6-
without limitation the rights to use, copy, modify, merge, publish,
7-
distribute, sublicense, and/or sell copies of the Software, and to
8-
permit persons to whom the Software is furnished to do so, subject to
9-
the following conditions:
3+
Copyright (c) 2013 Blaine Bublitz <[email protected]>, Eric Schoffstall <[email protected]> and other contributors
104

11-
The above copyright notice and this permission notice shall be
12-
included in all copies or substantial portions of the Software.
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
1311

14-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,15 @@ Type: `Boolean`
112112

113113
Default: `false`
114114

115-
##### `options.followSymlinks` - `true` if you want
115+
##### `options.followSymlinks`
116116

117117
Whether or not to recursively resolve symlinks to their targets. Setting to `false` to preserve them as symlinks and make `file.symlink` equal the original symlink's target path.
118118

119119
Type: `Boolean`
120120

121121
Default: `true`
122122

123-
##### `options.dots` - `true`
123+
##### `options.dots`
124124

125125
Whether or not you want globs to match on dot files or not (e.g. `.gitignore`)
126126

appveyor.yml

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ environment:
88
- nodejs_version: "0.12"
99
- nodejs_version: "4"
1010
- nodejs_version: "5"
11+
- nodejs_version: "6"
1112

1213
install:
1314
- ps: Install-Product node $env:nodejs_version

package.json

+33-21
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,30 @@
11
{
22
"name": "vinyl-fs",
3-
"description": "Vinyl adapter for the file system",
43
"version": "2.4.3",
5-
"homepage": "http://github.com/wearefractal/vinyl-fs",
6-
"repository": "git://github.com/wearefractal/vinyl-fs.git",
7-
"author": "Fractal <[email protected]> (http://wearefractal.com/)",
8-
"main": "./index.js",
4+
"description": "Vinyl adapter for the file system.",
5+
"author": "Gulp Team <[email protected]> (http://gulpjs.com/)",
6+
"contributors": [
7+
"Eric Schoffstall <[email protected]>",
8+
"Blaine Bublitz <[email protected]>"
9+
],
10+
"repository": "gulpjs/vinyl-fs",
11+
"license": "MIT",
12+
"engines": {
13+
"node": ">= 0.10"
14+
},
15+
"main": "index.js",
916
"files": [
17+
"LICENSE",
1018
"index.js",
1119
"lib"
1220
],
21+
"scripts": {
22+
"lint": "eslint . && jscs index.js lib/ test/",
23+
"pretest": "npm run lint",
24+
"test": "mocha --async-only",
25+
"cover": "istanbul cover _mocha --report lcovonly",
26+
"coveralls": "npm run cover && istanbul-coveralls"
27+
},
1328
"dependencies": {
1429
"duplexify": "^3.2.0",
1530
"flush-write-stream": "^1.0.0",
@@ -34,24 +49,21 @@
3449
"del": "^2.2.0",
3550
"eslint": "^1.10.3",
3651
"eslint-config-gulp": "^2.0.0",
37-
"expect": "^1.14.0",
38-
"github-changes": "^1.0.1",
39-
"istanbul": "^0.3.0",
40-
"istanbul-coveralls": "^1.0.1",
52+
"expect": "^1.19.0",
53+
"istanbul": "^0.4.3",
54+
"istanbul-coveralls": "^1.0.3",
4155
"jscs": "^2.4.0",
4256
"jscs-preset-gulp": "^1.0.0",
4357
"mississippi": "^1.2.0",
44-
"mocha": "^2.0.0"
45-
},
46-
"scripts": {
47-
"lint": "eslint . && jscs index.js lib/ test/",
48-
"test": "npm run lint && mocha",
49-
"cover": "istanbul cover _mocha",
50-
"coveralls": "npm run cover && istanbul-coveralls",
51-
"changelog": "github-changes -o gulpjs -r vinyl-fs -b master -f ./CHANGELOG.md --order-semver --use-commit-body"
52-
},
53-
"engines": {
54-
"node": ">=0.10"
58+
"mocha": "^2.4.5"
5559
},
56-
"license": "MIT"
60+
"keywords": [
61+
"gulp",
62+
"vinyl-adapter",
63+
"vinyl",
64+
"file",
65+
"file system",
66+
"fs",
67+
"streams"
68+
]
5769
}

test/default-value.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,19 @@ var defaultValue = require('../lib/default-value');
66

77
describe('defaultVaule', function() {
88

9-
it('returns the value if the value is not null', function() {
9+
it('returns the value if the value is not null', function(done) {
1010
expect(defaultValue('defaultValue', 1)).toBe(1);
11+
done();
1112
});
1213

13-
it('returns the default value if the value is undefined', function() {
14+
it('returns the default value if the value is undefined', function(done) {
1415
expect(defaultValue('defaultValue', undefined)).toBe('defaultValue');
16+
done();
1517
});
1618

17-
it('returns the default value if the value is null', function() {
19+
it('returns the default value if the value is null', function(done) {
1820
expect(defaultValue('defaultValue', null)).toBe('defaultValue');
21+
done();
1922
});
2023

2124
});

0 commit comments

Comments
 (0)