Skip to content
This repository has been archived by the owner on Nov 27, 2020. It is now read-only.

Commit

Permalink
feat: release the lib 🐙
Browse files Browse the repository at this point in the history
  • Loading branch information
Kent C. Dodds committed Aug 31, 2017
0 parents commit da1e61c
Show file tree
Hide file tree
Showing 37 changed files with 1,631 additions and 0 deletions.
228 changes: 228 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,228 @@
{
"projectName": "react-toggled",
"projectOwner": "paypal",
"files": [
"README.md"
],
"imageSize": 100,
"commit": false,
"contributors": [
{
"login": "kentcdodds",
"name": "Kent C. Dodds",
"avatar_url": "https://avatars.githubusercontent.com/u/1500684?v=3",
"profile": "https://kentcdodds.com",
"contributions": [
"code",
"doc",
"infra",
"test"
]
},
{
"login": "ryanflorence",
"name": "Ryan Florence",
"avatar_url": "https://avatars0.githubusercontent.com/u/100200?v=4",
"profile": "http://twitter.com/ryanflorence",
"contributions": [
"ideas"
]
},
{
"login": "jaredly",
"name": "Jared Forsyth",
"avatar_url": "https://avatars3.githubusercontent.com/u/112170?v=4",
"profile": "http://jaredforsyth.com",
"contributions": [
"ideas",
"doc"
]
},
{
"login": "jtmthf",
"name": "Jack Moore",
"avatar_url": "https://avatars1.githubusercontent.com/u/8162598?v=4",
"profile": "https://github.com/jtmthf",
"contributions": [
"example"
]
},
{
"login": "souporserious",
"name": "Travis Arnold",
"avatar_url": "https://avatars1.githubusercontent.com/u/2762082?v=4",
"profile": "http://travisrayarnold.com",
"contributions": [
"code",
"doc"
]
},
{
"login": "tizmagik",
"name": "Jeremy Gayed",
"avatar_url": "https://avatars2.githubusercontent.com/u/244704?v=4",
"profile": "http://www.jeremygayed.com",
"contributions": [
"example"
]
},
{
"login": "Haroenv",
"name": "Haroen Viaene",
"avatar_url": "https://avatars3.githubusercontent.com/u/6270048?v=4",
"profile": "https://haroen.me",
"contributions": [
"example"
]
},
{
"login": "rezof",
"name": "monssef",
"avatar_url": "https://avatars2.githubusercontent.com/u/15073300?v=4",
"profile": "https://github.com/rezof",
"contributions": [
"example"
]
},
{
"login": "FezVrasta",
"name": "Federico Zivolo",
"avatar_url": "https://avatars2.githubusercontent.com/u/5382443?v=4",
"profile": "https://fezvrasta.github.io",
"contributions": [
"doc"
]
},
{
"login": "divyenduz",
"name": "Divyendu Singh",
"avatar_url": "https://avatars3.githubusercontent.com/u/746482?v=4",
"profile": "https://divyendusingh.com",
"contributions": [
"example"
]
},
{
"login": "salmanmanekia",
"name": "Muhammad Salman",
"avatar_url": "https://avatars1.githubusercontent.com/u/841955?v=4",
"profile": "https://github.com/salmanmanekia",
"contributions": [
"code"
]
},
{
"login": "psicotropicos",
"name": "João Alberto",
"avatar_url": "https://avatars3.githubusercontent.com/u/10820159?v=4",
"profile": "https://twitter.com/psicotropidev",
"contributions": [
"code"
]
},
{
"login": "bernard-lin",
"name": "Bernard Lin",
"avatar_url": "https://avatars0.githubusercontent.com/u/16327281?v=4",
"profile": "https://github.com/bernard-lin",
"contributions": [
"code",
"doc"
]
},
{
"login": "geoffdavis92",
"name": "Geoff Davis",
"avatar_url": "https://avatars1.githubusercontent.com/u/7330124?v=4",
"profile": "https://geoffdavis.info",
"contributions": [
"example"
]
},
{
"login": "reznord",
"name": "Anup",
"avatar_url": "https://avatars0.githubusercontent.com/u/3415488?v=4",
"profile": "https://github.com/reznord",
"contributions": [
"doc"
]
},
{
"login": "ferdinandsalis",
"name": "Ferdinand Salis",
"avatar_url": "https://avatars0.githubusercontent.com/u/340520?v=4",
"profile": "http://ferdinandsalis.com",
"contributions": [
"bug",
"code"
]
},
{
"login": "tkh44",
"name": "Kye Hohenberger",
"avatar_url": "https://avatars2.githubusercontent.com/u/662750?v=4",
"profile": "https://github.com/tkh44",
"contributions": [
"bug"
]
},
{
"login": "jgoux",
"name": "Julien Goux",
"avatar_url": "https://avatars0.githubusercontent.com/u/1443499?v=4",
"profile": "https://github.com/jgoux",
"contributions": [
"bug",
"code",
"test"
]
},
{
"login": "jseminck",
"name": "Joachim Seminck",
"avatar_url": "https://avatars2.githubusercontent.com/u/9586897?v=4",
"profile": "https://github.com/jseminck",
"contributions": [
"code"
]
},
{
"login": "the-simian",
"name": "Jesse Harlin",
"avatar_url": "https://avatars3.githubusercontent.com/u/954596?v=4",
"profile": "http://jesseharlin.net/",
"contributions": [
"bug",
"example"
]
},
{
"login": "pbomb",
"name": "Matt Parrish",
"avatar_url": "https://avatars0.githubusercontent.com/u/1402095?v=4",
"profile": "https://github.com/pbomb",
"contributions": [
"tool"
]
},
{
"login": "thomhos",
"name": "thom",
"avatar_url": "https://avatars1.githubusercontent.com/u/11661846?v=4",
"profile": "http://thom.kr",
"contributions": [
"code"
]
},
{
"login": "vutran",
"name": "Vu Tran",
"avatar_url": "https://avatars2.githubusercontent.com/u/1088312?v=4",
"profile": "http://twitter.com/tranvu",
"contributions": [
"code"
]
}
]
}
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["./.babelrc.js"]
}
19 changes: 19 additions & 0 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const isTest = process.env.NODE_ENV === 'test'
const isPreact = process.env.LIBRARY === 'preact'
const isRollup = process.env.ROLLUP_BUILD

