-
Notifications
You must be signed in to change notification settings - Fork 810
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update bundling scheme This commit sets things up to work properly when publishing to npm. Prior to publishing the package items from the src/ folder will be processed with Babel and stored in the lib/ folder. The lib/ folder will not be present in the repository. The src/ folder similarly will not be available when looking at the installed package. In addition this commit also fixes #332 by adding the `babel-plugin-transform-object-assign` plugin and removing `lodash.assign` * Update linting dependencies This temporarily disables react/require-default-props until it can be addressed in a separate commit. * Make sure tests run using the proper source
- Loading branch information
1 parent
37a6ceb
commit 9cb8441
Showing
16 changed files
with
954 additions
and
981 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"presets": ["react", "latest", "stage-2"] | ||
"presets": ["react", "latest", "stage-2"], | ||
"plugins": ["babel-plugin-transform-object-assign"] | ||
} |
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 |
---|---|---|
|
@@ -3,3 +3,4 @@ node_modules/ | |
.idea/ | ||
_book | ||
coverage | ||
lib |
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 |
---|---|---|
|
@@ -5,3 +5,4 @@ karma.conf.js | |
script | ||
specs | ||
.idea/ | ||
src |
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 |
---|---|---|
|
@@ -23,28 +23,31 @@ | |
"docs:build": "gitbook build -g reactjs/react-modal", | ||
"docs:build:watch": "gitbook serve", | ||
"docs:publish": "cd _book && git init && git commit --allow-empty -m 'update book' && git checkout -b gh-pages && touch .nojekyll && git add . && git commit -am 'update book' && git push [email protected]:reactjs/react-modal gh-pages --force", | ||
"lint": "eslint lib/ specs/" | ||
"lint": "eslint src/ specs/", | ||
"prepublish": "babel src -d lib" | ||
}, | ||
"authors": [ | ||
"Ryan Florence" | ||
], | ||
"license": "MIT", | ||
"devDependencies": { | ||
"babel-cli": "^6.23.0", | ||
"babel-core": "^6.7.4", | ||
"babel-eslint": "^7.1.1", | ||
"babel-loader": "^6.2.4", | ||
"babel-plugin-transform-object-assign": "^6.22.0", | ||
"babel-preset-es2015": "^6.6.0", | ||
"babel-preset-latest": "^6.16.0", | ||
"babel-preset-react": "^6.5.0", | ||
"babel-preset-stage-2": "^6.18.0", | ||
"codeclimate-test-reporter": "^0.4.0", | ||
"coveralls": "^2.11.15", | ||
"envify": "^3.4.1", | ||
"eslint": "^3.9.1", | ||
"eslint-config-airbnb": "latest", | ||
"eslint-plugin-import": "^2.1.0", | ||
"eslint-plugin-jsx-a11y": "^2.2.3", | ||
"eslint-plugin-react": "^6.6.0", | ||
"eslint": "^3.15.0", | ||
"eslint-config-airbnb": "^14.1.0", | ||
"eslint-plugin-import": "^2.2.0", | ||
"eslint-plugin-jsx-a11y": "^3.0.2 || ^4.0.0", | ||
"eslint-plugin-react": "^6.9.0", | ||
"expect": "1.10.0", | ||
"gitbook-cli": "^2.3.0", | ||
"istanbul-instrumenter-loader": "0.2.0", | ||
|
@@ -72,8 +75,7 @@ | |
}, | ||
"dependencies": { | ||
"element-class": "^0.2.0", | ||
"exenv": "1.2.0", | ||
"lodash.assign": "^4.2.0" | ||
"exenv": "1.2.0" | ||
}, | ||
"peerDependencies": { | ||
"react": "^0.14.0 || ^15.0.0", | ||
|
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.