-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- will recursively generate output directory if it doesn't exist - bundles font-awesome with output - adds storybook
- Loading branch information
1 parent
bb0ee99
commit a54ca83
Showing
36 changed files
with
5,853 additions
and
193 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
node_modules | ||
src | ||
coverage | ||
docs |
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 |
---|---|---|
@@ -1,7 +1,29 @@ | ||
{ | ||
"extends": "eslint:recommended", | ||
"env": { | ||
"es6": true, | ||
"node": true | ||
} | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:react/recommended" | ||
], | ||
"globals": { | ||
"config": true, | ||
"report": true | ||
}, | ||
"env": { | ||
"es6": true, | ||
"node": true, | ||
"browser": true | ||
}, | ||
"rules": { | ||
"react/prop-types": 0, | ||
"react/jsx-key": 0 | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"sourceType": "module", | ||
"ecmaFeatures": { | ||
"jsx": true | ||
} | ||
}, | ||
"plugins": [ | ||
"react" | ||
] | ||
} |
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 @@ | ||
import '../src/style.css'; | ||
import 'font-awesome/css/font-awesome.css'; | ||
import 'psychic-ui/dist/psychic-min.css'; | ||
|
||
import { configure } from '@storybook/react'; | ||
|
||
function loadStories() { | ||
require('../stories'); | ||
} | ||
|
||
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,27 @@ | ||
module.exports = { | ||
plugins: [], | ||
module: { | ||
rules: [{ | ||
test: /\.css$/, | ||
use: [{ | ||
loader: "style-loader" | ||
}, | ||
{ | ||
loader: "css-loader" | ||
} | ||
] | ||
}, { | ||
test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, | ||
use: [{ | ||
loader: "url-loader?limit=10000&mimetype=application/font-woff" | ||
}] | ||
}, | ||
{ | ||
test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/, | ||
use: [{ | ||
loader: "file-loader" | ||
}] | ||
} | ||
] | ||
} | ||
}; |
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
2,671 changes: 2,671 additions & 0 deletions
2,671
docs/example/912ec66d7572ff821749319396470bde.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
2,671 changes: 2,671 additions & 0 deletions
2,671
docs/storybook/912ec66d7572ff821749319396470bde.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,23 @@ | ||
|
||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<base target="_parent"> | ||
<script> | ||
if (window.parent !== window) { | ||
window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__; | ||
} | ||
</script> | ||
<title>Storybook</title> | ||
|
||
|
||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<div id="error-display"></div> | ||
<script src="static/preview.81e78ba2fb3159f5c441.bundle.js"></script> | ||
</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,46 @@ | ||
|
||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta name="storybook-version" content="3.2.8"> | ||
<meta content="IE=edge" http-equiv="X-UA-Compatible" /> | ||
<title>Storybook</title> | ||
<style> | ||
/* | ||
When resizing panels, the drag event breaks if the cursor | ||
moves over the iframe. Add the 'dragging' class to the body | ||
at drag start and remove it when the drag ends. | ||
*/ | ||
.dragging iframe { | ||
pointer-events: none; | ||
} | ||
|
||
/* Styling the fuzzy search box placeholders */ | ||
.searchBox::-webkit-input-placeholder { /* Chrome/Opera/Safari */ | ||
color: #ddd; | ||
font-size: 16px; | ||
} | ||
|
||
.searchBox::-moz-placeholder { /* Firefox 19+ */ | ||
color: #ddd; | ||
font-size: 16px; | ||
} | ||
|
||
.searchBox:focus{ | ||
border-color: #EEE !important; | ||
} | ||
|
||
.btn:hover{ | ||
background-color: #eee | ||
} | ||
</style> | ||
|
||
</head> | ||
<body style="margin: 0;"> | ||
<div id="root"></div> | ||
<script src="static/manager.ea32815e8d91d93bc7b0.bundle.js"></script> | ||
</body> | ||
</html> | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "tap-html", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "📊 an html tap reporter", | ||
"author": "Gabriel J. Csapo <[email protected]>", | ||
"license": "ISC", | ||
|
@@ -15,8 +15,10 @@ | |
"main": "index.js", | ||
"scripts": { | ||
"lint": "eslint .", | ||
"test": "tape test/index.js | ./bin/index.js --out ./docs/index.html", | ||
"coverage": "tap test --coverage --coverage-report=lcov" | ||
"test": "tape test/index.js | ./bin/index.js --out ./docs/example/index.html", | ||
"coverage": "tap test --coverage --coverage-report=lcov", | ||
"storybook": "start-storybook -p 6006", | ||
"build-storybook": "build-storybook --output-dir=./docs/storybook" | ||
}, | ||
"bin": { | ||
"tap-html": "./bin/index.js" | ||
|
@@ -29,6 +31,7 @@ | |
"commander": "^2.11.0", | ||
"css-loader": "^0.28.4", | ||
"duplexer": "^0.1.1", | ||
"file-loader": "^0.11.2", | ||
"html-webpack-inline-source-plugin": "0.0.9", | ||
"html-webpack-plugin": "^2.29.0", | ||
"memory-fs": "^0.4.1", | ||
|
@@ -39,10 +42,14 @@ | |
"style-loader": "^0.18.2", | ||
"tap-parser": "^6.0.1", | ||
"through2": "^2.0.3", | ||
"webpack": "^3.0.0" | ||
"url-loader": "^0.5.9", | ||
"webpack": "^3.6.0" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^4.0.0", | ||
"@storybook/react": "^3.2.8", | ||
"eslint": "^4.7.0", | ||
"eslint-plugin-react": "^7.3.0", | ||
"font-awesome": "^4.7.0", | ||
"tap": "^10.7.2", | ||
"tape": "^4.6.3" | ||
} | ||
|
Oops, something went wrong.