module.exports = {
presets: [['env', isRollup ? {modules: false} : {}], 'react'],
plugins: [
isRollup ? 'external-helpers' : null,
// we're actually not using JSX at all, but I'm leaving this
// in here just in case we ever do (this would be easy to miss).
isPreact ? ['transform-react-jsx', {pragma: 'h'}] : null,
isPreact
? ['transform-react-remove-prop-types', {removeImport: true}]
: null,
isTest ? null : 'transform-inline-environment-variables',
'transform-class-properties',
'transform-object-rest-spread',
].filter(Boolean),
}
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
coverage
dist
storybook-static
19 changes: 19 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"extends": [
"kentcdodds",
"kentcdodds/react",
"kentcdodds/jest",
"kentcdodds/prettier",
],
"rules": {
"max-len": "off",
"semi": "off",
"comma-dangle": "off",
"quote": "off",
"max-lines": "off",
"func-style": "off",
"no-eq-null": "off",
"eqeqeq": "off",
"no-nested-ternary": "off"
}
}
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* text=auto
*.js text eol=lf
43 changes: 43 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!--
Thanks for your interest in the project. I appreciate bugs filed and PRs submitted!
Please make sure that you are familiar with and follow the Code of Conduct for
this project (found in the CODE_OF_CONDUCT.md file).
Please fill out this template with all the relevant information so we can
understand what's going on and fix the issue.
I'll probably ask you to submit the fix (after giving some direction). If you've
never done that before, that's great! Check this free short video tutorial to
learn how: http://kcd.im/pull-request
-->

- `react-toggled` version:
- `node` version:
- `npm` (or `yarn`) version:

Relevant code or config

```javascript

```

What you did:



What happened:

<!-- Please provide the full error message/screenshots/anything -->

Reproduction repository:

<!--
If possible, please create a repository that reproduces the issue with the
minimal amount of code possible.
-->

Problem description:



Suggested solution:
35 changes: 35 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!--
Thanks for your interest in the project. Bugs filed and PRs submitted are appreciated!
Please make sure that you are familiar with and follow the Code of Conduct for
this project (found in the CODE_OF_CONDUCT.md file).
Also, please make sure you're familiar with and follow the instructions in the
contributing guidelines (found in the CONTRIBUTING.md file).
If you're new to contributing to open source projects, you might find this free
video course helpful: http://kcd.im/pull-request
Please fill out the information below to expedite the review and (hopefully)
merge of your pull request!
-->

<!-- What changes are being made? (What feature/bug is being fixed here?) -->
**What**:

<!-- Why are these changes necessary? -->
**Why**:

<!-- How were these changes implemented? -->
**How**:

<!-- Have you done all of these things? -->
**Checklist**:
<!-- add "N/A" to the end of each line that's irrelevant to your changes -->
<!-- to check an item, place an "x" in the box like so: "- [x] Documentation" -->
- [ ] Documentation
- [ ] Tests
- [ ] Ready to be merged <!-- In your opinion, is this ready to be merged as soon as it's reviewed? -->
- [ ] Added myself to contributors table <!-- this is optional, see the contributing guidelines for instructions -->

<!-- feel free to add additional comments -->
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
node_modules
coverage
dist
.opt-in
.opt-out
.DS_Store
.next
.eslintcache
storybook-static

# these cause more harm than good
# when working with contributors
package-lock.json
yarn.lock
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
registry=http://registry.npmjs.org/
17 changes: 17 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
sudo: false
language: node_js
cache:
directories:
- node_modules
notifications:
email: false
node_js:
- '8'
script:
- npm start validate
after_success:
- npx codecov
- npm i -g semantic-release && semantic-release pre && npm publish && semantic-release post
branches:
only:
- master
Loading

0 comments on commit da1e61c

Please sign in to comment.