Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

Commit

Permalink
Merge pull request #11 from fritz-c/webpack-rewrite
Browse files Browse the repository at this point in the history
Bump to 3.0.0: Radium→Inlined CSS, react-modal, Webpack
  • Loading branch information
fritz-c committed Jul 19, 2016
2 parents ed30456 + 051179e commit a35d969
Show file tree
Hide file tree
Showing 37 changed files with 1,413 additions and 1,252 deletions.
4 changes: 4 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"presets": ["es2015", "react"],
"plugins": ["transform-object-rest-spread"]
}
4 changes: 4 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"parser": "babel-eslint",
"extends": "blue-hour"
}
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
node_modules
npm-debug.log

# Example build directory
example/dist

# Editor and other tmp files
*.swp
*.un~
Expand All @@ -16,4 +13,4 @@ example/dist

# Build directories (Will be preserved by npm)
dist
lib
build
3 changes: 1 addition & 2 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
bower.json
dist
example
src/examples
svg
55 changes: 1 addition & 54 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,54 +1 @@
v2.1.0 - Thu, 28 Apr 2016 15:02:18 GMT
--------------------------------------

-


v2.0.0 - Thu, 14 Apr 2016 05:56:21 GMT
--------------------------------------

-


v1.1.2 - Tue, 05 Apr 2016 01:33:58 GMT
--------------------------------------

-


v1.1.1 - Tue, 22 Mar 2016 07:53:55 GMT
--------------------------------------

-


v1.1.0 - Wed, 16 Mar 2016 07:54:02 GMT
--------------------------------------

-


v1.0.5 - Tue, 16 Feb 2016 11:10:44 GMT
--------------------------------------

-


v1.0.4 - Mon, 15 Feb 2016 06:45:15 GMT
--------------------------------------

-


v1.0.3 - Mon, 15 Feb 2016 00:55:49 GMT
--------------------------------------

-


v1.0.2 - Mon, 15 Feb 2016 00:07:49 GMT
--------------------------------------

-


See the GitHub [Releases](https://github.com/fritz-c/react-image-lightbox/releases) for information on updates.
25 changes: 24 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ Features
- Image Zoom
- Flexible rendering using src values assigned on the fly
- Image preloading for smoother viewing
- Few dependencies
- No external CSS

## Example
Expand Down Expand Up @@ -96,3 +95,27 @@ imageTitle | string | | | Image title
toolbarButtons | node[] | | | Array of custom toolbar buttons
imagePadding | number | `10` | | Padding (px) between the edge of the window and the lightbox
clickOutsideToClose | bool | `true` | | When true, clicks outside of the image close the lightbox

## Contributing

After cloning the repository and running `npm install` inside, you can use the following commands to develop and build the project.

```sh
# Starts a webpack dev server that hosts a demo page with the lightbox.
# It uses react-hot-loader so changes are reflected on save.
npm start

# Lints the code with eslint and my custom rules.
npm run lint

# Lints and builds the code, placing the result in the dist directory.
# This build is necessary to reflect changes if you're
# `npm link`-ed to this repository from another local project.
npm run build
```

Pull requests are welcome!

## License

MIT
104 changes: 0 additions & 104 deletions example/src/app.js

This file was deleted.

56 changes: 0 additions & 56 deletions example/src/index.html

This file was deleted.

25 changes: 0 additions & 25 deletions example/src/standalone.html

This file was deleted.

0 comments on commit a35d969

Please sign in to comment.