Skip to content

Commit 2cc37a1

Browse files
authored
Merge pull request #77 from ganderzz/release/2.0.0
Release/2.0.0
2 parents 8a608c7 + 0a25e02 commit 2cc37a1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+5606
-3259
lines changed

.babelrc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"presets": ["env", "stage-3", "react"]
3-
}
2+
"presets": ["@babel/preset-env", "@babel/preset-react"],
3+
"plugins": ["@babel/plugin-proposal-class-properties"]
4+
}

.circleci/config.yml

Lines changed: 44 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
version: 2
2+
3+
defaults: &defaults
4+
working_directory: ~/repo
5+
docker:
6+
- image: circleci/node:latest
7+
28
jobs:
39
build:
10+
<<: *defaults
411
parallelism: 1
5-
docker:
6-
- image: circleci/node:8.9.1
7-
8-
working_directory: ~/repo
912

1013
steps:
1114
- checkout
1215

1316
# Download and cache dependencies
1417
- restore_cache:
1518
keys:
16-
- v1-dependencies-{{ checksum "package.json" }}
17-
# fallback to using the latest cache if no exact match is found
18-
- v1-dependencies-
19+
- v1-dependencies-{{ checksum "package.json" }}
20+
# fallback to using the latest cache if no exact match is found
21+
- v1-dependencies-
1922

2023
- run: yarn install
2124

@@ -28,3 +31,37 @@ jobs:
2831

2932
- store_artifacts:
3033
path: ./coverage
34+
35+
deploy:
36+
<<: *defaults
37+
steps:
38+
- checkout
39+
40+
- restore_cache:
41+
keys:
42+
- v1-dependencies-{{ checksum "package.json" }}
43+
# fallback to using the latest cache if no exact match is found
44+
- v1-dependencies-
45+
46+
- run: yarn install
47+
48+
- run:
49+
name: Authenticate with registry
50+
command: echo "//registry.npmjs.org/:_authToken=$npm_TOKEN" > ~/repo/.npmrc
51+
- run:
52+
name: Build prod code
53+
command: yarn build:prod
54+
- run:
55+
name: Publish package
56+
command: npm publish
57+
58+
workflows:
59+
version: 2
60+
deploy:
61+
jobs:
62+
- deploy:
63+
filters:
64+
tags:
65+
only: /^v.*/
66+
branches:
67+
ignore: /.*/
File renamed without changes.
File renamed without changes.

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ npm-debug.log*
55
yarn-debug.log*
66
yarn-error.log*
77
.DS_Store
8+
.cache
9+
10+
dist
811

912
# Runtime data
1013
pids
@@ -30,6 +33,8 @@ bower_components
3033
# node-waf configuration
3134
.lock-wscript
3235

36+
*.orig
37+
3338
# Compiled binary addons (http://nodejs.org/api/addons.html)
3439
build/Release
3540

.npmignore

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
./src
2-
./node_modules/*
3-
./.circleci/*
2+
./node_modules
3+
./.circleci
4+
./.github
5+
./config
6+
./docs
7+
./stories
8+
./.storybook
49

510
*.lock
6-
webpack.config.js
711
.gitignore
812
.all-contributorsrc
913
.eslintrc.js
1014
.babelrc
11-
CODE_OF_CONDUCT.md
12-
ISSUE_TEMPLATE.md
1315

1416
*.log

.storybook/config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { configure } from "@storybook/react";
2+
3+
function loadStories() {
4+
require("../stories/Default.jsx");
5+
require("../stories/HigherOrderComponent.jsx");
6+
require("../stories/ScrollByRef.jsx");
7+
require("../stories/WithScrollArea.jsx");
8+
}
9+
10+
configure(loadStories, module);

.storybook/preview-head.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<link rel="stylesheet" href="//cdn.rawgit.com/necolas/normalize.css/master/normalize.css">
2+
<link rel="stylesheet" href="//cdn.rawgit.com/milligram/milligram/master/dist/milligram.min.css">
3+
4+
<style>
5+
button {
6+
box-shadow: 1px 2px 6px rgba(0, 0, 0, 0.3);
7+
transition: box-shadow 0.1s;
8+
}
9+
10+
button:hover {
11+
box-shadow: 2px 5px 6px rgba(0, 0, 0, 0.4);
12+
}
13+
</style>

0 commit comments

Comments
 (0)