Skip to content

Commit f43fa97

Browse files
committed
base scaffoldiong
1 parent 9ae1485 commit f43fa97

29 files changed

+13833
-45
lines changed

.editorconfig

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# EditorConfig: http://EditorConfig.org
2+
# EditorConfig Properties: https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties
3+
4+
# top-most EditorConfig file
5+
root = true
6+
7+
### defaults
8+
[*]
9+
charset = utf-8
10+
11+
# Unix-style newlines with
12+
end_of_line = lf
13+
14+
# 2 space indentation
15+
indent_size = 2
16+
indent_style = space
17+
18+
# remove any whitespace characters preceding newline characters
19+
trim_trailing_whitespace = true
20+
21+
# newline ending every file
22+
insert_final_newline = true
23+
24+
# Forces hard line wrapping after the amount of characters specified
25+
max_line_length = off
26+
27+
### custom for markdown
28+
[*.md]
29+
# do not remove any whitespace characters preceding newline characters
30+
trim_trailing_whitespace = false

.eslintignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
dist/
2+
types/
3+
docs/
4+
demo/
5+
.storybook/
6+
coverage/
7+
src/**/*.story.tsx
8+
src/**/*.test.ts

.eslintrc.js

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
module.exports = {
2+
'env': {
3+
'browser': true,
4+
'es2021': true
5+
},
6+
'extends': ["eslint:recommended", "plugin:react/recommended", "prettier", "plugin:react-hooks/recommended", "plugin:storybook/recommended"],
7+
'parser': '@typescript-eslint/parser',
8+
'parserOptions': {
9+
'ecmaFeatures': {
10+
'jsx': true
11+
},
12+
'ecmaVersion': 12,
13+
'sourceType': 'module'
14+
},
15+
'plugins': ['react', '@typescript-eslint'],
16+
'rules': {
17+
'no-unused-vars': [0],
18+
'indent': ['error', 2],
19+
'arrow-parens': ['error', 'as-needed'],
20+
'react/display-name': [0],
21+
'react/prop-types': [0],
22+
'react/no-children-prop': [0],
23+
'linebreak-style': ['error', 'unix'],
24+
'quotes': ['error', 'single'],
25+
'semi': ['error', 'always']
26+
}
27+
};

.github/FUNDING.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# These are supported funding model platforms
2+
3+
open_collective: reaviz

.github/ISSUE_TEMPLATE.md

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
<!--
2+
PLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.
3+
4+
ISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION.
5+
-->
6+
7+
## I'm submitting a...
8+
<!-- Check one of the following options with "x" -->
9+
<pre><code>
10+
[ ] Regression (a behavior that used to work and stopped working in a new release)
11+
[ ] Bug report <!-- Please search GitHub for a similar issue or PR before submitting -->
12+
[ ] Performance issue
13+
[ ] Feature request
14+
[ ] Documentation issue or request
15+
[ ] Other... Please describe:
16+
</code></pre>
17+
18+
## Current behavior
19+
<!-- Describe how the issue manifests. -->
20+
21+
22+
## Expected behavior
23+
<!-- Describe what the desired behavior would be. -->
24+
25+
26+
## Minimal reproduction of the problem with instructions
27+
28+
<!--
29+
For bug reports please provide the *STEPS TO REPRODUCE* and if possible a *MINIMAL DEMO* of the problem via
30+
31+
* Step 1
32+
* Step 2
33+
* Step 3
34+
35+
-->
36+
37+
## What is the motivation / use case for changing the behavior?
38+
<!-- Describe the motivation or the concrete use case. -->
39+
40+
41+
## Environment
42+
43+
<pre><code>
44+
Libs:
45+
- react version: X.Y.Z
46+
- realayers version: X.Y.Z
47+
<!-- Check whether this is still an issue in the most recent React version -->
48+
49+
Browser:
50+
- [ ] Chrome (desktop) version XX
51+
- [ ] Chrome (Android) version XX
52+
- [ ] Chrome (iOS) version XX
53+
- [ ] Firefox version XX
54+
- [ ] Safari (desktop) version XX
55+
- [ ] Safari (iOS) version XX
56+
- [ ] IE version XX
57+
- [ ] Edge version XX
58+
59+
For Tooling issues:
60+
- Node version: XX <!-- run `node --version` -->
61+
- Platform: <!-- Mac, Linux, Windows -->
62+
63+
Others:
64+
<!-- Anything else relevant? Operating system version, IDE, package manager, HTTP server, ... -->
65+
</code></pre>

.github/PULL_REQUEST_TEMPLATE.md

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
## PR Checklist
2+
Please check if your PR fulfills the following requirements:
3+
4+
- [ ] Tests for the changes have been added (for bug fixes / features)
5+
- [ ] Docs have been added / updated (for bug fixes / features)
6+
7+
## PR Type
8+
What kind of change does this PR introduce?
9+
10+
<!-- Please check the one that applies to this PR using "x". -->
11+
```
12+
[ ] Bugfix
13+
[ ] Feature
14+
[ ] Code style update (formatting, local variables)
15+
[ ] Refactoring (no functional changes, no api changes)
16+
[ ] Build related changes
17+
[ ] CI related changes
18+
[ ] Documentation content changes
19+
[ ] Other... Please describe:
20+
```
21+
22+
## What is the current behavior?
23+
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->
24+
25+
Issue Number: N/A
26+
27+
28+
## What is the new behavior?
29+
30+
31+
## Does this PR introduce a breaking change?
32+
```
33+
[ ] Yes
34+
[ ] No
35+
```
36+
37+
<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. -->
38+
39+
40+
## Other information

