Skip to content

Commit f906fde

Browse files
committed
Project setup
1 parent 36cc6cd commit f906fde

14 files changed

+15652
-0
lines changed

.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
SENTRY_DSN=
2+
SENTRY_ENVIRONMENT=

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/node_modules

.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "@pod-point/eslint-config-podpoint-react"
3+
}

.gitignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
.env
3+
4+
# dependencies
5+
/.docz
6+
/node_modules
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
14+
# misc
15+
.DS_Store
16+
17+
npm-debug.log*
18+
yarn-debug.log*
19+
yarn-error.log*

.travis.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
language: node_js
2+
3+
node_js:
4+
- 8
5+
6+
before_install:
7+
- npm install -g yarn
8+
9+
install:
10+
- yarn
11+
12+
cache:
13+
yarn: true
14+
directories:
15+
- "node_modules"
16+
17+
branches:
18+
except:
19+
- staging
20+
21+
sudo: false
22+
23+
script:
24+
- npm run lint
25+
26+
after_success:
27+
- bash <(curl -s https://codecov.io/bash)

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Getting Started

package.json

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"name": "react-dom-components",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"tailwind:watch": "postcss src/styles/styles.css -o src/styles/output.css -w",
7+
"tailwind:build": "postcss src/styles/styles.css -o src/styles/output.css",
8+
"lint": "./node_modules/.bin/eslint src",
9+
"coverage": "react-scripts test --coverage --runInBand",
10+
"start": "react-scripts start",
11+
"build": "react-scripts build",
12+
"test": "react-scripts test",
13+
"eject": "react-scripts eject",
14+
"docz:dev": "docz dev",
15+
"docz:build": "docz build"
16+
},
17+
"eslintConfig": {
18+
"extends": "react-app"
19+
},
20+
"browserslist": {
21+
"production": [
22+
">0.2%",
23+
"not dead",
24+
"not op_mini all"
25+
],
26+
"development": [
27+
"last 1 chrome version",
28+
"last 1 firefox version",
29+
"last 1 safari version"
30+
]
31+
},
32+
"dependencies": {
33+
"@sentry/browser": "^5.6.3",
34+
"@tailwindcss/custom-forms": "^0.2.0",
35+
"@types/classnames": "^2.2.9",
36+
"@types/jest": "^24.0.18",
37+
"@types/lodash": "^4.14.141",
38+
"@types/node": "^12.7.3",
39+
"@types/react": "^16.9.2",
40+
"@types/react-dom": "^16.9.0",
41+
"classnames": "^2.2.6",
42+
"lodash": "^4.17.15",
43+
"postcss-import": "^12.0.1",
44+
"react": "^16.9.0",
45+
"react-dom": "^16.9.0",
46+
"tailwindcss": "^1.1.2",
47+
"typescript": "^3.6.2",
48+
"react-scripts": "3.1.2",
49+
"docz-core": "0.11.2",
50+
"docz-plugin-css": "0.11.0",
51+
"webpack": "4.40.2"
52+
},
53+
"devDependencies": {
54+
"@pod-point/eslint-config-podpoint-base": "pod-point/eslint-config-podpoint-base",
55+
"@pod-point/eslint-config-podpoint-react": "pod-point/eslint-config-podpoint-react",
56+
"docz": "^1.2.0",
57+
"docz-theme-default": "^1.2.0",
58+
"eslint": "^6.3.0",
59+
"eslint-config-airbnb": "^18.0.1",
60+
"eslint-plugin-import": "^2.18.2",
61+
"eslint-plugin-jsx-a11y": "^6.2.3",
62+
"eslint-plugin-react": "^7.14.3",
63+
"postcss-cli": "^6.1.3",
64+
"react-hot-loader": "^4.12.11",
65+
"stylelint-config-recommended": "^2.2.0"
66+
}
67+
}

src/App.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import React from 'react';
2+
3+
function App() {
4+
return (
5+
<div className="App">App</div>
6+
);
7+
}
8+
9+
export default App;

src/index.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import React from 'react';
2+
import ReactDOM from 'react-dom';
3+
import * as Sentry from '@sentry/browser';
4+
import './styles/output.css';
5+
import App from './App';
6+
7+
Sentry.init({
8+
dsn: process.env.SENTRY_DSN,
9+
environment: process.env.SENTRY_ENVIRONMENT,
10+
});
11+
12+
ReactDOM.render(<App />, document.getElementById('root'));

src/react-app-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="react-scripts" />

tsconfig-for-declaration.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": "./tsconfig",
3+
"compilerOptions": {
4+
"emitDeclarationOnly": true,
5+
"isolatedModules": false,
6+
"declaration": true
7+
}
8+
}

tsconfig.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"compilerOptions": {
3+
"lib": [
4+
"es5",
5+
"es6",
6+
"dom"
7+
],
8+
"target": "es2015",
9+
"module": "esnext",
10+
"moduleResolution": "node",
11+
"outDir": "lib",
12+
"sourceMap": true,
13+
"resolveJsonModule": true,
14+
"esModuleInterop": true,
15+
"skipLibCheck": false,
16+
"noEmit": true,
17+
"jsx": "react",
18+
"allowJs": true,
19+
"allowSyntheticDefaultImports": true,
20+
"strict": true,
21+
"forceConsistentCasingInFileNames": true,
22+
"incremental": true,
23+
"isolatedModules": true
24+
},
25+
"include": [
26+
"src/**/*"
27+
],
28+
"exclude": [
29+
"**/__tests__"
30+
]
31+
}

tsconfig.production.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": "./tsconfig",
3+
"compilerOptions": {
4+
"sourceMap": true,
5+
"inlineSources": true,
6+
"sourceRoot": "/"
7+
}
8+
}

0 commit comments

Comments
 (0)