Skip to content

Commit f6576f9

Browse files
committed
Scaffold: Repository creation
0 parents  commit f6576f9

File tree

11 files changed

+199
-0
lines changed

11 files changed

+199
-0
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
end_of_line = lf
11+
12+
[*.md]
13+
trim_trailing_whitespace = false

.eslintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "gulp"
3+
}

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text eol=lf

.gitignore

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Logs
2+
logs
3+
*.log
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
14+
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

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=false

.travis.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
sudo: false
2+
language: node_js
3+
node_js:
4+
- '10'
5+
- '8'
6+
- '6'
7+
- '4'
8+
- '0.12'
9+
- '0.10'
10+
after_script:
11+
- npm run coveralls

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2018 Blaine Bublitz <blaine.bublitz@gmail.com> and Eric Schoffstall <yo@contra.io>
4+
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:
11+
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.
22+

README.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<p align="center">
2+
<a href="http://gulpjs.com">
3+
<img height="257" width="114" src="https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png">
4+
</a>
5+
</p>
6+
7+
# parse-node-version
8+
9+
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Travis Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url]
10+
11+
Turn node's process.version into something useful.
12+
13+
## Usage
14+
15+
```js
16+
var nodeVersion = require('parse-node-version')(process.version);
17+
18+
console.log(nodeVersion.major, nodeVersion.minor, nodeVersion.patch);
19+
```
20+
21+
## API
22+
23+
### parseVersion(nodeVersionString)
24+
25+
Takes a node version string (usually `process.version`) and returns an object with the `major`, `minor`, and `patch` keys which will all be parsed digits.
26+
27+
## License
28+
29+
MIT
30+
31+
[downloads-image]: http://img.shields.io/npm/dm/parse-node-version.svg
32+
[npm-url]: https://www.npmjs.com/package/parse-node-version
33+
[npm-image]: http://img.shields.io/npm/v/parse-node-version.svg
34+
35+
[travis-url]: https://travis-ci.org/gulpjs/parse-node-version
36+
[travis-image]: http://img.shields.io/travis/gulpjs/parse-node-version.svg?label=travis-ci
37+
38+
[appveyor-url]: https://ci.appveyor.com/project/gulpjs/parse-node-version
39+
[appveyor-image]: https://img.shields.io/appveyor/ci/gulpjs/parse-node-version.svg?label=appveyor
40+
41+
[coveralls-url]: https://coveralls.io/r/gulpjs/parse-node-version
42+
[coveralls-image]: http://img.shields.io/coveralls/gulpjs/parse-node-version/master.svg
43+
44+
[gitter-url]: https://gitter.im/gulpjs/gulp
45+
[gitter-image]: https://badges.gitter.im/gulpjs/gulp.svg

appveyor.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# http://www.appveyor.com/docs/appveyor-yml
2+
# http://www.appveyor.com/docs/lang/nodejs-iojs
3+
4+
environment:
5+
matrix:
6+
# node.js
7+
- nodejs_version: "0.10"
8+
- nodejs_version: "0.12"
9+
- nodejs_version: "4"
10+
- nodejs_version: "6"
11+
- nodejs_version: "8"
12+
- nodejs_version: "10"
13+
14+
install:
15+
- ps: Install-Product node $env:nodejs_version
16+
- npm install
17+
18+
test_script:
19+
- node --version
20+
- npm --version
21+
- cmd: npm test
22+
23+
build: off
24+
25+
# build version format
26+
version: "{build}"

package.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"name": "parse-node-version",
3+
"version": "0.0.0",
4+
"description": "Turn node's process.version into something useful.",
5+
"author": "Gulp Team <team@gulpjs.com> (http://gulpjs.com/)",
6+
"contributors": [
7+
"Blaine Bublitz <blaine.bublitz@gmail.com>"
8+
],
9+
"repository": "gulpjs/parse-node-version",
10+
"license": "MIT",
11+
"engines": {
12+
"node": ">= 0.10"
13+
},
14+
"main": "index.js",
15+
"files": [
16+
"LICENSE",
17+
"index.js"
18+
],
19+
"scripts": {
20+
"lint": "eslint .",
21+
"pretest": "npm run lint",
22+
"test": "mocha --async-only",
23+
"cover": "istanbul cover _mocha --report lcovonly",
24+
"coveralls": "npm run cover && istanbul-coveralls"
25+
},
26+
"dependencies": {},
27+
"devDependencies": {
28+
"eslint": "^2.13.0",
29+
"eslint-config-gulp": "^3.0.1",
30+
"expect": "^1.20.2",
31+
"istanbul": "^0.4.3",
32+
"istanbul-coveralls": "^1.0.3",
33+
"mocha": "^3.5.3"
34+
},
35+
"keywords": [
36+
"process.version",
37+
"node version",
38+
"version parse"
39+
]
40+
}

test/.eslintrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "gulp/test",
3+
"rules": {
4+
"no-console": 0
5+
}
6+
}

0 commit comments

Comments
 (0)