ava-fixture
Advanced tools
Comparing version
102
package.json
{ | ||
"name": "ava-fixture", | ||
"version": "0.3.1", | ||
"description": "Write fixture tests with ava", | ||
"author": { | ||
"name": "Homa Wong", | ||
"email": "homawong@gmail.com", | ||
"url": "http://github.com/unional" | ||
}, | ||
"main": "dist/index.js", | ||
"typings": "dist/index.d.ts", | ||
"version": "0.3.2", | ||
"main": "dist/commonjs/index.js", | ||
"typings": "dist/commonjs/index.d.ts", | ||
"files": [ | ||
"dist/", | ||
"LICENSE" | ||
"dist" | ||
], | ||
"scripts": { | ||
"build": "tsc -p tsconfig.build.json", | ||
"build": "npm run clean && npm run build-commonjs", | ||
"build-commonjs": "tsc -p tsconfig.commonjs.json", | ||
"clean": "rimraf dist", | ||
"coverage": "npm test && nyc check-coverage --branches 85 --functions 85 --lines 85", | ||
"coveralls": "nyc report --reporter=text-lcov | coveralls", | ||
"dependency-check": "dependency-check . --unused --no-dev -i ava && dependency-check . --missing --no-dev", | ||
"lint": "tslint \"src/**/*.ts\"", | ||
"test": "rimraf dist && tsc && ava \"dist/**/*.spec.js\"", | ||
"watch": "rimraf dist && node scripts/watch.js dist/**/*.spec.js", | ||
"verify": "npm run test && npm run lint && npm run dependency-check && npm run build", | ||
"dependency-check": "dependency-check . --unused --no-dev && dependency-check . --missing --no-dev", | ||
"preversion": "npm run verify", | ||
"prepublish": "typings install && rimraf dist && npm run build" | ||
"postpublish": "git push", | ||
"prepare": "typings install && npm run build", | ||
"preversion": "git pull && npm run verify", | ||
"test": "npm run clean && tsc && nyc ava", | ||
"verify": "npm run lint && npm run coverage && npm run build && npm run dependency-check", | ||
"watch": "npm run clean && node scripts/watch.js" | ||
}, | ||
"author": { | ||
"name": "Homa Wong", | ||
"email": "homawong@gmail.com" | ||
}, | ||
"homepage": "https://github.com/unional/ava-fixture", | ||
"bugs": { | ||
"url": "https://github.com/unional/ava-fixture/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/unional/ava-fixture.git" | ||
}, | ||
"license": "MIT", | ||
@@ -31,26 +42,45 @@ "keywords": [ | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/unional/ava-fixture.git" | ||
"ava": { | ||
"files": [ | ||
"dist/spec/**/*.spec.js" | ||
], | ||
"source": [ | ||
"scripts/*.js", | ||
"dist/spec/**/*.js", | ||
"*.json" | ||
], | ||
"require": [ | ||
"./scripts/setup-browser-env.js", | ||
"./scripts/setup-test-env.js" | ||
] | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/unional/ava-fixture/issues" | ||
"nyc": { | ||
"exclude": [ | ||
"scripts", | ||
"**/*.spec.*", | ||
"**/fixtures/**/*" | ||
] | ||
}, | ||
"homepage": "https://github.com/unional/ava-fixture", | ||
"devDependencies": { | ||
"ava": "0.17.0", | ||
"bluebird": "^3.4.1", | ||
"dependency-check": "^2.6.0", | ||
"onchange": "^3.2.0", | ||
"rimraf": "^2.5.3", | ||
"tap-spec": "^4.1.1", | ||
"ts-node": "^1.7.2", | ||
"tslint": "^4.0.2", | ||
"tslint-config-unional": "0.6.0", | ||
"typescript": "^2.0.0", | ||
"typings": "^2.0.0" | ||
}, | ||
"peerDependencies": { | ||
"ava": ">=0.17.0" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^6.0.58", | ||
"aurelia-logging": "^1.2.0", | ||
"aurelia-logging-color": "^0.2.0", | ||
"aurelia-polyfills": "^1.1.1", | ||
"ava": "^0.17.0", | ||
"bluebird": "^3.4.7", | ||
"browser-env": "^2.0.19", | ||
"core-js": "^2.4.1", | ||
"dependency-check": "^2.7.0", | ||
"eslint": "^3.13.0", | ||
"eslint-config-unional": "^0.2.3", | ||
"nyc": "^10.0.0", | ||
"rimraf": "^2.5.4", | ||
"tslint": "^4.3.1", | ||
"tslint-config-unional": "^0.6.0", | ||
"typescript": "^2.1.4", | ||
"typings": "^2.1.0" | ||
} | ||
} |
@@ -1,5 +0,7 @@ | ||
# ava fixture | ||
# ava-fixture | ||
[](https://badge.fury.io/js/ava-fixture) | ||
[](https://travis-ci.org/unional/ava-fixture) | ||
[![NPM version][npm-image]][npm-url] | ||
[![NPM downloads][downloads-image]][downloads-url] | ||
[![Build status][travis-image]][travis-url] | ||
[![Coverage Status][coveralls-image]][coveralls-url] | ||
@@ -59,10 +61,55 @@ Helps you to easily write fixture tests with [`ava`](https://github.com/avajs/ava). | ||
## Contribute | ||
```sh | ||
# after fork | ||
# right after clone | ||
npm install | ||
# begin making changes | ||
git checkout -b <branch> | ||
npm run watch | ||
# edit `webpack.config.dev.js` to exclude dependencies for the global build. | ||
# after making change(s) | ||
git commit -m "<commit message>" | ||
git push | ||
# create PR | ||
``` | ||
## Npm Commands | ||
There are a few useful commands you can use during development. | ||
```sh | ||
# Run tests (and lint) automatically whenever you save a file. | ||
npm run watch | ||
# Run tests with coverage stats (but won't fail you if coverage does not meet criteria) | ||
npm run test | ||
# Manually verify the project. | ||
# This will be ran during 'npm preversion' so you normally don't need to run this yourself. | ||
npm run verify | ||
# Build the project. | ||
# You normally don't need to do this. | ||
npm run build | ||
# Run tslint | ||
# You normally don't need to do this as `npm run watch` and `npm version` will automatically run lint for you. | ||
npm run lint | ||
``` | ||
Generated by [`generator-unional@0.3.1`](https://github.com/unional/unional-cli) | ||
[npm-image]: https://img.shields.io/npm/v/ava-fixture.svg?style=flat | ||
[npm-url]: https://npmjs.org/package/ava-fixture | ||
[downloads-image]: https://img.shields.io/npm/dm/ava-fixture.svg?style=flat | ||
[downloads-url]: https://npmjs.org/package/ava-fixture | ||
[travis-image]: https://img.shields.io/travis/unional/ava-fixture.svg?style=flat | ||
[travis-url]: https://travis-ci.org/unional/ava-fixture | ||
[coveralls-image]: https://coveralls.io/repos/github/unional/ava-fixture/badge.svg | ||
[coveralls-url]: https://coveralls.io/github/unional/ava-fixture |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
23985
15.35%12
100%181
5.85%115
69.12%17
54.55%1
Infinity%