Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.1.0 #1

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
{
"extends": "skelp/v3/es6",
"extends": "notninja/es6",
"env": {
"node": true
},
"rules": {
"func-names": [
"error",
"always"
],
"global-require": "off",
"max-params": [
"error",
Expand Down
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ node_js:
- "6"
- "7"
script:
- npm test
- npm run ci
after_script:
- npm run report-coverage
notifications:
slack:
rooms:
- secure: aWIR/s68NNaoxHs5NKWrC7e9jDP89uEIrtpKjKhi/Q7ZXIc1l/e5RPjyvJtCs1V8JJsvHOMebQn1eCJbAldlTp3aqzEYIyMVreyCus04ZkCGdnHI1q7v3EmVeEfwXSnxXZrLar82j8DeegriHCMJofpRyCvUNFJ2jZBw9KrWO3TaYf7bT6spjhQJDPWteKFMfgt3HMaNbv8OdbQVoGzM3PpWxWMZvELSslKOeDC8Esd1IfiHjPBsdx/Hc80E5JXEhsj61+ggWdQYfso1ex+FgZqyxwjSrD+4TDdAFoN8G5lYPObBBa4zN2IsGvWMKZkiIVaJce/H5NoiBhYItSDAczm+edZ+LJki954Hm0gLE2NyD8N6RfGiGxYBcZBryzcgEIpvE1QY0M+3TRC2RklPEK0jXutGSrmYuW1TC3QmuZP5W7Rcr33uRdLdUa3gkLH05jQwxNwX06z88jAVfVNqpqJuscX1A52qBMOm4lm5P0PRmz6/DA/lntGbDzhbJVvPtEE/Um5QZYrnw5aA4zAz4cZx6Pm+hr2BSKD/3PObFO6l0nXAomy6QT+h/M3Ycj0BC3U++mY0UhmOWwJuFeKbeHx4E5qdRPjX5CEFCcDSRprlj6iQdoxhm+jjl9Ui7Fs5ndRLDeqM8kxHYe0bFoi2EfasglqnibKotfTgMSHnwRA=
on_success: change
2 changes: 1 addition & 1 deletion AUTHORS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Authors ordered by first contribution

* Alasdair Mercer <alasdair@skelp.io>
* Alasdair Mercer <mercer.alasdair@gmail.com>
10 changes: 5 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Contributing

If you have any questions about [ServiceLoader](https://github.com/Skelp/node-service-loader) please feel free to
[raise an issue](https://github.com/Skelp/node-service-loader/issues/new).
If you have any questions about [ServiceLoader](https://github.com/NotNinja/node-service-loader) please feel free to
[raise an issue](https://github.com/NotNinja/node-service-loader/issues/new).

Please [search existing issues](https://github.com/Skelp/node-service-loader/issues) for the same feature and/or issue
before raising a new issue. Commenting on an existing issue is usually preferred over raising duplicate issues.
Please [search existing issues](https://github.com/NotNinja/node-service-loader/issues) for the same feature and/or
issue before raising a new issue. Commenting on an existing issue is usually preferred over raising duplicate issues.

Please ensure that all files conform to the coding standards, using the same coding style as the rest of the code base.
All unit tests should be updated and passing as well. All of this can easily be checked via command-line:
Expand All @@ -21,5 +21,5 @@ You must have at least [Node.js](https://nodejs.org) 4 or newer.
All pull requests should be made to the `develop` branch.

Don't forget to add your details to the list of
[AUTHORS.md](https://github.com/Skelp/node-service-loader/blob/master/AUTHORS.md) if you want your contribution to be
[AUTHORS.md](https://github.com/NotNinja/node-service-loader/blob/master/AUTHORS.md) if you want your contribution to be
recognized by others.
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (C) 2017 Alasdair Mercer, Skelp
Copyright (C) 2017 Alasdair Mercer, !ninja

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
58 changes: 32 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
.d8888b. d8b 888 888
d88P Y88b Y8P 888 888
Y88b. 888 888
"Y888b. .d88b. 888d888 888 888 888 .d8888b .d88b. 888 .d88b. 8888b. .d88888 .d88b. 888d888
"Y88b. d8P Y8b 888P" 888 888 888 d88P" d8P Y8b 888 d88""88b "88b d88" 888 d8P Y8b 888P"
"888 88888888 888 Y88 88P 888 888 88888888 888 888 888 .d888888 888 888 88888888 888
Y88b d88P Y8b. 888 Y8bd8P 888 Y88b. Y8b. 888 Y88..88P 888 888 Y88b 888 Y8b. 888
"Y8888P" "Y8888 888 Y88P 888 "Y8888P "Y8888 88888888 "Y88P" "Y888888 "Y88888 "Y8888 888

[ServiceLoader](https://github.com/Skelp/node-service-loader) is a service provider loader.

[![Build](https://img.shields.io/travis/Skelp/node-service-loader/develop.svg?style=flat-square)](https://travis-ci.org/Skelp/node-service-loader)
[![Coverage](https://img.shields.io/coveralls/Skelp/node-service-loader/develop.svg?style=flat-square)](https://coveralls.io/github/Skelp/node-service-loader)
[![Dependencies](https://img.shields.io/david/Skelp/node-service-loader.svg?style=flat-square)](https://david-dm.org/Skelp/node-service-loader)
[![Dev Dependencies](https://img.shields.io/david/dev/Skelp/node-service-loader.svg?style=flat-square)](https://david-dm.org/Skelp/node-service-loader#info=devDependencies)
[![License](https://img.shields.io/npm/l/service-loader.svg?style=flat-square)](https://github.com/Skelp/node-service-loader/blob/master/LICENSE.md)
d8b
Y8P

.d8888b .d88b. 888d888 888 888 888 .d8888b .d88b.
88K d8P Y8b 888P" 888 888 888 d88P" d8P Y8b
"Y8888b. 88888888 888 Y88 88P 888 888 88888888
X88 Y8b. 888 Y8bd8P 888 Y88b. Y8b. 888
88888P' "Y8888 888 Y88P 888 "Y8888P "Y8888 888
888 888
888 .d88b. 8888b. .d88888 .d88b. 888d888
888 d88""88b "88b d88" 888 d8P Y8b 888P"
888 888 888 .d888888 888 888 88888888 888
888 Y88..88P 888 888 Y88b 888 Y8b. 888
888 "Y88P" "Y888888 "Y88888 "Y8888 888

[ServiceLoader](https://github.com/NotNinja/node-service-loader) is a service provider loader.

[![Build](https://img.shields.io/travis/NotNinja/node-service-loader/develop.svg?style=flat-square)](https://travis-ci.org/NotNinja/node-service-loader)
[![Coverage](https://img.shields.io/codecov/c/github/NotNinja/node-service-loader/develop.svg?style=flat-square)](https://codecov.io/gh/NotNinja/node-service-loader)
[![Dependencies](https://img.shields.io/david/NotNinja/node-service-loader.svg?style=flat-square)](https://david-dm.org/NotNinja/node-service-loader)
[![Dev Dependencies](https://img.shields.io/david/dev/NotNinja/node-service-loader.svg?style=flat-square)](https://david-dm.org/NotNinja/node-service-loader?type=dev)
[![License](https://img.shields.io/npm/l/service-loader.svg?style=flat-square)](https://github.com/NotNinja/node-service-loader/blob/master/LICENSE.md)
[![Release](https://img.shields.io/npm/v/service-loader.svg?style=flat-square)](https://www.npmjs.com/package/service-loader)

* [Install](#install)
Expand All @@ -32,40 +38,40 @@ You'll need to have at least [Node.js](https://nodejs.org) 4 or newer.

## API

### `load(service[, packageName])`
### `load(serviceName[, packageName][, options])`

TODO: Document

TODO: Example(s)

### `version`

The current version of ServiceLoader.

``` javascript
const ServiceLoader = require('service-loader')
const ServiceLoader = require('service-loader');

ServiceLoader.version
=> "0.1.0alpha"
ServiceLoader.version;
=> "0.1.0"
```

## Bugs

If you have any problems with ServiceLoader or would like to see changes currently in development you can do so
[here](https://github.com/Skelp/node-service-loader/issues).
[here](https://github.com/NotNinja/node-service-loader/issues).

## Contributors

If you want to contribute, you're a legend! Information on how you can do so can be found in
[CONTRIBUTING.md](https://github.com/Skelp/node-service-loader/blob/master/CONTRIBUTING.md). We want your suggestions
[CONTRIBUTING.md](https://github.com/NotNinja/node-service-loader/blob/master/CONTRIBUTING.md). We want your suggestions
and pull requests!

A list of ServiceLoader contributors can be found in
[AUTHORS.md](https://github.com/Skelp/node-service-loader/blob/master/AUTHORS.md).
[AUTHORS.md](https://github.com/NotNinja/node-service-loader/blob/master/AUTHORS.md).

## License

See [LICENSE.md](https://github.com/Skelp/node-service-loader/raw/master/LICENSE.md) for more information on our MIT
See [LICENSE.md](https://github.com/NotNinja/node-service-loader/raw/master/LICENSE.md) for more information on our MIT
license.

© 2017 [Skelp](https://skelp.io)
<img align="right" width="16" height="16" src="https://cdn.rawgit.com/Skelp/skelp-branding/master/assets/logo/base/skelp-logo-16x16.png">
[![Copyright !ninja](https://cdn.rawgit.com/NotNinja/branding/master/assets/copyright/base/not-ninja-copyright-186x25.png)](https://not.ninja)
34 changes: 19 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "service-loader",
"version": "0.1.0alpha",
"version": "0.1.0",
"description": "A service provider loader",
"homepage": "https://github.com/Skelp/node-service-loader",
"homepage": "https://github.com/NotNinja/node-service-loader",
"bugs": {
"url": "https://github.com/Skelp/node-service-loader/issues"
"url": "https://github.com/NotNinja/node-service-loader/issues"
},
"author": {
"name": "Alasdair Mercer",
"email": "alasdair@skelp.io",
"url": "https://skelp.io"
"email": "mercer.alasdair@gmail.com",
"url": "https://not.ninja"
},
"license": "MIT",
"keywords": [
Expand All @@ -20,27 +20,31 @@
],
"repository": {
"type": "git",
"url": "https://github.com/Skelp/node-service-loader.git"
"url": "https://github.com/NotNinja/node-service-loader.git"
},
"dependencies": {
"debug": "^2.6.1",
"knockknock": "^0.2.0",
"debug": "*",
"knockknock": "^0.3.0",
"lodash.forown": "^4.4.0",
"pacscan": "^0.1.0"
"pacscan": "^0.2.0"
},
"devDependencies": {
"chai": "^3.5.0",
"coveralls": "^2.11.16",
"eslint": "^3.15.0",
"eslint-config-skelp": "^0.1.5",
"codecov": "^2.2.0",
"eslint": "^3.19.0",
"eslint-config-notninja": "^0.1.1",
"istanbul": "^0.4.5",
"mocha": "^3.2.0"
"mkdirp": "^0.5.1",
"mocha": "^3.4.1",
"ncp": "^2.0.0",
"tmp": "0.0.31"
},
"main": "src/service-loader.js",
"scripts": {
"report-coverage": "istanbul cover _mocha --report lcovonly -- -R spec \"test/**/*.spec.js\" && coveralls < coverage/lcov.info",
"ci": "npm run test",
"report-coverage": "istanbul cover _mocha --report lcovonly -- -R list \"test/**/*.spec.js\" && codecov",
"pretest": "eslint \"src/**/*.js\" \"test/**/*.js\"",
"test": "istanbul cover _mocha -- -R spec \"test/**/*.spec.js\"",
"test": "istanbul cover _mocha -- -R list \"test/**/*.spec.js\"",
"posttest": "istanbul check-coverage"
},
"engines": {
Expand Down
Loading