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

Commit a35d969

Browse files
authored
Merge pull request #11 from fritz-c/webpack-rewrite
Bump to 3.0.0: Radium→Inlined CSS, react-modal, Webpack
2 parents ed30456 + 051179e commit a35d969

37 files changed

+1413
-1252
lines changed

.babelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"presets": ["es2015", "react"],
3+
"plugins": ["transform-object-rest-spread"]
4+
}

.eslintrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"parser": "babel-eslint",
3+
"extends": "blue-hour"
4+
}

.gitignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
node_modules
22
npm-debug.log
33

4-
# Example build directory
5-
example/dist
6-
74
# Editor and other tmp files
85
*.swp
96
*.un~
@@ -16,4 +13,4 @@ example/dist
1613

1714
# Build directories (Will be preserved by npm)
1815
dist
19-
lib
16+
build

.npmignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
bower.json
2-
dist
3-
example
2+
src/examples
43
svg

CHANGELOG.md

Lines changed: 1 addition & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1 @@
1-
v2.1.0 - Thu, 28 Apr 2016 15:02:18 GMT
2-
--------------------------------------
3-
4-
-
5-
6-
7-
v2.0.0 - Thu, 14 Apr 2016 05:56:21 GMT
8-
--------------------------------------
9-
10-
-
11-
12-
13-
v1.1.2 - Tue, 05 Apr 2016 01:33:58 GMT
14-
--------------------------------------
15-
16-
-
17-
18-
19-
v1.1.1 - Tue, 22 Mar 2016 07:53:55 GMT
20-
--------------------------------------
21-
22-
-
23-
24-
25-
v1.1.0 - Wed, 16 Mar 2016 07:54:02 GMT
26-
--------------------------------------
27-
28-
-
29-
30-
31-
v1.0.5 - Tue, 16 Feb 2016 11:10:44 GMT
32-
--------------------------------------
33-
34-
-
35-
36-
37-
v1.0.4 - Mon, 15 Feb 2016 06:45:15 GMT
38-
--------------------------------------
39-
40-
-
41-
42-
43-
v1.0.3 - Mon, 15 Feb 2016 00:55:49 GMT
44-
--------------------------------------
45-
46-
-
47-
48-
49-
v1.0.2 - Mon, 15 Feb 2016 00:07:49 GMT
50-
--------------------------------------
51-
52-
-
53-
54-
1+
See the GitHub [Releases](https://github.com/fritz-c/react-image-lightbox/releases) for information on updates.

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ Features
1111
- Image Zoom
1212
- Flexible rendering using src values assigned on the fly
1313
- Image preloading for smoother viewing
14-
- Few dependencies
1514
- No external CSS
1615

1716
## Example
@@ -96,3 +95,27 @@ imageTitle | string | | | Image title
9695
toolbarButtons | node[] | | | Array of custom toolbar buttons
9796
imagePadding | number | `10` | | Padding (px) between the edge of the window and the lightbox
9897
clickOutsideToClose | bool | `true` | | When true, clicks outside of the image close the lightbox
98+
99+
## Contributing
100+
101+
After cloning the repository and running `npm install` inside, you can use the following commands to develop and build the project.
102+
103+
```sh
104+
# Starts a webpack dev server that hosts a demo page with the lightbox.
105+
# It uses react-hot-loader so changes are reflected on save.
106+
npm start
107+
108+
# Lints the code with eslint and my custom rules.
109+
npm run lint
110+
111+
# Lints and builds the code, placing the result in the dist directory.
112+
# This build is necessary to reflect changes if you're
113+
# `npm link`-ed to this repository from another local project.
114+
npm run build
115+
```
116+
117+
Pull requests are welcome!
118+
119+
## License
120+
121+
MIT

example/src/app.js

Lines changed: 0 additions & 104 deletions
This file was deleted.

example/src/index.html

Lines changed: 0 additions & 56 deletions
This file was deleted.

example/src/standalone.html

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)