Skip to content

Commit 3f202db

Browse files
committed
init commit
0 parents  commit 3f202db

Some content is hidden

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

83 files changed

+14143
-0
lines changed

.babelrc

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"presets": [
3+
["env", {
4+
"modules": false
5+
}],
6+
"stage-0",
7+
"react"
8+
],
9+
"plugins": [
10+
["module-resolver", {
11+
"root": ["./"],
12+
"cwd": "./"
13+
}],
14+
"babel-plugin-styled-components"
15+
],
16+
"env": {
17+
"commonjs": {
18+
"plugins": [
19+
"transform-es2015-modules-commonjs",
20+
"babel-plugin-styled-components"
21+
]
22+
}
23+
}
24+
}

.editorconfig

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
5+
root = true
6+
7+
[*]
8+
9+
# Change these settings to your own preference
10+
indent_style = space
11+
indent_size = 2
12+
13+
# We recommend you to keep these unchanged
14+
end_of_line = lf
15+
charset = utf-8
16+
trim_trailing_whitespace = true
17+
insert_final_newline = true
18+
19+
[*.md]
20+
trim_trailing_whitespace = false

.eslintignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/dist
2+
/stories/node_modules
3+
/flow-typed/npm

.eslintrc.json

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"parser": "babel-eslint",
3+
"extends": ["airbnb", "plugin:flowtype/recommended"],
4+
"plugins": ["flowtype", "jest"],
5+
"rules": {
6+
"max-len": 0,
7+
"react/forbid-prop-types": 0,
8+
"import/no-extraneous-dependencies": 0,
9+
"no-confusing-arrow": ["error", {"allowParens": true}],
10+
"arrow-parens": ["error", "as-needed"],
11+
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
12+
"import/prefer-default-export": 0,
13+
"object-curly-newline": ["error", { "consistent": true }]
14+
},
15+
"env": {
16+
"jest/globals": true,
17+
"browser": true
18+
},
19+
"settings": {
20+
"import/resolver": {
21+
"babel-module": {}
22+
}
23+
}
24+
}

.flowconfig

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[options]
2+
module.system.node.resolve_dirname=node_modules
3+
module.system.node.resolve_dirname=src
4+
module.system.node.resolve_dirname=stories

.gitignore

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
8+
# Runtime data
9+
pids
10+
*.pid
11+
*.seed
12+
*.pid.lock
13+
14+
# Directory for instrumented libs generated by jscoverage/JSCover
15+
lib-cov
16+
17+
# Coverage directory used by tools like istanbul
18+
coverage
19+
20+
# nyc test coverage
21+
.nyc_output
22+
23+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24+
.grunt
25+
26+
# Bower dependency directory (https://bower.io/)
27+
bower_components
28+
29+
# node-waf configuration
30+
.lock-wscript
31+
32+
# Compiled binary addons (http://nodejs.org/api/addons.html)
33+
build/Release
34+
35+
# Dependency directories
36+
node_modules/
37+
jspm_packages/
38+
39+
# Typescript v1 declaration files
40+
typings/
41+
42+
# Optional npm cache directory
43+
.npm
44+
45+
# Optional eslint cache
46+
.eslintcache
47+
48+
# Optional REPL history
49+
.node_repl_history
50+
51+
# Output of 'npm pack'
52+
*.tgz
53+
54+
# Yarn Integrity file
55+
.yarn-integrity
56+
57+
# dotenv environment variables file
58+
.env
59+
60+
# dist
61+
dist/*
62+
!dist/index.js
63+
64+
# flow-typed
65+
flow-typed/npm
66+
67+
# Storybook
68+
storybook-static
69+
70+
# only support Yarn
71+
package-lock.json
72+
.DS_Store

.npmignore

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
__mocks__
2+
.storybook
3+
.vscode
4+
coverage
5+
stories
6+
!dist
7+
flow-typed
8+
.babelrc
9+
.eslintignore
10+
.eslintrc.json
11+
.flowconfig
12+
.travis.yml
13+
jsconfig.json
14+
rollup.config.*.js
15+
test-config.js
16+
yarn.lock
17+
*.log

.storybook/addons.js

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import '@storybook/addon-actions/register';
2+
import '@storybook/addon-links/register';

.storybook/config.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import '@storybook/addon-console';
2+
import { configure } from '@storybook/react';
3+
4+
const reqMain = require.context('../stories', true, /\.stories\.js$/);
5+
const reqLib = require.context('../src', true, /\.stories\.js$/);
6+
7+
function loadStories() {
8+
require('../stories');
9+
reqMain.keys().forEach(filename => reqMain(filename));
10+
reqLib.keys().forEach(filename => reqLib(filename));
11+
}
12+
13+
configure(loadStories, module);

.stylelintrc

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"processors": ["stylelint-processor-styled-components"],
3+
"extends": [
4+
"stylelint-config-standard",
5+
"stylelint-config-styled-components"
6+
],
7+
"rules": {
8+
"declaration-colon-newline-after": null,
9+
"value-list-max-empty-lines": null,
10+
},
11+
"syntax": "scss"
12+
}

.travis.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
language: node_js
2+
3+
node_js:
4+
- "lts/*"
5+
6+
cache:
7+
yarn: true
8+
9+
script:
10+
- cd stories/
11+
- yarn install
12+
- cd ../
13+
- yarn lint
14+
- yarn flow-typed
15+
- yarn flow
16+
- yarn test -- --coverage
17+
- yarn build
18+
19+
before_deploy:
20+
- yarn build-storybook
21+
22+
deploy:
23+
edge: # https://github.com/travis-ci/travis-ci/issues/9312
24+
branch: v1.8.47
25+
provider: pages
26+
skip_cleanup: true
27+
github_token: $GITHUB_TOKEN
28+
local_dir: storybook-static
29+
on:
30+
branch: master
31+
32+
after_script:
33+
- yarn codecov

.vscode/launch.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Debug Tests",
6+
"type": "node",
7+
"request": "launch",
8+
"program": "${workspaceRoot}/node_modules/jest-cli/bin/jest.js",
9+
"stopOnEntry": false,
10+
"args": ["--runInBand"],
11+
"cwd": "${workspaceRoot}",
12+
"runtimeArgs": ["--nolazy"],
13+
"env": {
14+
"BABEL_ENV": "commonjs"
15+
},
16+
"console": "integratedTerminal",
17+
"sourceMaps": true
18+
}
19+
]
20+
}

.vscode/settings.json

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"files.associations": {
3+
".editorconfig": "javascriptreact"
4+
},
5+
"editor.formatOnType": true,
6+
// "eslint.options": {"configFile": "./package.json"},
7+
"editor.tabSize": 2,
8+
"editor.trimAutoWhitespace": true,
9+
"files.trimTrailingWhitespace": false,
10+
"eslint.nodePath": "./src",
11+
"editor.formatOnSave": false,
12+
"window.zoomLevel": 0,
13+
"workbench.iconTheme": "material-icon-theme",
14+
"terminal.integrated.fontFamily": "Knack Nerd Font",
15+
"terminal.integrated.fontSize": 13,
16+
"terminal.integrated.shellArgs.osx": [
17+
"-l"
18+
],
19+
"terminal.integrated.shell.osx": "zsh",
20+
"terminal.integrated.scrollback": 5000,
21+
"editor.fontSize": 13,
22+
// "editor.minimap.enabled": true,
23+
"extensions.autoUpdate": true
24+
}

LICENSE

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

0 commit comments

Comments
 (0)