Skip to content

Commit acc958f

Browse files
committed
Initial commit
0 parents  commit acc958f

24 files changed

+119810
-0
lines changed

.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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*

.replit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
language = "nodejs"
2+
run = "yarn start"

README.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
2+
3+
## Running on Repl.it
4+
5+
Simply hit run once and start coding. Will hot reload the web view.
6+
7+
## Running Scripts
8+
9+
You can open a new shell window by hitting command+shift+S on macOS or control+shift+S (you can also access shortcuts from the `?` in the bottom right corner).
10+
11+
When in the shell you can run any of the following scripts:
12+
13+
### `yarn test`
14+
15+
Launches the test runner in the interactive watch mode.<br />
16+
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
17+
18+
### `yarn build`
19+
20+
Builds the app for production to the `build` folder.<br />
21+
It correctly bundles React in production mode and optimizes the build for the best performance.
22+
23+
The build is minified and the filenames include the hashes.<br />
24+
Your app is ready to be deployed!
25+
26+
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
27+
28+
### `yarn eject`
29+
30+
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
31+
32+
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
33+
34+
Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
35+
36+
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
37+
38+
## Learn More
39+
40+
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
41+
42+
To learn React, check out the [React documentation](https://reactjs.org/).
43+
44+
### Code Splitting
45+
46+
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
47+
48+
### Analyzing the Bundle Size
49+
50+
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
51+
52+
### Making a Progressive Web App
53+
54+
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
55+
56+
### Advanced Configuration
57+
58+
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
59+
60+
### Deployment
61+
62+
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
63+
64+
### `yarn build` fails to minify
65+
66+
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

craco.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const { POSTCSS_MODES } = require('@craco/craco');
2+
3+
module.exports = {
4+
style: {
5+
postcss: {
6+
mode: POSTCSS_MODES.file,
7+
},
8+
},
9+
};

package.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"name": "shot-clock",
3+
"version": "0.1.0",
4+
"private": true,
5+
"dependencies": {
6+
"@craco/craco": "^5.7.0",
7+
"@testing-library/jest-dom": "^4.2.4",
8+
"@testing-library/react": "^9.3.2",
9+
"@testing-library/user-event": "^7.1.2",
10+
"react": "^16.12.0",
11+
"react-dom": "^16.12.0",
12+
"react-scripts": "3.2.0",
13+
"tailwindcss": "^1.8.12",
14+
"typescript": "^4.0.3"
15+
},
16+
"scripts": {
17+
"start": "craco start",
18+
"build": "craco build",
19+
"test": "craco test",
20+
"build:css": "tailwindcss build src/tailwind.css -o src/global.css",
21+
"xprestart": "yarn build:css",
22+
"xprebuild": "NODE_ENV=production yarn build:css"
23+
},
24+
"eslintConfig": {
25+
"extends": "react-app"
26+
},
27+
"browserslist": {
28+
"production": [
29+
">0.2%",
30+
"not dead",
31+
"not op_mini all"
32+
],
33+
"development": [
34+
"last 1 chrome version",
35+
"last 1 firefox version",
36+
"last 1 safari version"
37+
]
38+
},
39+
"devDependencies": {
40+
"@types/react": "^16.9.51",
41+
"@types/react-dom": "^16.9.8"
42+
}
43+
}

postcss.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
}
7+

public/favicon.ico

3.78 KB
Binary file not shown.

public/index.html

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1" />
7+
<meta name="theme-color" content="#000000" />
8+
<meta
9+
name="description"
10+
content="Web site created using create-react-app"
11+
/>
12+
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
13+
<!--
14+
manifest.json provides metadata used when your web app is installed on a
15+
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
16+
-->
17+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
18+
<!--
19+
Notice the use of %PUBLIC_URL% in the tags above.
20+
It will be replaced with the URL of the `public` folder during the build.
21+
Only files inside the `public` folder can be referenced from the HTML.
22+
23+
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
24+
work correctly both with client-side routing and a non-root public URL.
25+
Learn how to configure a non-root public URL by running `npm run build`.
26+
-->
27+
<title>React App</title>
28+
</head>
29+
<body>
30+
<noscript>You need to enable JavaScript to run this app.</noscript>
31+
<div id="root"></div>
32+
<!--
33+
This HTML file is a template.
34+
If you open it directly in the browser, you will see an empty page.
35+
36+
You can add webfonts, meta tags, or analytics to this file.
37+
The build step will place the bundled scripts into the <body> tag.
38+
39+
To begin the development, run `npm start` or `yarn start`.
40+
To create a production bundle, use `npm run build` or `yarn build`.
41+
-->
42+
</body>
43+
</html>

public/logo192.png

5.22 KB
Loading

public/logo512.png

9.44 KB
Loading

0 commit comments

Comments
 (0)