react-card-flip
Advanced tools
Comparing version 0.1.1 to 0.2.0
@@ -26,3 +26,3 @@ import React, { Component } from 'react'; | ||
style={this.props.styles.image} | ||
src="//www.petfinder.com/wp-content/uploads/2012/11/dog-how-to-select-your-new-best-friend-thinkstock99062463.jpg" | ||
src="//static.pexels.com/photos/59523/pexels-photo-59523.jpeg" | ||
/> | ||
@@ -29,0 +29,0 @@ |
{ | ||
"name": "react-card-flip", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"description": "ReactCardFlip", | ||
"main": "lib/ReactCardFlip.js", | ||
"author": "Aaron Wong", | ||
"homepage": "https://github.com/AaronCCWong/react-card-flip", | ||
"scripts": { | ||
"build": "webpack --env dev && webpack --env build && npm run test", | ||
"start": "webpack-dev-server --progress --colors --open", | ||
"test": "jest", | ||
"test:coverage": "jest --coverage", | ||
"test:watch": "jest --watch" | ||
}, | ||
"repository": { | ||
@@ -12,39 +17,47 @@ "type": "git", | ||
}, | ||
"keywords": [ | ||
"react", | ||
"react-component", | ||
"react-card-flip" | ||
], | ||
"author": "Aaron Wong", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/AaronCCWong/react-card-flip/issues" | ||
}, | ||
"homepage": "https://github.com/AaronCCWong/react-card-flip", | ||
"dependencies": { | ||
"classnames": "^2.2.0", | ||
"prop-types": "^15.5.10" | ||
"prop-types": "^15.6.0" | ||
}, | ||
"devDependencies": { | ||
"babel-eslint": "^4.1.3", | ||
"eslint": "^1.6.0", | ||
"eslint-plugin-react": "^3.5.1", | ||
"gulp": "^3.9.0", | ||
"react": "^15.4.2", | ||
"react-component-gulp-tasks": "^0.7.6", | ||
"react-dom": "^15.4.2" | ||
"babel-cli": "^6.26.0", | ||
"babel-core": "^6.26.0", | ||
"babel-eslint": "^8.0.3", | ||
"babel-jest": "^22.2.2", | ||
"babel-loader": "^7.1.2", | ||
"babel-plugin-add-module-exports": "^0.2.1", | ||
"babel-preset-env": "^1.6.1", | ||
"babel-preset-react": "^6.24.1", | ||
"babel-preset-stage-0": "^6.24.1", | ||
"enzyme": "^3.3.0", | ||
"enzyme-adapter-react-16": "^1.1.1", | ||
"eslint": "^4.13.1", | ||
"eslint-loader": "^1.9.0", | ||
"jest": "^22.2.2", | ||
"react": "^16.2.0", | ||
"react-dom": "^16.2.0", | ||
"webpack": "^3.10.0", | ||
"webpack-dev-server": "^2.11.1", | ||
"yargs": "^10.0.3" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=0.13.3" | ||
}, | ||
"browserify-shim": { | ||
"react": "global:React" | ||
}, | ||
"scripts": { | ||
"build": "gulp clean && NODE_ENV=production gulp build", | ||
"examples": "gulp dev:server", | ||
"lint": "eslint ./; true", | ||
"publish:site": "NODE_ENV=production gulp publish:examples", | ||
"release": "NODE_ENV=production gulp release", | ||
"start": "gulp dev", | ||
"test": "echo \"no tests yet\" && exit 0", | ||
"watch": "gulp watch:lib" | ||
}, | ||
"keywords": [ | ||
"react", | ||
"react-component", | ||
"react-card-flip" | ||
] | ||
"jest": { | ||
"setupTestFrameworkScriptFile": "<rootDir>jestSetup.js", | ||
"transform": { | ||
"^.+\\.jsx?$": "babel-jest" | ||
}, | ||
"collectCoverageFrom": [ | ||
"src/*.jsx" | ||
] | ||
} | ||
} |
@@ -0,1 +1,3 @@ | ||
[![Coverage Status](https://coveralls.io/repos/github/AaronCCWong/react-card-flip/badge.svg?branch=master)](https://coveralls.io/github/AaronCCWong/react-card-flip?branch=master) | ||
# ReactCardFlip | ||
@@ -14,7 +16,8 @@ | ||
``` | ||
npm install | ||
npm start | ||
yarn install | ||
yarn start | ||
``` | ||
Then open [`localhost:8000`](http://localhost:8000) in a browser. | ||
Then [`localhost:8080`](http://localhost:8080) should open in a browser. If not | ||
you can go to that directly. | ||
@@ -28,6 +31,6 @@ | ||
``` | ||
npm install react-card-flip --save | ||
yarn add react-card-flip | ||
``` | ||
You can also use the standalone build by including `dist/react-card-flip.js` in | ||
You can also use the standalone build by including `lib/react-card-flip.js` in | ||
your page. If you use this, make sure you have already included React, and it is | ||
@@ -57,3 +60,4 @@ available as a global variable. | ||
class App extends React.Component { | ||
component() { | ||
constructor() { | ||
super(); | ||
this.state = { | ||
@@ -113,2 +117,10 @@ isFlipped: false | ||
## Testing | ||
To run tests for this project run one of the following commands: | ||
* `npm test` - Runs tests then exits | ||
* `npm test:watch` - Runs tests in watch mode | ||
* `npm test:coverage` - Runs tests and creates a coverage report | ||
## Contributing | ||
@@ -115,0 +127,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
497148
2
27
3214
1
131
0
19
1
- Removedreact@19.0.0(transitive)
Updatedprop-types@^15.6.0