aboutsummaryrefslogtreecommitdiff
path: root/node_modules/ava-init
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-08-14 05:01:11 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-08-14 05:02:09 +0200
commit363723fc84f7b8477592e0105aeb331ec9a017af (patch)
tree29f92724f34131bac64d6a318dd7e30612e631c7 /node_modules/ava-init
parent5634e77ad96bfe1818f6b6ee70b7379652e5487f (diff)
downloadwallet-core-363723fc84f7b8477592e0105aeb331ec9a017af.tar.xz
node_modules
Diffstat (limited to 'node_modules/ava-init')
-rw-r--r--node_modules/ava-init/index.js4
-rw-r--r--node_modules/ava-init/license20
-rw-r--r--node_modules/ava-init/node_modules/find-up/index.js48
-rw-r--r--node_modules/ava-init/node_modules/find-up/license21
-rw-r--r--node_modules/ava-init/node_modules/find-up/package.json53
-rw-r--r--node_modules/ava-init/node_modules/find-up/readme.md85
-rw-r--r--node_modules/ava-init/package.json93
-rw-r--r--node_modules/ava-init/readme.md4
8 files changed, 54 insertions, 274 deletions
diff --git a/node_modules/ava-init/index.js b/node_modules/ava-init/index.js
index 9aef769c0..0cf16c472 100644
--- a/node_modules/ava-init/index.js
+++ b/node_modules/ava-init/index.js
@@ -22,8 +22,10 @@ module.exports = opts => {
const cli = opts.args || process.argv.slice(2);
const args = arrExclude(cli, ['--init', '--unicorn']);
const cmd = 'ava' + (args.length > 0 ? ' ' + args.join(' ') : '');
- const s = pkg.scripts = pkg.scripts ? pkg.scripts : {};
+ pkg.scripts = pkg.scripts ? pkg.scripts : {};
+
+ const s = pkg.scripts;
if (s.test && s.test !== DEFAULT_TEST_SCRIPT) {
s.test = s.test.replace(/\bnode (test\/)?test\.js\b/, cmd);
diff --git a/node_modules/ava-init/license b/node_modules/ava-init/license
index 654d0bfe9..e7af2f771 100644
--- a/node_modules/ava-init/license
+++ b/node_modules/ava-init/license
@@ -1,21 +1,9 @@
-The MIT License (MIT)
+MIT License
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/ava-init/node_modules/find-up/index.js b/node_modules/ava-init/node_modules/find-up/index.js
deleted file mode 100644
index 939c9553d..000000000
--- a/node_modules/ava-init/node_modules/find-up/index.js
+++ /dev/null
@@ -1,48 +0,0 @@
-'use strict';
-const path = require('path');
-const locatePath = require('locate-path');
-
-module.exports = (filename, opts) => {
- opts = opts || {};
-
- const startDir = path.resolve(opts.cwd || '');
- const root = path.parse(startDir).root;
-
- const filenames = [].concat(filename);
-
- return new Promise(resolve => {
- (function find(dir) {
- locatePath(filenames, {cwd: dir}).then(file => {
- if (file) {
- resolve(path.join(dir, file));
- } else if (dir === root) {
- resolve(null);
- } else {
- find(path.dirname(dir));
- }
- });
- })(startDir);
- });
-};
-
-module.exports.sync = (filename, opts) => {
- opts = opts || {};
-
- let dir = path.resolve(opts.cwd || '');
- const root = path.parse(dir).root;
-
- const filenames = [].concat(filename);
-
- // eslint-disable-next-line no-constant-condition
- while (true) {
- const file = locatePath.sync(filenames, {cwd: dir});
-
- if (file) {
- return path.join(dir, file);
- } else if (dir === root) {
- return null;
- }
-
- dir = path.dirname(dir);
- }
-};
diff --git a/node_modules/ava-init/node_modules/find-up/license b/node_modules/ava-init/node_modules/find-up/license
deleted file mode 100644
index 654d0bfe9..000000000
--- a/node_modules/ava-init/node_modules/find-up/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/ava-init/node_modules/find-up/package.json b/node_modules/ava-init/node_modules/find-up/package.json
deleted file mode 100644
index 7ec85bb79..000000000
--- a/node_modules/ava-init/node_modules/find-up/package.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "name": "find-up",
- "version": "2.1.0",
- "description": "Find a file by walking up parent directories",
- "license": "MIT",
- "repository": "sindresorhus/find-up",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "engines": {
- "node": ">=4"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "files": [
- "index.js"
- ],
- "keywords": [
- "find",
- "up",
- "find-up",
- "findup",
- "look-up",
- "look",
- "file",
- "search",
- "match",
- "package",
- "resolve",
- "parent",
- "parents",
- "folder",
- "directory",
- "dir",
- "walk",
- "walking",
- "path"
- ],
- "dependencies": {
- "locate-path": "^2.0.0"
- },
- "devDependencies": {
- "ava": "*",
- "tempfile": "^1.1.1",
- "xo": "*"
- },
- "xo": {
- "esnext": true
- }
-}
diff --git a/node_modules/ava-init/node_modules/find-up/readme.md b/node_modules/ava-init/node_modules/find-up/readme.md
deleted file mode 100644
index b5ad69455..000000000
--- a/node_modules/ava-init/node_modules/find-up/readme.md
+++ /dev/null
@@ -1,85 +0,0 @@
-# find-up [![Build Status: Linux and macOS](https://travis-ci.org/sindresorhus/find-up.svg?branch=master)](https://travis-ci.org/sindresorhus/find-up) [![Build Status: Windows](https://ci.appveyor.com/api/projects/status/l0cyjmvh5lq72vq2/branch/master?svg=true)](https://ci.appveyor.com/project/sindresorhus/find-up/branch/master)
-
-> Find a file by walking up parent directories
-
-
-## Install
-
-```
-$ npm install --save find-up
-```
-
-
-## Usage
-
-```
-/
-└── Users
- └── sindresorhus
- ├── unicorn.png
- └── foo
- └── bar
- ├── baz
- └── example.js
-```
-
-```js
-// example.js
-const findUp = require('find-up');
-
-findUp('unicorn.png').then(filepath => {
- console.log(filepath);
- //=> '/Users/sindresorhus/unicorn.png'
-});
-
-findUp(['rainbow.png', 'unicorn.png']).then(filepath => {
- console.log(filepath);
- //=> '/Users/sindresorhus/unicorn.png'
-});
-```
-
-
-## API
-
-### findUp(filename, [options])
-
-Returns a `Promise` for the filepath or `null`.
-
-### findUp([filenameA, filenameB], [options])
-
-Returns a `Promise` for the first filepath found (by respecting the order) or `null`.
-
-### findUp.sync(filename, [options])
-
-Returns a filepath or `null`.
-
-### findUp.sync([filenameA, filenameB], [options])
-
-Returns the first filepath found (by respecting the order) or `null`.
-
-#### filename
-
-Type: `string`
-
-Filename of the file to find.
-
-#### options
-
-##### cwd
-
-Type: `string`<br>
-Default: `process.cwd()`
-
-Directory to start from.
-
-
-## Related
-
-- [find-up-cli](https://github.com/sindresorhus/find-up-cli) - CLI for this module
-- [pkg-up](https://github.com/sindresorhus/pkg-up) - Find the closest package.json file
-- [pkg-dir](https://github.com/sindresorhus/pkg-dir) - Find the root directory of an npm package
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)
diff --git a/node_modules/ava-init/package.json b/node_modules/ava-init/package.json
index 7279dd9b6..5f972aa3b 100644
--- a/node_modules/ava-init/package.json
+++ b/node_modules/ava-init/package.json
@@ -1,50 +1,47 @@
{
- "name": "ava-init",
- "version": "0.2.0",
- "description": "Add AVA to your project",
- "license": "MIT",
- "repository": "avajs/ava-init",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "engines": {
- "node": ">=4"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "files": [
- "index.js"
- ],
- "keywords": [
- "init",
- "initialize",
- "add",
- "create",
- "setup",
- "generate",
- "generator",
- "scaffold",
- "ava",
- "test",
- "runner"
- ],
- "dependencies": {
- "arr-exclude": "^1.0.0",
- "execa": "^0.5.0",
- "has-yarn": "^1.0.0",
- "read-pkg-up": "^2.0.0",
- "write-pkg": "^2.0.0"
- },
- "devDependencies": {
- "ava": "*",
- "dot-prop": "^4.1.0",
- "temp-write": "^2.0.1",
- "xo": "*"
- },
- "xo": {
- "esnext": true
- }
+ "name": "ava-init",
+ "version": "0.2.1",
+ "description": "Add AVA to your project",
+ "license": "MIT",
+ "repository": "avajs/ava-init",
+ "author": {
+ "name": "Sindre Sorhus",
+ "email": "sindresorhus@gmail.com",
+ "url": "sindresorhus.com"
+ },
+ "engines": {
+ "node": ">=4"
+ },
+ "scripts": {
+ "test": "xo && ava"
+ },
+ "files": [
+ "index.js"
+ ],
+ "keywords": [
+ "init",
+ "initialize",
+ "add",
+ "create",
+ "setup",
+ "generate",
+ "generator",
+ "scaffold",
+ "ava",
+ "test",
+ "runner"
+ ],
+ "dependencies": {
+ "arr-exclude": "^1.0.0",
+ "execa": "^0.7.0",
+ "has-yarn": "^1.0.0",
+ "read-pkg-up": "^2.0.0",
+ "write-pkg": "^3.1.0"
+ },
+ "devDependencies": {
+ "ava": "*",
+ "dot-prop": "^4.1.0",
+ "temp-write": "^3.3.0",
+ "xo": "*"
+ }
}
diff --git a/node_modules/ava-init/readme.md b/node_modules/ava-init/readme.md
index 596d098cb..c7553d3b2 100644
--- a/node_modules/ava-init/readme.md
+++ b/node_modules/ava-init/readme.md
@@ -6,7 +6,7 @@
## Install
```
-$ npm install --save ava-init
+$ npm install ava-init
```
@@ -32,7 +32,7 @@ Returns a `Promise`.
#### cwd
Type: `string`<br>
-Default: `'.'`
+Default: `process.cwd()`
Current working directory.