Skip to content

Commit 01a2aed

Browse files
committed
Initial commit.
0 parents  commit 01a2aed

File tree

7 files changed

+709
-0
lines changed

7 files changed

+709
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
coverage
3+
doc

README.md

Whitespace-only changes.

package.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "js-data-adapter",
3+
"description": "Base adapter interface for js-data adapters to extend.",
4+
"version": "1.0.0-alpha.1",
5+
"homepage": "https://github.com/js-data/js-data-adapter",
6+
"repository": {
7+
"type": "git",
8+
"url": "https://github.com/js-data/js-data-adapter.git"
9+
},
10+
"author": "js-data-adapter project authors",
11+
"license": "MIT",
12+
"main": "./src/index.js",
13+
"keywords": [
14+
"js-data",
15+
"jsdata",
16+
"adapter"
17+
],
18+
"standard": {
19+
"parser": "babel-eslint"
20+
},
21+
"scripts": {
22+
"lint": "standard src/**/*.js",
23+
"test": "npm run lint",
24+
"release": "npm test && repo-tools authors",
25+
},
26+
"peerDependencies": {
27+
"js-data": "^3.0.0-alpha.16",
28+
},
29+
"devDependencies": {
30+
"babel-eslint": "5.0.0",
31+
"standard": "6.0.7"
32+
}
33+
}

scripts/AUTHORS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# This is the official list of js-data-adapter project authors.
2+
#
3+
# This file is controlled by scripts/authors.js
4+
#
5+
# Names are formatted as:
6+
# # commits Name or Organization <email address>
7+
# The email address is not required for organizations.

scripts/CONTRIBUTORS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# People who have contributed to the js-data-adapter project.
2+
#
3+
# This file is controlled by scripts/authors.js
4+
#
5+
# Names should be added to this file as:
6+
# [commit count] Name <email address>

scripts/authors.js

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
var fs = require('fs')
2+
var exec = require('child_process').exec
3+
var path = require('path')
4+
5+
console.log('Writing AUTHORS file...')
6+
7+
var authorsFile = fs.readFileSync(__dirname + '/AUTHORS', {
8+
encoding: 'utf-8'
9+
})
10+
var contributorsFile = fs.readFileSync(__dirname + '/CONTRIBUTORS', {
11+
encoding: 'utf-8'
12+
})
13+
14+
var tty = process.platform === 'win32' ? 'CON' : '/dev/tty'
15+
16+
exec('git shortlog -s -e < ' + tty, function (err, stdout, stderr) {
17+
if (err) {
18+
console.error(err)
19+
process.exit(-1)
20+
} else {
21+
var lines = stdout.split('\n')
22+
var countsAndNames = lines.map(function (line) {
23+
return line.split('\t')
24+
})
25+
var names = countsAndNames.map(function (pair) {
26+
return pair[1]
27+
})
28+
29+
// Add to or otherwise modify "names" if necessary
30+
31+
fs.writeFileSync(__dirname + '/../AUTHORS', authorsFile + names.join('\n'), {
32+
encoding: 'utf-8'
33+
})
34+
console.log('Done!')
35+
console.log('Writing CONTRIBUTORS file...')
36+
37+
names = lines
38+
39+
// Add to or otherwise modify "names" if necessary
40+
41+
fs.writeFileSync(__dirname + '/../CONTRIBUTORS', contributorsFile + names.join('\n'), {
42+
encoding: 'utf-8'
43+
})
44+
console.log('Done!')
45+
}
46+
})

0 commit comments

Comments
 (0)