Skip to content

Commit

Permalink
switch to typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
Hao Liu committed Apr 9, 2019
1 parent 1088647 commit 654ea47
Show file tree
Hide file tree
Showing 17 changed files with 5,645 additions and 51,591 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"presets": ["es2015", "react", "stage-0"]
"presets": ["@babel/preset-env", "@babel/react"]
}
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,7 @@ Icon
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
.apdisk

# Dev
dev.js
11 changes: 11 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"printWidth": 100,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"trailingComma": "es5",
"bracketSpacing": true,
"jsxBracketSameLine": true,
"arrowParens": "always"
}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"editor.tabSize": 2
}
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@

[![npm version](https://badge.fury.io/js/react-free-scrollbar.svg)](https://badge.fury.io/js/react-free-scrollbar)

A react module for creating customizable scroll area
A react module for creating customizable scroll area.

Visit [http://fuermosi777.github.io/react-free-scrollbar/](http://fuermosi777.github.io/react-free-scrollbar/) to see [demo](http://fuermosi777.github.io/react-free-scrollbar/).

## Install

$ npm install --save react-free-scrollbar

Assums you are using NPM package manager and module bundler such as Webpack.
$ yarn add react-free-scrollbar

## Usage

Expand Down Expand Up @@ -125,8 +124,8 @@ For more examples, go to [http://fuermosi777.github.io/react-free-scrollbar/](ht

## Develop

`$ npm run demo-dev`
`$ yarn dev`

Before publish: make sure run `npm run demo-build` and `npm run dist`.
Before publish: make sure run `yarn demo-build` and `yarn dist`.

Go to `http://localhost:8080/demo/dev/`.
Go to `http://localhost:8080`.
2 changes: 1 addition & 1 deletion demo/dev/index.html → demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<body>
<div id="app"></div>
<script src="http://localhost:8080/demo.js"></script>
<script src="dev.js"></script>
</body>

</html>
Loading

0 comments on commit 654ea47

Please sign in to comment.