Skip to content

Commit 49835a1

Browse files
committed
first commit
0 parents  commit 49835a1

19 files changed

+7222
-0
lines changed

.all-contributorsrc

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"projectName": "react-adaptive-image",
3+
"projectOwner": "stereobooster",
4+
"files": [
5+
"README.md"
6+
],
7+
"imageSize": 100,
8+
"commit": false,
9+
"contributors": [
10+
{
11+
"login": "stereobooster",
12+
"name": "stereobooster",
13+
"avatar_url": "https://avatars3.githubusercontent.com/u/179534?s=460&v=4",
14+
"profile": "https://github.com/stereobooster",
15+
"contributions": [
16+
"code",
17+
"doc",
18+
"infra",
19+
"test"
20+
]
21+
}
22+
]
23+
}

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
* text=auto
2+
*.js text eol=lf

.github/ISSUE_TEMPLATE.md

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<!--
2+
Thanks for your interest in the project. I appreciate bugs filed and PRs submitted!
3+
Please make sure that you are familiar with and follow the Code of Conduct for
4+
this project (found in the CODE_OF_CONDUCT.md file).
5+
6+
Please fill out this template with all the relevant information so we can
7+
understand what's going on and fix the issue.
8+
9+
I'll probably ask you to submit the fix (after giving some direction). If you've
10+
never done that before, that's great! Check this free short video tutorial to
11+
learn how: http://kcd.im/pull-request
12+
-->
13+
14+
* `react-adaptive-image` version:
15+
* `node` version:
16+
* `npm` (or `yarn`) version:
17+
18+
Relevant code or config
19+
20+
```javascript
21+
```
22+
23+
What you did:
24+
25+
What happened:
26+
27+
<!-- Please provide the full error message/screenshots/anything -->
28+
29+
Reproduction repository:
30+
31+
<!--
32+
If possible, please create a repository that reproduces the issue with the
33+
minimal amount of code possible.
34+
-->
35+
36+
Problem description:
37+
38+
Suggested solution:

.github/PULL_REQUEST_TEMPLATE.md

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<!--
2+
Thanks for your interest in the project. Bugs filed and PRs submitted are appreciated!
3+
4+
Please make sure that you are familiar with and follow the Code of Conduct for
5+
this project (found in the CODE_OF_CONDUCT.md file).
6+
7+
Also, please make sure you're familiar with and follow the instructions in the
8+
contributing guidelines (found in the CONTRIBUTING.md file).
9+
10+
If you're new to contributing to open source projects, you might find this free
11+
video course helpful: http://kcd.im/pull-request
12+
13+
Please fill out the information below to expedite the review and (hopefully)
14+
merge of your pull request!
15+
-->
16+
17+
<!-- What changes are being made? (What feature/bug is being fixed here?) -->
18+
19+
**What**:
20+
21+
<!-- Why are these changes necessary? -->
22+
23+
**Why**:
24+
25+
<!-- How were these changes implemented? -->
26+
27+
**How**:
28+
29+
<!-- Have you done all of these things? -->
30+
31+
**Checklist**:
32+
33+
<!-- add "N/A" to the end of each line that's irrelevant to your changes -->
34+
35+
<!-- to check an item, place an "x" in the box like so: "- [x] Documentation" -->
36+
37+
* [ ] Documentation
38+
* [ ] Tests
39+
* [ ] Ready to be merged <!-- In your opinion, is this ready to be merged as soon as it's reviewed? -->
40+
* [ ] Added myself to contributors table <!-- this is optional, see the contributing guidelines for instructions -->
41+
42+
<!-- feel free to add additional comments -->

.gitignore

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
node_modules
2+
coverage
3+
dist
4+
.opt-in
5+
.opt-out
6+
.DS_Store
7+
.eslintcache
8+
9+
# these cause more harm than good
10+
# when working with contributors
11+
package-lock.json
12+
yarn.lock

.npmrc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
registry=http://registry.npmjs.org/
2+
package-lock=false

