Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Malte W
committed
Aug 7, 2015
1 parent
fef1414
commit 5b7af0a
Showing
14 changed files
with
122 additions
and
137 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
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,17 +1,2 @@ | ||
library-boilerplate | ||
react-custom-scrollbars | ||
========================= | ||
|
||
An opinionated setup I plan to use for my libraries. | ||
|
||
It has CommonJS and UMD builds via Babel and Webpack, ESLint, and Mocha. | ||
It also has React-friendly examples folder with library code mapped to the sources. | ||
|
||
If you use this, make sure to grep for “library-boilerplate” and replace every occurrence. | ||
See `package.json` in the root and the example folder for the list of the available commands. | ||
|
||
Note that this is an *opinionated* boilerplate. You might want to: | ||
|
||
* Set `stage` to `2` in `.babelrc` so you don’t depend on language features that might be gone tomorrow; | ||
* Remove `loose: ["all"]` from `.babelrc` so the behavior is spec-compliant. | ||
|
||
You have been warned. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,10 +1,9 @@ | ||
<html> | ||
<head> | ||
<title>library-boilerplate-example-title</title> | ||
</head> | ||
<body> | ||
<div id="root"> | ||
</div> | ||
<script src="/static/bundle.js"></script> | ||
</body> | ||
<head> | ||
<title>react-custom-scrollbars simple example</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script src="/static/bundle.js"></script> | ||
</body> | ||
</html> |
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
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
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,2 +1,2 @@ | ||
import Scroller from './Scroller'; | ||
export { Scroller }; | ||
import Scrollbars from './Scrollbars'; | ||
export { Scrollbars }; |
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,8 +1,8 @@ | ||
export default function addStyleSheet(styles) { | ||
if (document.getElementById('react-scroller-styles')) return; | ||
if (document.getElementById('react-custom-scrollbars-styles')) return; | ||
const style = document.createElement('style'); | ||
style.type = 'text/css'; | ||
style.id = 'react-scroller-styles'; | ||
style.id = 'react-custom-scrollbars-styles'; | ||
style.innerHTML = styles; | ||
document.body.appendChild(style); | ||
} |
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,8 +1,7 @@ | ||
import expect from 'expect'; | ||
import { add } from '../src'; | ||
|
||
describe('add', () => { | ||
it('should add 2 and 2', () => { | ||
expect(add(2, 2)).toBe(4); | ||
}); | ||
describe('Scrollbars', () => { | ||
it('works', () => { | ||
expect(true).toBe(true); | ||
}); | ||
}); |
Oops, something went wrong.