Skip to content
This repository was archived by the owner on Nov 23, 2021. It is now read-only.

Commit 8a28fff

Browse files
committed
scaffolding
0 parents  commit 8a28fff

14 files changed

+12242
-0
lines changed

.gitignore

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
14+
# misc
15+
.DS_Store
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*
24+
.idea
25+
dist
26+
.out

.storybook/addons.ts

Whitespace-only changes.

.storybook/config.ts

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { configure } from '@storybook/react';
2+
3+
const req = require.context('../src', true, /\.stories\.tsx$/);
4+
5+
function stories() {
6+
req.keys().forEach(req);
7+
}
8+
9+
configure(stories, module);

.storybook/preview-head.html

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<style type="text/css">
2+
body {
3+
margin: 0;
4+
padding: 0;
5+
}
6+
</style>

.storybook/webpack.config.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = ({ config, mode }) => {
2+
config.module.rules.push({
3+
test: /\.(ts|tsx)$/,
4+
loader: require.resolve('babel-loader'),
5+
options: {
6+
presets: [['react-app', { flow: false, typescript: true }]],
7+
},
8+
});
9+
10+
config.resolve.extensions.push('.ts', '.tsx');
11+
12+
return config;
13+
};

LICENSE

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
The BSD 3-Clause License
2+
3+
Copyright © 2019 Broad Institute, Inc. All rights reserved.
4+
5+
Redistribution and use in source and binary forms, with or without
6+
modification, are permitted provided that the following conditions are met:
7+
8+
1. Redistributions of source code must retain the above copyright notice,
9+
this list of conditions and the following disclaimer.
10+
11+
2. Redistributions in binary form must reproduce the above copyright
12+
notice, this list of conditions and the following disclaimer in the
13+
documentation and/or other materials provided with the distribution.
14+
15+
3. Neither the name of the Broad Institute, Inc. nor the names of its
16+
contributors may be used to endorse or promote products derived from
17+
this software without specific prior written permission.
18+
19+
THIS SOFTWARE IS PROVIDED “AS IS.” BROAD MAKES NO EXPRESS OR IMPLIED
20+
REPRESENTATIONS OR WARRANTIES OF ANY KIND REGARDING THE SOFTWARE AND
21+
COPYRIGHT, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY,
22+
FITNESS FOR A PARTICULAR PURPOSE, CONFORMITY WITH ANY DOCUMENTATION,
23+
NON-INFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, WHETHER OR NOT
24+
DISCOVERABLE. IN NO EVENT SHALL BROAD, THE COPYRIGHT HOLDERS, OR CONTRIBUTORS
25+
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO PROCUREMENT OF SUBSTITUTE
27+
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28+
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29+
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
30+
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF, HAVE REASON TO KNOW, OR IN
31+
FACT SHALL KNOW OF THE POSSIBILITY OF SUCH DAMAGE.
32+
33+
If, by operation of law or otherwise, any of the aforementioned warranty
34+
disclaimers are determined inapplicable, your sole remedy, regardless of the
35+
form of action, including, but not limited to, negligence and strict
36+
liability, shall be replacement of the software with an updated version if one
37+
exists.

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# @piximi/fit-classifier-dialog
2+
3+
Piximi’s `FitClassifierDialog` component
4+
5+
## Installation
6+
7+
```sh
8+
yarn add @piximi/fit-classifier-dialog
9+
```

index.d.ts

Whitespace-only changes.

package.json

