forked from tajo/react-portal
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
100 additions
and
45 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
This file was deleted.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,33 @@ | ||
{ | ||
"name": "react-portal", | ||
"version": "1.7.0", | ||
"description": "React component for transportation of modals, lightboxes, loading bars... to document.body", | ||
"main": "build/portal", | ||
"description": "Simple React component for transportation of your modals, lightboxes, etc. to document.body", | ||
"author": "Vojtech Miksu <[email protected]>", | ||
"version": "1.5.1", | ||
"license": "MIT", | ||
"files": [ | ||
"*.md", | ||
"LICENSE", | ||
"lib", | ||
"build" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/tajo/react-portal" | ||
}, | ||
"author": "Vojtech Miksu <[email protected]>", | ||
"license": "MIT", | ||
"scripts": { | ||
"start": "node devServer.js", | ||
"build": "mkdir -p build && babel ./lib/portal.js --out-file ./build/portal.js", | ||
"build:examples": "npm run clean && npm run build:examples:webpack", | ||
"build:examples:webpack": "cross-env NODE_ENV=production webpack --config webpack.config.prod.js", | ||
"clean": "rimraf build", | ||
"test": "NODE_ENV=test mocha --compilers js:babel-register", | ||
"lint": "eslint examples lib test", | ||
"prepublish": "npm run build" | ||
"test": "mocha", | ||
"lint": "mocha test/eslint_spec.js", | ||
"prepublish": "cross-env NODE_ENV=production npm run build" | ||
}, | ||
"tags": [ | ||
"react" | ||
], | ||
"keywords": [ | ||
"react", | ||
"react-component", | ||
|
@@ -37,6 +46,7 @@ | |
"babel-core": "^6.4.0", | ||
"babel-eslint": "^4.1.6", | ||
"babel-loader": "^6.2.1", | ||
"babel-plugin-add-module-exports": "^0.1.2", | ||
"babel-preset-es2015": "^6.3.13", | ||
"babel-preset-react": "^6.3.13", | ||
"babel-preset-react-hmre": "^1.0.1", | ||
|
@@ -48,7 +58,10 @@ | |
"express": "^4.13.3", | ||
"jsdom": "^7.2.2", | ||
"mocha": "^2.3.4", | ||
"mocha-eslint": "^1.0.0", | ||
"react": "^0.14.7", | ||
"react-addons-test-utils": "^0.14.6", | ||
"react-dom": "^0.14.7", | ||
"rimraf": "^2.5.0", | ||
"sinon": "^1.17.2", | ||
"tween.js": "^16.3.1", | ||
|
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 @@ | ||
require('mocha-eslint')('examples lib test devServer.js'.split(' ')); |
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 @@ | ||
process.env.NODE_ENV = 'test'; |
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,2 @@ | ||
--compilers js:babel-register | ||
--require ./test/mocha.js |
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