diff options
Diffstat (limited to 'node_modules/ava-init')
-rw-r--r-- | node_modules/ava-init/index.js | 62 | ||||
-rw-r--r-- | node_modules/ava-init/license | 9 | ||||
-rw-r--r-- | node_modules/ava-init/node_modules/path-type/index.js | 26 | ||||
-rw-r--r-- | node_modules/ava-init/node_modules/path-type/license | 21 | ||||
-rw-r--r-- | node_modules/ava-init/node_modules/path-type/package.json | 48 | ||||
-rw-r--r-- | node_modules/ava-init/node_modules/path-type/readme.md | 42 | ||||
-rw-r--r-- | node_modules/ava-init/node_modules/read-pkg-up/index.js | 26 | ||||
-rw-r--r-- | node_modules/ava-init/node_modules/read-pkg-up/license | 21 | ||||
-rw-r--r-- | node_modules/ava-init/node_modules/read-pkg-up/package.json | 62 | ||||
-rw-r--r-- | node_modules/ava-init/node_modules/read-pkg-up/readme.md | 80 | ||||
-rw-r--r-- | node_modules/ava-init/node_modules/read-pkg/index.js | 47 | ||||
-rw-r--r-- | node_modules/ava-init/node_modules/read-pkg/license | 21 | ||||
-rw-r--r-- | node_modules/ava-init/node_modules/read-pkg/package.json | 45 | ||||
-rw-r--r-- | node_modules/ava-init/node_modules/read-pkg/readme.md | 79 | ||||
-rw-r--r-- | node_modules/ava-init/package.json | 47 | ||||
-rw-r--r-- | node_modules/ava-init/readme.md | 63 |
16 files changed, 0 insertions, 699 deletions
diff --git a/node_modules/ava-init/index.js b/node_modules/ava-init/index.js deleted file mode 100644 index 0cf16c472..000000000 --- a/node_modules/ava-init/index.js +++ /dev/null @@ -1,62 +0,0 @@ -'use strict'; -const fs = require('fs'); -const path = require('path'); -const execa = require('execa'); -const hasYarn = require('has-yarn'); -const readPkgUp = require('read-pkg-up'); -const writePkg = require('write-pkg'); -const arrExclude = require('arr-exclude'); - -const DEFAULT_TEST_SCRIPT = 'echo "Error: no test specified" && exit 1'; - -module.exports = opts => { - opts = opts || {}; - - const ret = readPkgUp.sync({ - cwd: opts.cwd, - normalize: false - }); - const pkg = ret.pkg || {}; - const pkgPath = ret.path || path.resolve(opts.cwd || process.cwd(), 'package.json'); - const pkgCwd = path.dirname(pkgPath); - const cli = opts.args || process.argv.slice(2); - const args = arrExclude(cli, ['--init', '--unicorn']); - const cmd = 'ava' + (args.length > 0 ? ' ' + args.join(' ') : ''); - - 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); - - if (!/\bava\b/.test(s.test)) { - s.test += ` && ${cmd}`; - } - } else { - s.test = cmd; - } - - writePkg.sync(pkgPath, pkg); - - const post = () => { - // For personal use - if (cli.indexOf('--unicorn') !== -1) { - const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8')); - pkg.devDependencies.ava = '*'; - writePkg.sync(pkgPath, pkg); - } - }; - - if (opts.skipInstall) { - return Promise.resolve(post); - } - - if (hasYarn(pkgCwd)) { - return execa('yarn', ['add', '--dev', 'ava'], {cwd: pkgCwd}).then(post); - } - - return execa('npm', ['install', '--save-dev', 'ava'], { - cwd: pkgCwd, - stdio: 'inherit' - }).then(post); -}; diff --git a/node_modules/ava-init/license b/node_modules/ava-init/license deleted file mode 100644 index e7af2f771..000000000 --- a/node_modules/ava-init/license +++ /dev/null @@ -1,9 +0,0 @@ -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: - -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/path-type/index.js b/node_modules/ava-init/node_modules/path-type/index.js deleted file mode 100644 index 4ac9dd967..000000000 --- a/node_modules/ava-init/node_modules/path-type/index.js +++ /dev/null @@ -1,26 +0,0 @@ -'use strict'; -const fs = require('fs'); -const pify = require('pify'); - -function type(fn, fn2, fp) { - if (typeof fp !== 'string') { - return Promise.reject(new TypeError(`Expected a string, got ${typeof fp}`)); - } - - return pify(fs[fn])(fp).then(stats => stats[fn2]()); -} - -function typeSync(fn, fn2, fp) { - if (typeof fp !== 'string') { - throw new TypeError(`Expected a string, got ${typeof fp}`); - } - - return fs[fn](fp)[fn2](); -} - -exports.file = type.bind(null, 'stat', 'isFile'); -exports.dir = type.bind(null, 'stat', 'isDirectory'); -exports.symlink = type.bind(null, 'lstat', 'isSymbolicLink'); -exports.fileSync = typeSync.bind(null, 'statSync', 'isFile'); -exports.dirSync = typeSync.bind(null, 'statSync', 'isDirectory'); -exports.symlinkSync = typeSync.bind(null, 'lstatSync', 'isSymbolicLink'); diff --git a/node_modules/ava-init/node_modules/path-type/license b/node_modules/ava-init/node_modules/path-type/license deleted file mode 100644 index 654d0bfe9..000000000 --- a/node_modules/ava-init/node_modules/path-type/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/path-type/package.json b/node_modules/ava-init/node_modules/path-type/package.json deleted file mode 100644 index 54336f352..000000000 --- a/node_modules/ava-init/node_modules/path-type/package.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "name": "path-type", - "version": "2.0.0", - "description": "Check if a path is a file, directory, or symlink", - "license": "MIT", - "repository": "sindresorhus/path-type", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=4" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "path", - "fs", - "type", - "is", - "check", - "directory", - "dir", - "file", - "filepath", - "symlink", - "symbolic", - "link", - "stat", - "stats", - "filesystem" - ], - "dependencies": { - "pify": "^2.0.0" - }, - "devDependencies": { - "ava": "*", - "xo": "*" - }, - "xo": { - "esnext": true - } -} diff --git a/node_modules/ava-init/node_modules/path-type/readme.md b/node_modules/ava-init/node_modules/path-type/readme.md deleted file mode 100644 index b1ea61fe9..000000000 --- a/node_modules/ava-init/node_modules/path-type/readme.md +++ /dev/null @@ -1,42 +0,0 @@ -# path-type [![Build Status](https://travis-ci.org/sindresorhus/path-type.svg?branch=master)](https://travis-ci.org/sindresorhus/path-type) - -> Check if a path is a file, directory, or symlink - - -## Install - -``` -$ npm install --save path-type -``` - - -## Usage - -```js -const pathType = require('path-type'); - -pathType.file('package.json').then(isFile => { - console.log(isFile); - //=> true -}) -``` - - -## API - -### .file(path) -### .dir(path) -### .symlink(path) - -Returns a `Promise` for a `boolean` of whether the path is the checked type. - -### .fileSync(path) -### .dirSync(path) -### .symlinkSync(path) - -Returns a `boolean` of whether the path is the checked type. - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/node_modules/ava-init/node_modules/read-pkg-up/index.js b/node_modules/ava-init/node_modules/read-pkg-up/index.js deleted file mode 100644 index 26079760f..000000000 --- a/node_modules/ava-init/node_modules/read-pkg-up/index.js +++ /dev/null @@ -1,26 +0,0 @@ -'use strict'; -const findUp = require('find-up'); -const readPkg = require('read-pkg'); - -module.exports = opts => { - return findUp('package.json', opts).then(fp => { - if (!fp) { - return {}; - } - - return readPkg(fp, opts).then(pkg => ({pkg, path: fp})); - }); -}; - -module.exports.sync = opts => { - const fp = findUp.sync('package.json', opts); - - if (!fp) { - return {}; - } - - return { - pkg: readPkg.sync(fp, opts), - path: fp - }; -}; diff --git a/node_modules/ava-init/node_modules/read-pkg-up/license b/node_modules/ava-init/node_modules/read-pkg-up/license deleted file mode 100644 index 654d0bfe9..000000000 --- a/node_modules/ava-init/node_modules/read-pkg-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/read-pkg-up/package.json b/node_modules/ava-init/node_modules/read-pkg-up/package.json deleted file mode 100644 index f09bf3c35..000000000 --- a/node_modules/ava-init/node_modules/read-pkg-up/package.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "name": "read-pkg-up", - "version": "2.0.0", - "description": "Read the closest package.json file", - "license": "MIT", - "repository": "sindresorhus/read-pkg-up", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=4" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "json", - "read", - "parse", - "file", - "fs", - "graceful", - "load", - "pkg", - "package", - "find", - "up", - "find-up", - "findup", - "look-up", - "look", - "file", - "search", - "match", - "package", - "resolve", - "parent", - "parents", - "folder", - "directory", - "dir", - "walk", - "walking", - "path" - ], - "dependencies": { - "find-up": "^2.0.0", - "read-pkg": "^2.0.0" - }, - "devDependencies": { - "ava": "*", - "xo": "*" - }, - "xo": { - "esnext": true - } -} diff --git a/node_modules/ava-init/node_modules/read-pkg-up/readme.md b/node_modules/ava-init/node_modules/read-pkg-up/readme.md deleted file mode 100644 index ba18780f9..000000000 --- a/node_modules/ava-init/node_modules/read-pkg-up/readme.md +++ /dev/null @@ -1,80 +0,0 @@ -# read-pkg-up [![Build Status](https://travis-ci.org/sindresorhus/read-pkg-up.svg?branch=master)](https://travis-ci.org/sindresorhus/read-pkg-up) - -> Read the closest package.json file - - -## Why - -- [Finds the closest package.json](https://github.com/sindresorhus/find-up) -- [Gracefully handles filesystem issues](https://github.com/isaacs/node-graceful-fs) -- [Strips UTF-8 BOM](https://github.com/sindresorhus/strip-bom) -- [Throws more helpful JSON errors](https://github.com/sindresorhus/parse-json) -- [Normalizes the data](https://github.com/npm/normalize-package-data#what-normalization-currently-entails) - - -## Install - -``` -$ npm install --save read-pkg-up -``` - - -## Usage - -```js -const readPkgUp = require('read-pkg-up'); - -readPkgUp().then(result => { - console.log(result); - /* - { - pkg: { - name: 'awesome-package', - version: '1.0.0', - ... - }, - path: '/Users/sindresorhus/dev/awesome-package/package.json' - } - */ -}); -``` - - -## API - -### readPkgUp([options]) - -Returns a `Promise` for the result object. - -### readPkgUp.sync([options]) - -Returns the result object. - -#### options - -##### cwd - -Type: `string`<br> -Default: `.` - -Directory to start looking for a package.json file. - -##### normalize - -Type: `boolean`<br> -Default: `true` - -[Normalize](https://github.com/npm/normalize-package-data#what-normalization-currently-entails) the package data. - - -## Related - -- [read-pkg](https://github.com/sindresorhus/read-pkg) - Read a package.json file -- [pkg-up](https://github.com/sindresorhus/pkg-up) - Find the closest package.json file -- [find-up](https://github.com/sindresorhus/find-up) - Find a file by walking up parent directories -- [pkg-conf](https://github.com/sindresorhus/pkg-conf) - Get namespaced config from the closest package.json - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/node_modules/ava-init/node_modules/read-pkg/index.js b/node_modules/ava-init/node_modules/read-pkg/index.js deleted file mode 100644 index dff948b69..000000000 --- a/node_modules/ava-init/node_modules/read-pkg/index.js +++ /dev/null @@ -1,47 +0,0 @@ -'use strict'; -const path = require('path'); -const loadJsonFile = require('load-json-file'); -const pathType = require('path-type'); - -module.exports = (fp, opts) => { - if (typeof fp !== 'string') { - opts = fp; - fp = '.'; - } - - opts = opts || {}; - - return pathType.dir(fp) - .then(isDir => { - if (isDir) { - fp = path.join(fp, 'package.json'); - } - - return loadJsonFile(fp); - }) - .then(x => { - if (opts.normalize !== false) { - require('normalize-package-data')(x); - } - - return x; - }); -}; - -module.exports.sync = (fp, opts) => { - if (typeof fp !== 'string') { - opts = fp; - fp = '.'; - } - - opts = opts || {}; - fp = pathType.dirSync(fp) ? path.join(fp, 'package.json') : fp; - - const x = loadJsonFile.sync(fp); - - if (opts.normalize !== false) { - require('normalize-package-data')(x); - } - - return x; -}; diff --git a/node_modules/ava-init/node_modules/read-pkg/license b/node_modules/ava-init/node_modules/read-pkg/license deleted file mode 100644 index 654d0bfe9..000000000 --- a/node_modules/ava-init/node_modules/read-pkg/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/read-pkg/package.json b/node_modules/ava-init/node_modules/read-pkg/package.json deleted file mode 100644 index b2322191f..000000000 --- a/node_modules/ava-init/node_modules/read-pkg/package.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "name": "read-pkg", - "version": "2.0.0", - "description": "Read a package.json file", - "license": "MIT", - "repository": "sindresorhus/read-pkg", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=4" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "json", - "read", - "parse", - "file", - "fs", - "graceful", - "load", - "pkg", - "package", - "normalize" - ], - "dependencies": { - "load-json-file": "^2.0.0", - "normalize-package-data": "^2.3.2", - "path-type": "^2.0.0" - }, - "devDependencies": { - "ava": "*", - "xo": "*" - }, - "xo": { - "esnext": true - } -} diff --git a/node_modules/ava-init/node_modules/read-pkg/readme.md b/node_modules/ava-init/node_modules/read-pkg/readme.md deleted file mode 100644 index 5796008b8..000000000 --- a/node_modules/ava-init/node_modules/read-pkg/readme.md +++ /dev/null @@ -1,79 +0,0 @@ -# read-pkg [![Build Status](https://travis-ci.org/sindresorhus/read-pkg.svg?branch=master)](https://travis-ci.org/sindresorhus/read-pkg) - -> Read a package.json file - - -## Why - -- [Gracefully handles filesystem issues](https://github.com/isaacs/node-graceful-fs) -- [Strips UTF-8 BOM](https://github.com/sindresorhus/strip-bom) -- [Throws more helpful JSON errors](https://github.com/sindresorhus/parse-json) -- [Normalizes the data](https://github.com/npm/normalize-package-data#what-normalization-currently-entails) - - -## Install - -``` -$ npm install --save read-pkg -``` - - -## Usage - -```js -const readPkg = require('read-pkg'); - -readPkg().then(pkg => { - console.log(pkg); - //=> {name: 'read-pkg', ...} -}); - -readPkg(__dirname).then(pkg => { - console.log(pkg); - //=> {name: 'read-pkg', ...} -}); - -readPkg(path.join('unicorn', 'package.json')).then(pkg => { - console.log(pkg); - //=> {name: 'read-pkg', ...} -}); -``` - - -## API - -### readPkg([path], [options]) - -Returns a `Promise` for the parsed JSON. - -### readPkg.sync([path], [options]) - -Returns the parsed JSON. - -#### path - -Type: `string`<br> -Default: `.` - -Path to a `package.json` file or its directory. - -#### options - -##### normalize - -Type: `boolean`<br> -Default: `true` - -[Normalize](https://github.com/npm/normalize-package-data#what-normalization-currently-entails) the package data. - - -## Related - -- [read-pkg-up](https://github.com/sindresorhus/read-pkg-up) - Read the closest package.json file -- [write-pkg](https://github.com/sindresorhus/write-pkg) - Write a `package.json` file -- [load-json-file](https://github.com/sindresorhus/load-json-file) - Read and parse a JSON file - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/node_modules/ava-init/package.json b/node_modules/ava-init/package.json deleted file mode 100644 index 5f972aa3b..000000000 --- a/node_modules/ava-init/package.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "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 deleted file mode 100644 index c7553d3b2..000000000 --- a/node_modules/ava-init/readme.md +++ /dev/null @@ -1,63 +0,0 @@ -# ava-init [![Build Status: Linux](https://travis-ci.org/avajs/ava-init.svg?branch=master)](https://travis-ci.org/avajs/ava-init) [![Build status: Windows](https://ci.appveyor.com/api/projects/status/abj17qsw0j1rts7l/branch/master?svg=true)](https://ci.appveyor.com/project/ava/ava-init/branch/master) - -> Add [AVA](https://ava.li) to your project - - -## Install - -``` -$ npm install ava-init -``` - - -## Usage - -```js -const avaInit = require('ava-init'); - -avaInit().then(() => { - console.log('done'); -}); -``` - - -## API - -### avaInit([options]) - -Returns a `Promise`. - -#### options - -#### cwd - -Type: `string`<br> -Default: `process.cwd()` - -Current working directory. - -#### args - -Type: `Array`<br> -Default: CLI arguments *(`process.argv.slice(2)`)* - -For instance, with the arguments `['--foo', '--bar']`, the following will be put in package.json: - -```json -{ - "name": "awesome-package", - "scripts": { - "test": "ava --foo --bar" - } -} -``` - - -## CLI - -Install AVA globally `$ npm install --global ava` and run `$ ava --init [<options>]`. - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) |