-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- tests pass with React 13 & 14 - npm run travis produces coverage - npm link works - use airbnb Babel6 preset - modify react-compat to export functions individually - update test commands to use babel-core
- Loading branch information
Showing
4 changed files
with
16 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"presets": ["airbnb"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,12 +10,12 @@ | |
"version": "npm run build", | ||
"clean": "rimraf build", | ||
"lint": "eslint src/**", | ||
"test": "mocha --compilers js:babel/register --recursive src/**/__tests__/*.js", | ||
"test": "mocha --compilers js:babel-core/register --recursive src/**/__tests__/*.js", | ||
"check": "npm run lint && npm run test:all", | ||
"build": "babel src --out-dir build", | ||
"test:watch": "mocha --compilers js:babel/register --recursive src/**/__tests__/*.js --watch", | ||
"test:describeWithDOMOnly": "mocha --compilers js:babel/register --recursive src/**/__tests__/describeWithDOM/describeWithDOMOnly-spec.js", | ||
"test:describeWithDOMSkip": "mocha --compilers js:babel/register --recursive src/**/__tests__/describeWithDOM/describeWithDOMSkip-spec.js", | ||
"test:watch": "mocha --compilers js:babel-core/register --recursive src/**/__tests__/*.js --watch", | ||
"test:describeWithDOMOnly": "mocha --compilers js:babel-core/register --recursive src/**/__tests__/describeWithDOM/describeWithDOMOnly-spec.js", | ||
"test:describeWithDOMSkip": "mocha --compilers js:babel-core/register --recursive src/**/__tests__/describeWithDOM/describeWithDOMSkip-spec.js", | ||
"test:all": "npm run react:13 && npm test && npm run test:describeWithDOMOnly && npm run test:describeWithDOMSkip && npm run react:14 && npm test && npm run test:describeWithDOMOnly && npm run test:describeWithDOMSkip", | ||
"react:clean": "rimraf node_modules/react node_modules/react-dom node_modules/react-addons-test-utils", | ||
"react:13": "npm run react:clean && npm i [email protected]", | ||
|
@@ -25,7 +25,7 @@ | |
"docs:build": "npm run docs:prepare && gitbook build", | ||
"docs:watch": "npm run docs:prepare && gitbook serve", | ||
"docs:publish": "npm run docs:clean && npm run docs:build && cd _book && git init && git commit --allow-empty -m 'update book' && git fetch https://github.com/airbnb/enzyme.git gh-pages && git checkout -b gh-pages && git add . && git commit -am 'update book' && git push https://github.com/airbnb/enzyme.git gh-pages --force", | ||
"travis": "istanbul cover _mocha -- --compilers js:babel/register --recursive src/**/__tests__/*.js" | ||
"travis": "babel-istanbul cover --report html _mocha -- --recursive src/**/__tests__/*.js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
|
@@ -55,16 +55,20 @@ | |
"underscore": "^1.8.3" | ||
}, | ||
"devDependencies": { | ||
"babel": "^5.8.21", | ||
"babel-cli": "^6.3.17", | ||
"babel-core": "^6.3.21", | ||
"babel-eslint": "^4.1.4", | ||
"babel-istanbul": "^0.5.9", | ||
"babel-preset-airbnb": "^1.0.1", | ||
"babel-register": "^6.3.13", | ||
"chai": "^3.2.0", | ||
"coveralls": "^2.11.4", | ||
"eslint": "^1.10.3", | ||
"eslint-config-airbnb": "^3.0.2", | ||
"eslint-plugin-react": "^3.14.0", | ||
"gitbook-cli": "^1.0.0", | ||
"istanbul": "^0.4.0", | ||
"mocha": "^2.2.5", | ||
"mocha": "^2.3.4", | ||
"rimraf": "^2.4.3" | ||
}, | ||
"peerDependencies": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters