Skip to content

Commit 6dfa37e

Browse files
committed
build(init): initial template commit
0 parents  commit 6dfa37e

37 files changed

Lines changed: 22358 additions & 0 deletions

.all-contributorsrc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"files": [
3+
"README.md"
4+
],
5+
"imageSize": 100,
6+
"commit": false,
7+
"contributors": [],
8+
"contributorsPerLine": 7,
9+
"projectName": "react-lib-template",
10+
"projectOwner": "RisingStack",
11+
"repoType": "github",
12+
"repoHost": "https://github.com",
13+
"skipCi": true,
14+
"badgeTemplate": "[![All Contributors](https://img.shields.io/badge/all_contributors-<%= contributors.length %>-blue.svg)](#contributors)"
15+
}

.circleci/config.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
version: 2
2+
jobs:
3+
test-and-build:
4+
working_directory: ~/repo
5+
docker:
6+
- image: circleci/node:12
7+
steps:
8+
- checkout
9+
- run: npm install
10+
- run: npm run lint
11+
# run the tests on the original source to get coverage info
12+
- run: npx commitlint --from HEAD~1 --to HEAD --verbose
13+
- run: npm test
14+
- run: npm run coveralls
15+
# test the final bundled builds
16+
- run: npm run build
17+
- run: npm run test-builds
18+
- persist_to_workspace:
19+
root: ~/repo
20+
paths: .
21+
22+
test-node-support:
23+
working_directory: ~/repo
24+
docker:
25+
- image: circleci/node:6
26+
steps:
27+
- attach_workspace:
28+
at: ~/repo
29+
# test the final build in Node 6 for platform support
30+
- run: npm run test-node-support
31+
32+
release:
33+
working_directory: ~/repo
34+
docker:
35+
- image: circleci/node:12
36+
steps:
37+
- attach_workspace:
38+
at: ~/repo
39+
# test the final bundled builds again right before release
40+
- run: npm run test-builds
41+
- run: npm run semantic-release
42+
43+
workflows:
44+
version: 2
45+
test_and_release:
46+
jobs:
47+
- test-and-build
48+
- test-node-support:
49+
requires:
50+
- test-and-build
51+
- release:
52+
requires:
53+
- test-node-support
54+
filters:
55+
branches:
56+
only: master

.eslintrc.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"parser": "babel-eslint",
3+
"extends": ["airbnb", "prettier"],
4+
"plugins": ["prettier"],
5+
"rules": {
6+
"prettier/prettier": ["error"],
7+
"import/prefer-default-export": "off",
8+
"import/no-extraneous-dependencies": "off",
9+
"import/no-mutable-exports": "off",
10+
"no-nested-ternary": "off",
11+
"no-param-reassign": "off",
12+
"func-names": "off",
13+
"max-classes-per-file": "off",
14+
"react/prefer-stateless-function": "off",
15+
"react/destructuring-assignment": "off",
16+
"react/state-in-constructor": "off",
17+
"react/jsx-props-no-spreading": "off",
18+
"react/prop-types": "off",
19+
"react/jsx-one-expression-per-line": "off"
20+
},
21+
"globals": {
22+
"window": true,
23+
"EventTarget": true,
24+
"WebSocket": true,
25+
"describe": true,
26+
"afterAll": true,
27+
"test": true,
28+
"expect": true,
29+
"afterEach": true,
30+
"document": true,
31+
"jest": true,
32+
"Event": true
33+
}
34+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
---**React Lib version:** x.x.x
8+
**Platform:** browser / node / react-native / other
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
---
14+
15+
### For tougher bugs
16+
17+
**To Reproduce**
18+
Steps to reproduce the behavior.
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is.
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered or seen elsewhere**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context about the feature request here.

.github/pull_request_template.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Resolves #
2+
3+
Proposed changes:
4+
-
5+
-
6+
7+
Please follow the [angular commit message format](https://github.com/angular/angular/blob/master/CONTRIBUTING.md#-commit-message-guidelines). Example: `docs(readme): fix title typo`

.gitignore

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

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
README.md

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"semi": true,
3+
"trailingComma": "all",
4+
"singleQuote": true,
5+
"printWidth": 70,
6+
"arrowParens": "always"
7+
}

.vscode/settings.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"files.insertFinalNewline": true,
3+
"files.trimFinalNewlines": true,
4+
"editor.defaultFormatter": "esbenp.prettier-vscode",
5+
"editor.formatOnSave": true
6+
}

0 commit comments

Comments
 (0)