.travis.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
sudo: false
2+
language: node_js
3+
cache:
4+
directories:
5+
- ~/.npm
6+
notifications:
7+
email: false
8+
node_js: '8'
9+
install: npm install
10+
script: npm run validate
11+
after_success: kcd-scripts travis-after-success
12+
branches:
13+
only: master

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# CHANGELOG
2+
3+
The changelog is automatically updated using [semantic-release](https://github.com/semantic-release/semantic-release).
4+
You can see it on the [releases page](../../releases).

CONTRIBUTING.md

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# Contributing
2+
3+
Thanks for being willing to contribute!
4+
5+
**Working on your first Pull Request?** You can learn how from this _free_ series
6+
[How to Contribute to an Open Source Project on GitHub][egghead]
7+
8+
## Project setup
9+
10+
1. Fork and clone the repo
11+
2. Run `npm run setup -s` to install dependencies and run validation
12+
3. Create a branch for your PR with `git checkout -b pr/your-branch-name`
13+
14+
> Tip: Keep your `master` branch pointing at the original repository and make
15+
> pull requests from branches on your fork. To do this, run:
16+
>
17+
> ```
18+
> git remote add upstream https://github.com/stereobooster/react-adaptive-image.git
19+
> git fetch upstream
20+
> git branch --set-upstream-to=upstream/master master
21+
> ```
22+
>
23+
> This will add the original repository as a "remote" called "upstream,"
24+
> Then fetch the git information from that remote, then set your local `master`
25+
> branch to use the upstream master branch whenever you run `git pull`.
26+
> Then you can make all of your pull request branches based on this `master`
27+
> branch. Whenever you want to update your version of `master`, do a regular
28+
> `git pull`.
29+
30+
## Add yourself as a contributor
31+
32+
This project follows the [all contributors][all-contributors] specification.
33+
To add yourself to the table of contributors on the `README.md`, please use the
34+
automated script as part of your PR:
35+
36+
```console
37+
npm run add-contributor
38+
```
39+
40+
Follow the prompt and commit `.all-contributorsrc` and `README.md` in the PR.
41+
If you've already added yourself to the list and are making
42+
a new type of contribution, you can run it again and select the added
43+
contribution type.
44+
45+
## Committing and Pushing changes
46+
47+
Please make sure to run the tests before you commit your changes. You can run
48+
`npm run test:update` which will update any snapshots that need updating.
49+
Make sure to include those changes (if they exist) in your commit.
50+
51+
### opt into git hooks
52+
53+
There are git hooks set up with this project that are automatically installed
54+
when you install dependencies. They're really handy, but are turned off by
55+
default (so as to not hinder new contributors). You can opt into these by
56+
creating a file called `.opt-in` at the root of the project and putting this
57+
inside:
58+
59+
```
60+
pre-commit
61+
```
62+
63+
## Help needed
64+
65+
Please checkout the [the open issues][issues]
66+
67+
Also, please watch the repo and respond to questions/bug reports/feature
68+
requests! Thanks!
69+
70+
[egghead]: https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github
71+
[all-contributors]: https://github.com/stereobooster/all-contributors
72+
[issues]: https://github.com/stereobooster/react-adaptive-image/issues

LICENSE

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
Copyright (c) 2017 stereobooster
3+
4+
Permission is hereby granted, free of charge, to any person obtaining a copy
5+
of this software and associated documentation files (the "Software"), to deal
6+
in the Software without restriction, including without limitation the rights
7+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
copies of the Software, and to permit persons to whom the Software is
9+
furnished to do so, subject to the following conditions:
10+
11+
The above copyright notice and this permission notice shall be included in all
12+
copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20+
SOFTWARE.

README.md

+111
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
<div align="center">
2+
<h1>react-adaptive-image</h1>
3+
4+
<p>Adaptive image component</p>
5+
</div>
6+
7+
<hr />
8+
9+
[![Build Status][build-badge]][build]
10+
[![Code Coverage][coverage-badge]][coverage]
11+
[![version][version-badge]][package]
12+
[![downloads][downloads-badge]][npmtrends]
13+
[![MIT License][license-badge]][license]
14+
15+
[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors)
16+
[![PRs Welcome][prs-badge]][prs]
17+
[![Code of Conduct][coc-badge]][coc]
18+
19+
[![Watch on GitHub][github-watch-badge]][github-watch]
20+
[![Star on GitHub][github-star-badge]][github-star]
21+
[![Tweet][twitter-badge]][twitter]
22+
23+
## The problem
24+
25+
// TODO
26+
27+
## This solution
28+
29+
// TODO
30+
31+
## Table of Contents
32+
33+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
34+
35+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
36+
37+
* [Installation](#installation)
38+
* [Usage](#usage)
39+
* [Inspiration](#inspiration)
40+
* [Other Solutions](#other-solutions)
41+
* [Contributors](#contributors)
42+
* [LICENSE](#license)
43+
44+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
45+
46+
## Installation
47+
48+
This module is distributed via [npm][npm] which is bundled with [node][node] and
49+
should be installed as one of your project's `devDependencies`:
50+
51+
```
52+
npm install --save-dev react-adaptive-image
53+
```
54+
55+
## Usage
56+
57+
// TODO
58+
59+
## Inspiration
60+
61+
// TODO
62+
63+
## Other Solutions
64+
65+
I'm not aware of any, if you are please [make a pull request][prs] and add it
66+
here!
67+
68+
## Contributors
69+
70+
Thanks goes to these people ([emoji key][emojis]):
71+
72+
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
73+
74+
<!-- prettier-ignore -->
75+
| [<img src="https://avatars3.githubusercontent.com/u/179534?s=460&v=4" width="100px;"/><br /><sub><b>stereobooster</b></sub>](https://github.com/stereobooster)<br />[💻](https://github.com/stereobooster/react-adaptive-image/commits?author=stereobooster "Code") [📖](https://github.com/stereobooster/react-adaptive-image/commits?author=stereobooster "Documentation") [🚇](#infra-stereobooster "Infrastructure (Hosting, Build-Tools, etc)") [⚠️](https://github.com/stereobooster/react-adaptive-image/commits?author=stereobooster "Tests") |
76+
| :---: |
77+
78+
<!-- ALL-CONTRIBUTORS-LIST:END -->
79+
80+
This project follows the [all-contributors][all-contributors] specification.
81+
Contributions of any kind welcome!
82+
83+
## LICENSE
84+
85+
MIT
86+
87+
[npm]: https://www.npmjs.com/
88+
[node]: https://nodejs.org
89+
[build-badge]: https://img.shields.io/travis/stereobooster/react-adaptive-image.svg?style=flat-square
90+
[build]: https://travis-ci.org/stereobooster/react-adaptive-image
91+
[coverage-badge]: https://img.shields.io/codecov/c/github/stereobooster/react-adaptive-image.svg?style=flat-square
92+
[coverage]: https://codecov.io/github/stereobooster/react-adaptive-image
93+
[version-badge]: https://img.shields.io/npm/v/react-adaptive-image.svg?style=flat-square
94+
[package]: https://www.npmjs.com/package/react-adaptive-image
95+
[downloads-badge]: https://img.shields.io/npm/dm/react-adaptive-image.svg?style=flat-square
96+
[npmtrends]: http://www.npmtrends.com/react-adaptive-image
97+
[license-badge]: https://img.shields.io/npm/l/react-adaptive-image.svg?style=flat-square
98+
[license]: https://github.com/stereobooster/react-adaptive-image/blob/master/LICENSE
99+
[prs-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square
100+
[prs]: http://makeapullrequest.com
101+
[donate-badge]: https://img.shields.io/badge/$-support-green.svg?style=flat-square
102+
[coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square
103+
[coc]: https://github.com/stereobooster/react-adaptive-image/blob/master/other/CODE_OF_CONDUCT.md
104+
[github-watch-badge]: https://img.shields.io/github/watchers/stereobooster/react-adaptive-image.svg?style=social
105+
[github-watch]: https://github.com/stereobooster/react-adaptive-image/watchers
106+
[github-star-badge]: https://img.shields.io/github/stars/stereobooster/react-adaptive-image.svg?style=social
107+
[github-star]: https://github.com/stereobooster/react-adaptive-image/stargazers
108+
[twitter]: https://twitter.com/intent/tweet?text=Check%20out%20react-adaptive-image%20by%20%40stereobooster%20https%3A%2F%2Fgithub.com%2Fstereobooster%2Freact-adaptive-image%20%F0%9F%91%8D
109+
[twitter-badge]: https://img.shields.io/twitter/url/https/github.com/stereobooster/react-adaptive-image.svg?style=social
110+
[emojis]: https://github.com/stereobooster/all-contributors#emoji-key
111+
[all-contributors]: https://github.com/stereobooster/all-contributors

0 commit comments

Comments
 (0)