+120
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
{
2+
"babel": {
3+
"presets": [
4+
"@babel/preset-env",
5+
"@babel/preset-react",
6+
"@babel/preset-typescript"
7+
]
8+
},
9+
"bugs": {
10+
"url": "https://github.com/piximi/fit-classifier-dialog/issues"
11+
},
12+
"dependencies": {
13+
"@emotion/styled": "^10.0.23",
14+
"@material-ui/core": "4.5.1",
15+
"@material-ui/icons": "4.5.1",
16+
"@material-ui/styles": "4.5.0",
17+
"@material-ui/system": "^4.5.2",
18+
"@piximi/components": "^0.1.18",
19+
"@piximi/hooks": "^0.1.11",
20+
"@piximi/image-dialog": "^1.0.3",
21+
"@piximi/store": "^0.1.23",
22+
"image-js": "^0.21.8",
23+
"prettier": "^1.18.2",
24+
"react": "^16.8.6",
25+
"react-dom": "^16.8.6",
26+
"react-lazyload": "^2.6.5",
27+
"react-redux": "^7.1.3",
28+
"react-three-fiber": "^3.0.11",
29+
"react-virtualized": "^9.21.2",
30+
"react-vis": "^1.11.7",
31+
"three": "^0.110.0"
32+
},
33+
"description": "Piximi’s FitClassifierDialog component",
34+
"devDependencies": {
35+
"@babel/preset-env": "^7.4.5",
36+
"@babel/preset-react": "^7.0.0",
37+
"@babel/preset-typescript": "^7.3.3",
38+
"@piximi/types": "^0.1.8",
39+
"@storybook/addon-actions": "^5.0.11",
40+
"@storybook/addon-links": "^5.0.11",
41+
"@storybook/addons": "^5.0.11",
42+
"@storybook/react": "^5.0.11",
43+
"@storybook/storybook-deployer": "^2.8.1",
44+
"@types/classnames": "^2.2.8",
45+
"@types/color": "^3.0.0",
46+
"@types/enzyme": "^3.9.1",
47+
"@types/enzyme-adapter-react-16": "^1.0.5",
48+
"@types/file-saver": "^2.0.1",
49+
"@types/jest": "^24.0.12",
50+
"@types/lodash": "^4.14.134",
51+
"@types/node": "^12.0.0",
52+
"@types/react": "^16.8.17",
53+
"@types/react-color": "^3.0.0",
54+
"@types/react-dom": "^16.8.4",
55+
"@types/react-lazyload": "^2.6.0",
56+
"@types/react-redux": "^7.1.0",
57+
"@types/react-virtualized": "^9.21.5",
58+
"@types/storybook__react": "^4.0.2",
59+
"@types/styled-components": "^4.1.16",
60+
"@types/uuid": "^3.4.4",
61+
"@types/victory": "^33.0.0",
62+
"babel-loader": "^8.0.6",
63+
"enzyme": "^3.9.0",
64+
"enzyme-adapter-react-16": "^1.13.0",
65+
"husky": "^2.4.1",
66+
"jest": "^24.8.0",
67+
"jest-enzyme": "^7.0.2",
68+
"lint-staged": "^8.2.1",
69+
"react-vis-types": "^0.0.3",
70+
"ts-jest": "^24.0.2",
71+
"typescript": "^3.7.2"
72+
},
73+
"eslintConfig": {
74+
"extends": "react-app"
75+
},
76+
"files": [
77+
"dist"
78+
],
79+
"husky": {
80+
"hooks": {
81+
"pre-commit": "lint-staged"
82+
}
83+
},
84+
"jest": {
85+
"preset": "ts-jest",
86+
"setupFilesAfterEnv": [
87+
"./src/setupTests.ts"
88+
],
89+
"testEnvironment": "node",
90+
"transformIgnorePatterns": [
91+
"/node_modules/react-dnd"
92+
]
93+
},
94+
"license": "MIT",
95+
"lint-staged": {
96+
"src/**/*.{ts,tsx}": [
97+
"prettier --single-quote --write",
98+
"git add"
99+
]
100+
},
101+
"main": "./dist/index.js",
102+
"name": "@piximi/fit-classifier-dialog",
103+
"private": false,
104+
"publishConfig": {
105+
"access": "public"
106+
},
107+
"repository": {
108+
"type": "git",
109+
"url": "https://github.com/piximi/fit-classifier-dialog.git"
110+
},
111+
"scripts": {
112+
"build": "rm -rf ./dist && tsc -p ./tsconfig.json",
113+
"precommit": "lint-staged",
114+
"test": "jest",
115+
"storybook": "start-storybook -p 9009"
116+
},
117+
"sideEffects": false,
118+
"types": "./dist/index.d.ts",
119+
"version": "1.0.3"
120+
}

src/index.ts

Whitespace-only changes.

src/react-app-env.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="react-scripts" />

src/setupTests.ts

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { configure, EnzymeAdapter } from 'enzyme';
2+
import Adapter from 'enzyme-adapter-react-16';
3+
import 'jest-enzyme';
4+
5+
type Options = {
6+
adapter: EnzymeAdapter;
7+
};
8+
9+
const options: Options = {
10+
adapter: new Adapter()
11+
};
12+
13+
configure(options);

tsconfig.json

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"compilerOptions": {
3+
"allowJs": false,
4+
"allowSyntheticDefaultImports": true,
5+
"baseUrl": "./",
6+
"declaration": true,
7+
"esModuleInterop": true,
8+
"forceConsistentCasingInFileNames": true,
9+
"isolatedModules": false,
10+
"jsx": "react",
11+
"lib": [
12+
"dom",
13+
"es7"
14+
],
15+
"module": "commonjs",
16+
"moduleResolution": "node",
17+
"noErrorTruncation": true,
18+
"outDir": "./dist",
19+
"skipLibCheck": true,
20+
"sourceMap": true,
21+
"strict": true,
22+
"target": "es6"
23+
},
24+
"exclude": [
25+
"src/**/*.stories.tsx",
26+
"src/**/*.test.tsx",
27+
"src/setupTests.ts"
28+
],
29+
"include": [
30+
"src/**/*.ts",
31+
"src/**/*.tsx"
32+
]
33+
}

0 commit comments

Comments
 (0)