.github/stale.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Number of days of inactivity before an issue becomes stale
2+
daysUntilStale: 30
3+
# Number of days of inactivity before a stale issue is closed
4+
daysUntilClose: 7
5+
# Issues with these labels will never be considered stale
6+
exemptLabels:
7+
- pinned
8+
- security
9+
# Label to use when marking an issue as stale
10+
staleLabel: wontfix
11+
# Comment to post when marking an issue as stale. Set to `false` to disable
12+
markComment: >
13+
This issue has been automatically marked as stale because it has not had
14+
recent activity. It will be closed if no further activity occurs. Thank you
15+
for your contributions.
16+
# Comment to post when closing a stale issue. Set to `false` to disable
17+
closeComment: false

.github/workflows/build.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Use Node.js 12.x
21+
uses: actions/setup-node@v1
22+
with:
23+
version: 12.x
24+
25+
- name: Install deps and build (with cache)
26+
uses: bahmutov/npm-install@v1
27+
28+
- name: Lint
29+
run: yarn lint
30+
31+
- name: Build Prod
32+
run: yarn build
33+
34+
- name: Build Storybook
35+
run: yarn build-storybook

.github/workflows/release.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
if: github.repository == 'reaviz/reaflow'
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Use Node.js 12.x
19+
uses: actions/setup-node@v1
20+
with:
21+
version: 12.x
22+
23+
- name: Install deps and build (with cache)
24+
uses: bahmutov/npm-install@v1
25+
26+
- name: Build Storybook
27+
run: yarn build-storybook
28+
29+
- name: Publish Chromatic
30+
run: yarn chromatic
31+
32+
- name: Copy Domain
33+
run: yarn copy
34+
35+
- name: Publish Storybook to GH Pages
36+
if: success()
37+
uses: crazy-max/ghaction-github-pages@v2
38+
with:
39+
target_branch: gh-pages
40+
build_dir: storybook-static
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

+11-44
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ logs
44
npm-debug.log*
55
yarn-debug.log*
66
yarn-error.log*
7-
lerna-debug.log*
8-
9-
# Diagnostic reports (https://nodejs.org/api/report.html)
10-
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
7+
pkg/
8+
.rpt2_cache/
9+
dist/
10+
storybook-static/
1111

1212
# Runtime data
1313
pids
@@ -20,12 +20,11 @@ lib-cov
2020

2121
# Coverage directory used by tools like istanbul
2222
coverage
23-
*.lcov
2423

2524
# nyc test coverage
2625
.nyc_output
2726

28-
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
27+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
2928
.grunt
3029

3130
# Bower dependency directory (https://bower.io/)
@@ -44,21 +43,12 @@ jspm_packages/
4443
# TypeScript v1 declaration files
4544
typings/
4645

47-
# TypeScript cache
48-
*.tsbuildinfo
49-
5046
# Optional npm cache directory
5147
.npm
5248

5349
# Optional eslint cache
5450
.eslintcache
5551

56-
# Microbundle cache
57-
.rpt2_cache/
58-
.rts2_cache_cjs/
59-
.rts2_cache_es/
60-
.rts2_cache_umd/
61-
6252
# Optional REPL history
6353
.node_repl_history
6454

@@ -70,35 +60,12 @@ typings/
7060

7161
# dotenv environment variables file
7262
.env
73-
.env.test
74-
75-
# parcel-bundler cache (https://parceljs.org/)
76-
.cache
7763

78-
# Next.js build output
64+
# next.js build output
7965
.next
66+
.DS_Store
67+
src/**/*.scss.d.ts
68+
src/**/*.css.d.ts
8069

81-
# Nuxt.js build / generate output
82-
.nuxt
83-
dist
84-
85-
# Gatsby files
86-
.cache/
87-
# Comment in the public line in if your project uses Gatsby and *not* Next.js
88-
# https://nextjs.org/blog/next-9-1#public-directory-support
89-
# public
90-
91-
# vuepress build output
92-
.vuepress/dist
93-
94-
# Serverless directories
95-
.serverless/
96-
97-
# FuseBox cache
98-
.fusebox/
99-
100-
# DynamoDB Local files
101-
.dynamodb/
102-
103-
# TernJS port file
104-
.tern-port
70+
# IDE
71+
.idea

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn lint-staged

.prettierrc

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# https://github.com/prettier/prettier#configuration-file
2+
semi: true
3+
singleQuote: true
4+
trailingComma: none
5+
overrides:
6+
- files: ".prettierrc"
7+
options:
8+
parser: json

0 commit comments

Comments
 (0)