Skip to content

Commit cae6ea9

Browse files
authored
Merge pull request #5 from NotNinja/develop
Release 0.2.0
2 parents 31ee658 + 6269d83 commit cae6ea9

37 files changed

+703
-667
lines changed

.eslintrc.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "skelp/v3/es6",
2+
"extends": "notninja/es6",
33
"env": {
44
"node": true
55
},
@@ -10,7 +10,8 @@
1010
],
1111
"global-require": "off",
1212
"no-use-before-define": [
13-
"error", {
13+
"error",
14+
{
1415
"functions": false
1516
}
1617
]

.travis.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ node_js:
55
- "6"
66
- "7"
77
script:
8-
- npm test
8+
- npm run ci
99
after_script:
1010
- npm run report-coverage
11+
notifications:
12+
slack:
13+
rooms:
14+
- secure: Z5YsOzR7P7Ar88G1KXU/hoy9/dC6k01s1jlkWgfhZYhWqBIQ3y20IxGgJpXpSnI8GT+DlT8piqlQSD4qtwjuoh0lKWNP6FPT6l1NWeMfOgtdbYZZ5osP6plAKZno1s8H7r3Hz+dbAXFeu3Xm2Rr1dkg/M98mXbAYbB1/1pGG1LrNu1hDrivbtlW3e5Km6FKyCSxliJLpzcqU/4QD5nmEQlT8IvV9i1dsqxTn/TVgmJ8VIX1WSaGMJEqOLlExX4qrRPZv+DV1tUWi+/EcO9OioMB9TklfBTKVpE/OwJ6ViKQWG/Z064NXnVtISdGXmM4NL7p2lRFWMrPVq+pomqoudzK8W6YnlCsE7eALZwcTyJSd4jRgL1MjYlDWzchvPnngiZnzwNbE/qSnKX0vkxvGdyI4GUMmlPEuG7+UkFhUpPN5M5JfqLFxCIbF2/j2gxGittAf73NvEKexmyeq/n/a6gv5PksPKIxyucbO5OXQcONCHK5+RCXbkU+7oBXnQsv0yMfCDhk/h6/vU1c9EULG4Z60DRGKIP40FZdbWEksXy9DxxDIBIGjXflgQnwWHgmfsxI4P0G6E2LirFo0J/ESUqKQF4LBWamwyDrud6WBnpywlBeR9RwaD2GA2l7NbLijV4PcqQo+fm4dkadvVHQWx9TQF5AmKz7vhdy9pLREmzQ=
15+
on_success: change

AUTHORS.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Authors ordered by first contribution
22

3-
* Alasdair Mercer <alasdair@skelp.io>
3+
* Alasdair Mercer <mercer.alasdair@gmail.com>

CHANGES.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## Version 0.2.0, 2017.05.18
2+
3+
* Cache parent package directories [#2](https://github.com/NotNinja/node-pacscan/issues/2)
4+
* Move to !ninja [#3](https://github.com/NotNinja/node-pacscan/issues/3)
5+
* Switch to Codecov for code coverage [#4](https://github.com/NotNinja/node-pacscan/issues/4)
6+
7+
## Version 0.1.0, 2017.02.25
8+
9+
* Initial release

CONTRIBUTING.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Contributing
22

3-
If you have any questions about [PacScan](https://github.com/Skelp/node-pacscan) please feel free to
4-
[raise an issue](https://github.com/Skelp/node-pacscan/issues/new).
3+
If you have any questions about [PacScan](https://github.com/NotNinja/node-pacscan) please feel free to
4+
[raise an issue](https://github.com/NotNinja/node-pacscan/issues/new).
55

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

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

2323
Don't forget to add your details to the list of
24-
[AUTHORS.md](https://github.com/Skelp/node-pacscan/blob/master/AUTHORS.md) if you want your contribution to be
24+
[AUTHORS.md](https://github.com/NotNinja/node-pacscan/blob/master/AUTHORS.md) if you want your contribution to be
2525
recognized by others.

LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (C) 2017 Alasdair Mercer, Skelp
1+
Copyright (C) 2017 Alasdair Mercer, !ninja
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

README.md

+25-25
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
888 888 888 Y88b. Y88b d88P Y88b. 888 888 888 888
88
888 "Y888888 "Y8888P "Y8888P" "Y8888P "Y888888 888 888
99

10-
[PacScan](https://github.com/Skelp/node-pacscan) provides information about all available packages for your module at
10+
[PacScan](https://github.com/NotNinja/node-pacscan) provides information about all available packages for your module at
1111
runtime by scanning `node_modules` as opposed to digging into dependency trees.
1212

13-
[![Build](https://img.shields.io/travis/Skelp/node-pacscan/develop.svg?style=flat-square)](https://travis-ci.org/Skelp/node-pacscan)
14-
[![Coverage](https://img.shields.io/coveralls/Skelp/node-pacscan/develop.svg?style=flat-square)](https://coveralls.io/github/Skelp/node-pacscan)
15-
[![Dependencies](https://img.shields.io/david/Skelp/node-pacscan.svg?style=flat-square)](https://david-dm.org/Skelp/node-pacscan)
16-
[![Dev Dependencies](https://img.shields.io/david/dev/Skelp/node-pacscan.svg?style=flat-square)](https://david-dm.org/Skelp/node-pacscan#info=devDependencies)
17-
[![License](https://img.shields.io/npm/l/pacscan.svg?style=flat-square)](https://github.com/Skelp/node-pacscan/blob/master/LICENSE.md)
13+
[![Build](https://img.shields.io/travis/NotNinja/node-pacscan/develop.svg?style=flat-square)](https://travis-ci.org/NotNinja/node-pacscan)
14+
[![Coverage](https://img.shields.io/codecov/c/github/NotNinja/node-pacscan/develop.svg?style=flat-square)](https://codecov.io/gh/NotNinja/node-pacscan)
15+
[![Dependencies](https://img.shields.io/david/NotNinja/node-pacscan.svg?style=flat-square)](https://david-dm.org/NotNinja/node-pacscan)
16+
[![Dev Dependencies](https://img.shields.io/david/dev/NotNinja/node-pacscan.svg?style=flat-square)](https://david-dm.org/NotNinja/node-pacscan?type=dev)
17+
[![License](https://img.shields.io/npm/l/pacscan.svg?style=flat-square)](https://github.com/NotNinja/node-pacscan/blob/master/LICENSE.md)
1818
[![Release](https://img.shields.io/npm/v/pacscan.svg?style=flat-square)](https://www.npmjs.com/package/pacscan)
1919

2020
* [Install](#install)
@@ -56,22 +56,22 @@ The `options` parameter is entirely optional and supports the following:
5656
| Option | Description | Default Value |
5757
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
5858
| `includeParents` | Whether the highest level package directory should be scanned or only the lowest level base directory. | `false` |
59-
| `knockknock` | Any options to be passed to [KnockKnock](https://github.com/Skelp/node-knockknock). `limit` will always be overridden to `1`. | `null` |
59+
| `knockknock` | Any options to be passed to [KnockKnock](https://github.com/NotNinja/node-knockknock). `limit` will always be overridden to `1`. | `null` |
6060
| `path` | The file/directory path from where to derive the base directory to be scanned. Path to module that called PacScan will be used when `null`. | `null` |
6161

6262
If you only want to list the packages available to your module/package:
6363

6464
``` javascript
65-
const pacscan = require('pacscan')
65+
const pacscan = require('pacscan');
6666

6767
module.exports = function() {
6868
pacscan()
6969
.then((packages) => {
70-
console.log(`${packages.length} packages found`)
70+
console.log(`${packages.length} packages found`);
7171

7272
// ...
73-
})
74-
}
73+
});
74+
};
7575
```
7676

7777
However, if you're calling PacScan from within a library that is most likely being included in another package as a
@@ -84,45 +84,45 @@ option.
8484
A synchronous alternative to `pacscan([options])`.
8585

8686
``` javascript
87-
const pacscan = require('pacscan')
87+
const pacscan = require('pacscan');
8888

8989
module.exports = function() {
90-
const packages = pacscan.sync()
90+
const packages = pacscan.sync();
9191

92-
console.log(`${packages.length} packages found`)
92+
console.log(`${packages.length} packages found`);
9393

9494
// ...
95-
}
95+
};
9696
```
9797

9898
### `pacscan.version`
9999

100100
The current version of PacScan.
101101

102102
``` javascript
103-
const pacscan = require('pacscan')
103+
const pacscan = require('pacscan');
104104

105-
pacscan.version
106-
=> "0.1.0"
105+
pacscan.version;
106+
=> "0.2.0"
107107
```
108108

109109
## Bugs
110110

111111
If you have any problems with PacScan or would like to see changes currently in development you can do so
112-
[here](https://github.com/Skelp/node-pacscan/issues).
112+
[here](https://github.com/NotNinja/node-pacscan/issues).
113113

114114
## Contributors
115115

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

120120
A list of PacScan contributors can be found in
121-
[AUTHORS.md](https://github.com/Skelp/node-pacscan/blob/master/AUTHORS.md).
121+
[AUTHORS.md](https://github.com/NotNinja/node-pacscan/blob/master/AUTHORS.md).
122122

123123
## License
124124

125-
See [LICENSE.md](https://github.com/Skelp/node-pacscan/raw/master/LICENSE.md) for more information on our MIT license.
125+
See [LICENSE.md](https://github.com/NotNinja/node-pacscan/raw/master/LICENSE.md) for more information on our MIT
126+
license.
126127

127-
© 2017 [Skelp](https://skelp.io)
128-
<img align="right" width="16" height="16" src="https://cdn.rawgit.com/Skelp/skelp-branding/master/assets/logo/base/skelp-logo-16x16.png">
128+
[![Copyright !ninja](https://cdn.rawgit.com/NotNinja/branding/master/assets/copyright/base/not-ninja-copyright-186x25.png)](https://not.ninja)

codecov.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
comment: off

package.json

+15-14
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "pacscan",
3-
"version": "0.1.0",
3+
"version": "0.2.0",
44
"description": "Scans for available packages",
5-
"homepage": "https://github.com/Skelp/node-pacscan",
5+
"homepage": "https://github.com/NotNinja/node-pacscan",
66
"bugs": {
7-
"url": "https://github.com/Skelp/node-pacscan/issues"
7+
"url": "https://github.com/NotNinja/node-pacscan/issues"
88
},
99
"author": {
1010
"name": "Alasdair Mercer",
11-
"email": "alasdair@skelp.io",
12-
"url": "https://skelp.io"
11+
"email": "mercer.alasdair@gmail.com",
12+
"url": "https://not.ninja"
1313
},
1414
"license": "MIT",
1515
"keywords": [
@@ -19,30 +19,31 @@
1919
],
2020
"repository": {
2121
"type": "git",
22-
"url": "https://github.com/Skelp/node-pacscan.git"
22+
"url": "https://github.com/NotNinja/node-pacscan.git"
2323
},
2424
"dependencies": {
2525
"debug": "*",
2626
"glob": "^7.1.1",
27-
"knockknock": "^0.2.0",
28-
"pkg-dir": "^1.0.0"
27+
"knockknock": "^0.3.0",
28+
"pkg-dir": "^2.0.0"
2929
},
3030
"devDependencies": {
3131
"chai": "^3.5.0",
32-
"coveralls": "^2.11.16",
33-
"eslint": "^3.16.0",
34-
"eslint-config-skelp": "^0.1.5",
32+
"codecov": "^2.2.0",
33+
"eslint": "^3.19.0",
34+
"eslint-config-notninja": "^0.1.1",
3535
"istanbul": "^0.4.5",
3636
"mkdirp": "^0.5.1",
37-
"mocha": "^3.2.0",
37+
"mocha": "^3.4.1",
3838
"ncp": "^2.0.0",
3939
"tmp": "^0.0.31"
4040
},
4141
"main": "src/pacscan.js",
4242
"scripts": {
43-
"report-coverage": "istanbul cover _mocha --report lcovonly -- -R spec \"test/**/*.spec.js\" && coveralls < coverage/lcov.info",
43+
"ci": "npm run test",
44+
"report-coverage": "istanbul cover _mocha --report lcovonly -- -R list \"test/**/*.spec.js\" && codecov",
4445
"pretest": "eslint \"src/**/*.js\" \"test/**/*.js\"",
45-
"test": "istanbul cover _mocha -- -R spec \"test/**/*.spec.js\"",
46+
"test": "istanbul cover _mocha -- -R list \"test/**/*.spec.js\"",
4647
"posttest": "istanbul check-coverage"
4748
},
4849
"engines": {

0 commit comments

Comments
 (0)