Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tobias Pickel
committed
Aug 18, 2018
1 parent
05282ed
commit 0d0237b
Showing
22 changed files
with
11,390 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# See https://help.github.com/ignore-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
registry=https://registry.npmjs.org/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import '@storybook/addon-knobs/register'; | ||
import 'storybook-addon-jsx/register'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { configure } from '@storybook/react'; | ||
import { setAddon, addDecorator } from '@storybook/react'; | ||
import JSXAddon from 'storybook-addon-jsx'; | ||
import { withKnobs, select } from '@storybook/addon-knobs/react'; | ||
addDecorator(withKnobs); | ||
setAddon(JSXAddon); | ||
|
||
// automatically import all files ending in *.stories.js | ||
const req = require.context('../src', true, /.stories.tsx$/); | ||
function loadStories() { | ||
require('./welcomeStory'); | ||
req.keys().forEach(filename => req(filename)); | ||
} | ||
|
||
configure(loadStories, module); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
const path = require('path'); | ||
const TSDocgenPlugin = require('react-docgen-typescript-webpack-plugin'); | ||
module.exports = (baseConfig, env, defaultConfig) => { | ||
defaultConfig.module.rules.push({ | ||
test: /\.(ts|tsx)$/, | ||
loader: require.resolve('awesome-typescript-loader'), | ||
}); | ||
defaultConfig.plugins.push(new TSDocgenPlugin()); | ||
defaultConfig.resolve.extensions.push('.ts', '.tsx'); | ||
return defaultConfig; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import React from 'react'; | ||
|
||
import { storiesOf } from '@storybook/react'; | ||
|
||
storiesOf('Welcome', module).addWithJSX('to your new Storybook🎊', () => ( | ||
<div>This is an example component</div> | ||
)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#Strichliste 2.0 ##React Redux Typescript |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
{ | ||
"name": "my-app", | ||
"version": "0.1.0", | ||
"private": true, | ||
"dependencies": { | ||
"emotion": "^9.2.5", | ||
"lodash": "^4.17.10", | ||
"react": "^16.4.2", | ||
"react-dom": "^16.4.2", | ||
"react-emotion": "^9.2.5", | ||
"react-intl": "^2.4.0", | ||
"react-redux": "^5.0.7", | ||
"react-router": "^4.3.1", | ||
"react-router-dom": "^4.3.1", | ||
"react-scripts-ts": "2.17.0", | ||
"redux": "^4.0.0", | ||
"redux-thunk": "^2.3.0" | ||
}, | ||
"scripts": { | ||
"start": "react-scripts-ts start", | ||
"storybook": "start-storybook -p 9001 -c .storybook", | ||
"build": "react-scripts-ts build", | ||
"test": "react-scripts-ts test --env=jsdom", | ||
"eject": "react-scripts-ts eject" | ||
}, | ||
"devDependencies": { | ||
"@storybook/addon-info": "^3.4.10", | ||
"@storybook/addon-knobs": "^3.4.10", | ||
"@storybook/react": "^4.0.0-alpha.3", | ||
"@types/fetch-mock": "^6.0.3", | ||
"@types/jest": "^23.3.1", | ||
"@types/lodash": "^4.14.116", | ||
"@types/node": "^10.7.1", | ||
"@types/react": "^16.4.11", | ||
"@types/react-dom": "^16.0.7", | ||
"@types/react-intl": "^2.3.9", | ||
"@types/react-redux": "^6.0.6", | ||
"@types/react-router": "^4.0.30", | ||
"@types/react-router-dom": "^4.2.4", | ||
"@types/redux-mock-store": "^1.0.0", | ||
"@types/storybook__addon-info": "^3.4.1", | ||
"@types/storybook__addon-knobs": "^3.4.1", | ||
"@types/storybook__react": "^3.0.9", | ||
"awesome-typescript-loader": "^5.2.0", | ||
"babel-core": "^6.26.3", | ||
"eslint": "^5.3.0", | ||
"husky": "^0.14.3", | ||
"jest": "^23.5.0", | ||
"lint-staged": "^7.2.2", | ||
"prettier": "^1.14.2", | ||
"react-docgen-typescript-webpack-plugin": "^1.1.0", | ||
"react-testing-library": "^5.0.0", | ||
"redux-mock-store": "^1.5.3", | ||
"storybook-addon-jsx": "^5.4.0", | ||
"ts-config": "^20.4.0", | ||
"ts-jest": "^23.1.3", | ||
"ts-lint": "^4.5.1", | ||
"typescript": "^3.0.1" | ||
}, | ||
"prettier": { | ||
"trailingComma": "es5", | ||
"proseWrap": "never", | ||
"singleQuote": true | ||
}, | ||
"jest": { | ||
"verbose": true, | ||
"testURL": "http://localhost/" | ||
}, | ||
"lint-staged": { | ||
"linters": { | ||
"*.js": [ | ||
"prettier --write", | ||
"git add" | ||
], | ||
"*.md": [ | ||
"prettier --prose-wrap always --write", | ||
"git add" | ||
], | ||
"*.{ts,tsx}": [ | ||
"prettier --write", | ||
"git add", | ||
"tslint --project tsconfig.json --config tslint.json" | ||
], | ||
"*.css": [ | ||
"prettier --write", | ||
"git add" | ||
] | ||
} | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "yarn test", | ||
"pre-push": "yarn test" | ||
} | ||
} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
<meta name="theme-color" content="#000000"> | ||
<!-- | ||
manifest.json provides metadata used when your web app is added to the | ||
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/ | ||
--> | ||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json"> | ||
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico"> | ||
<!-- | ||
Notice the use of %PUBLIC_URL% in the tags above. | ||
It will be replaced with the URL of the `public` folder during the build. | ||
Only files inside the `public` folder can be referenced from the HTML. | ||
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will | ||
work correctly both with client-side routing and a non-root public URL. | ||
Learn how to configure a non-root public URL by running `npm run build`. | ||
--> | ||
<title>React App</title> | ||
</head> | ||
<body> | ||
<noscript> | ||
You need to enable JavaScript to run this app. | ||
</noscript> | ||
<div id="root"></div> | ||
<!-- | ||
This HTML file is a template. | ||
If you open it directly in the browser, you will see an empty page. | ||
You can add webfonts, meta tags, or analytics to this file. | ||
The build step will place the bundled scripts into the <body> tag. | ||
To begin the development, run `npm start` or `yarn start`. | ||
To create a production bundle, use `npm run build` or `yarn build`. | ||
--> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"short_name": "React App", | ||
"name": "Create React App Sample", | ||
"icons": [ | ||
{ | ||
"src": "favicon.ico", | ||
"sizes": "64x64 32x32 24x24 16x16", | ||
"type": "image/x-icon" | ||
} | ||
], | ||
"start_url": "./index.html", | ||
"display": "standalone", | ||
"theme_color": "#000000", | ||
"background_color": "#ffffff" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import * as React from 'react'; | ||
import * as ReactDOM from 'react-dom'; | ||
// tslint:disable-next-line:file-name-casing | ||
import App from './app'; | ||
|
||
it('renders without crashing', () => { | ||
const div = document.createElement('div'); | ||
ReactDOM.render(<App />, div); | ||
}); |
Oops, something went wrong.