Skip to content

Commit dfefabd

Browse files
committed
Fixes
1 parent 8d6e4bb commit dfefabd

19 files changed

+644
-0
lines changed

.github/CONTRIBUTING.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Contributing
2+
3+
[Read the Contributing Guide](http://js-data.io/docs/contributing).
4+
5+
## Support
6+
7+
[Find out how to Get Support](http://js-data.io/docs/support).
8+
9+
## Community
10+
11+
[Explore the Community](http://js-data.io/docs/community).
12+
13+
### Have write access?
14+
15+
To cut a release:
16+
17+
1. Checkout master
18+
1. Bump version in `package.json` appropriately
19+
1. Run `npm run release`
20+
1. Update `CHANGELOG.md` appropriately
21+
1. Commit and push changes, including the `dist/` folder
22+
1. Make a GitHub release
23+
- set tag name to version
24+
- set release name to version
25+
- set release body to changelog entry for the version
26+
1. `npm publish .`

.github/ISSUE_TEMPLATE.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
(delete this line) GitHub Issues are NOT for support questions.
2+
(delete this line) GitHub Issues ARE for bug reports, feature requests, and other issues.
3+
(delete this line) Find out how to Get Support here: http://js-data.io/docs/support.
4+
5+
<your detailed, discussable, actionable, and helpful text goes here>
6+
7+
Thanks!

.github/PULL_REQUEST_TEMPLATE.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Fixes #<issue_number_goes_here> (it's a good idea to open an issue first for discussion)
2+
3+
- [ ] - `npm test` succeeds
4+
- [ ] - Pull request has been squashed into 1 commit
5+
- [ ] - I did NOT commit changes to `dist/`
6+
- [ ] - Code coverage does not decrease (if any source code was changed)
7+
- [ ] - Appropriate JSDoc comments were updated in source code (if applicable)
8+
- [ ] - Approprate changes to js-data.io docs have been suggested ("Suggest Edits" button)

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
coverage
3+
doc

.npmignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
coverage
3+
doc

AUTHORS

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# This is the official list of js-data-repo-tools 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.
8+
Jason Dobry <[email protected]>

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
##### 0.1.0 - 06 March 2016
2+
3+
Initial release
4+
5+
Supported scripts: authors, changelog, lint, updates

CONTRIBUTORS

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# People who have contributed to the js-data-repo-tools project.
2+
#
3+
# Names should be added to this file as:
4+
# [commit count] Name <email address>
5+
1 Jason Dobry <[email protected]>

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 js-data-repo-tools project authors
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.

README.md

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
<img src="https://raw.githubusercontent.com/js-data/js-data/master/js-data.png" alt="js-data logo" title="js-data" align="right" width="96" height="96" />
2+
3+
# js-data-repo-tools
4+
5+
[![Slack Status][sl_b]][sl_l]
6+
[![npm version][npm_b]][npm_l]
7+
[![npm downloads][dn_b]][dn_l]
8+
9+
Common utility scripts used by js-data repositories.
10+
11+
Refer to the `package.json` files of the various js-data adapter repositories to
12+
see this tool in action.
13+
14+
## Table of contents
15+
16+
* [Quick start](#quick-start)
17+
* [Community](#community)
18+
* [Support](#support)
19+
* [Contributing](#contributing)
20+
* [License](#license)
21+
22+
## Quick Start
23+
Install into a repository: `npm i --save-dev js-data-repo-tools`
24+
25+
And update your scripts in `package.json`:
26+
27+
```js
28+
"scripts": {
29+
"lint": "repo-tools lint src/index.js test/**/*.js"
30+
}
31+
```
32+
33+
Or install globally: `npm i -g js-data-repo-tools`
34+
35+
And use on the commandline:
36+
37+
```
38+
repo-tools lint
39+
```
40+
41+
## Community
42+
43+
[Explore the Community](http://js-data.io/docs/community).
44+
45+
## Support
46+
47+
[Find out how to Get Support](http://js-data.io/docs/support).
48+
49+
## Contributing
50+
51+
[Read the Contributing Guide](http://js-data.io/docs/contributing).
52+
53+
## License
54+
55+
The MIT License (MIT)
56+
57+
Copyright (c) 2016 js-data-repo-tools project authors
58+
59+
* [LICENSE](https://github.com/js-data/js-data-repo-tools/blob/master/LICENSE)
60+
* [AUTHORS](https://github.com/js-data/js-data-repo-tools/blob/master/AUTHORS)
61+
* [CONTRIBUTORS](https://github.com/js-data/js-data-repo-tools/blob/master/CONTRIBUTORS)
62+
63+
[sl_b]: http://slack.js-data.io/badge.svg
64+
[sl_l]: http://slack.js-data.io
65+
[npm_b]: https://img.shields.io/npm/v/js-data-repo-tools.svg?style=flat
66+
[npm_l]: https://www.npmjs.org/package/js-data-repo-tools
67+
[dn_b]: https://img.shields.io/npm/dm/js-data-repo-tools.svg?style=flat
68+
[dn_l]: https://www.npmjs.org/package/js-data-repo-tools

bin/repo-tools

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env node
2+
3+
var repoTools = require('../src/cli')
4+
5+
repoTools.parse(process.argv)
6+
7+
if (!repoTools.args.length) {
8+
repoTools.help()
9+
}

package.json

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"name": "js-data-repo-tools",
3+
"description": "Common utility scripts used by js-data repositories.",
4+
"version": "0.1.0",
5+
"homepage": "https://github.com/js-data/js-data-repo-tools",
6+
"repository": {
7+
"type": "git",
8+
"url": "https://github.com/js-data/js-data-repo-tools.git"
9+
},
10+
"author": "js-data-repo-tools project authors",
11+
"license": "MIT",
12+
"main": "./src/api/index.js",
13+
"bin": {
14+
"repo-tools": "./bin/repo-tools"
15+
},
16+
"keywords": [
17+
"js-data",
18+
"jsdata",
19+
"repo",
20+
"tools"
21+
],
22+
"standard": {
23+
"parser": "babel-eslint"
24+
},
25+
"scripts": {
26+
"lint": "node . lint",
27+
"test": "npm run lint && node . changelog && node . updates && node . authors",
28+
"release": "npm test"
29+
},
30+
"dependencies": {
31+
"babel-eslint": "5.0.0",
32+
"bluebird": "3.3.3",
33+
"commander": "2.9.0",
34+
"lodash": "4.6.1",
35+
"npm-check-updates": "2.5.8",
36+
"standard": "6.0.7"
37+
}
38+
}

0 commit comments

Comments
 (0)