Skip to content

Commit 5cd6f3b

Browse files
committed
CREATE: ReactJS base project;
0 parents  commit 5cd6f3b

File tree

13 files changed

+8997
-0
lines changed

13 files changed

+8997
-0
lines changed

.gitignore

Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
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+
### Node template
25+
# Logs
26+
logs
27+
*.log
28+
npm-debug.log*
29+
yarn-debug.log*
30+
yarn-error.log*
31+
lerna-debug.log*
32+
33+
# Diagnostic reports (https://nodejs.org/api/report.html)
34+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
35+
36+
# Runtime data
37+
pids
38+
*.pid
39+
*.seed
40+
*.pid.lock
41+
42+
# Directory for instrumented libs generated by jscoverage/JSCover
43+
lib-cov
44+
45+
# Coverage directory used by tools like istanbul
46+
coverage
47+
*.lcov
48+
49+
# nyc test coverage
50+
.nyc_output
51+
52+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
53+
.grunt
54+
55+
# Bower dependency directory (https://bower.io/)
56+
bower_components
57+
58+
# node-waf configuration
59+
.lock-wscript
60+
61+
# Compiled binary addons (https://nodejs.org/api/addons.html)
62+
build/Release
63+
64+
# Dependency directories
65+
node_modules/
66+
jspm_packages/
67+
68+
# Snowpack dependency directory (https://snowpack.dev/)
69+
web_modules/
70+
71+
# TypeScript cache
72+
*.tsbuildinfo
73+
74+
# Optional npm cache directory
75+
.npm
76+
77+
# Optional eslint cache
78+
.eslintcache
79+
80+
# Microbundle cache
81+
.rpt2_cache/
82+
.rts2_cache_cjs/
83+
.rts2_cache_es/
84+
.rts2_cache_umd/
85+
86+
# Optional REPL history
87+
.node_repl_history
88+
89+
# Output of 'npm pack'
90+
*.tgz
91+
92+
# Yarn Integrity file
93+
.yarn-integrity
94+
95+
# dotenv environment variables file
96+
.env
97+
.env.test
98+
99+
# parcel-bundler cache (https://parceljs.org/)
100+
.cache
101+
.parcel-cache
102+
103+
# Next.js build output
104+
.next
105+
out
106+
107+
# Nuxt.js build / generate output
108+
.nuxt
109+
dist
110+
111+
# Gatsby files
112+
.cache/
113+
# Comment in the public line in if your project uses Gatsby and not Next.js
114+
# https://nextjs.org/blog/next-9-1#public-directory-support
115+
# public
116+
117+
# vuepress build output
118+
.vuepress/dist
119+
120+
# Serverless directories
121+
.serverless/
122+
123+
# FuseBox cache
124+
.fusebox/
125+
126+
# DynamoDB Local files
127+
.dynamodb/
128+
129+
# TernJS port file
130+
.tern-port
131+
132+
# Stores VSCode versions used for testing VSCode extensions
133+
.vscode-test
134+
135+
# yarn v2
136+
.yarn/cache
137+
.yarn/unplugged
138+
.yarn/build-state.yml
139+
.yarn/install-state.gz
140+
.pnp.*
141+

README.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Getting Started with Create React App
2+
3+
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
4+
5+
## Available Scripts
6+
7+
In the project directory, you can run:
8+
9+
### `yarn start`
10+
11+
Runs the app in the development mode.\
12+
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
13+
14+
The page will reload if you make edits.\
15+
You will also see any lint errors in the console.
16+
17+
### `yarn test`
18+
19+
Launches the test runner in the interactive watch mode.\
20+
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21+
22+
### `yarn build`
23+
24+
Builds the app for production to the `build` folder.\
25+
It correctly bundles React in production mode and optimizes the build for the best performance.
26+
27+
The build is minified and the filenames include the hashes.\
28+
Your app is ready to be deployed!
29+
30+
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31+
32+
### `yarn eject`
33+
34+
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
35+
36+
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.
37+
38+
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.
39+
40+
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.
41+
42+
## Learn More
43+
44+
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45+
46+
To learn React, check out the [React documentation](https://reactjs.org/).

package.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "reactjs-typescript-cypress-storybook-eslint-prettier-tailwindcss",
3+
"scripts": {
4+
"start": "react-scripts start",
5+
"build": "react-scripts build",
6+
"eject": "react-scripts eject",
7+
},
8+
"dependencies": {
9+
"react": "^17.0.2",
10+
"react-dom": "^17.0.2",
11+
"react-scripts": "5.0.0",
12+
"web-vitals": "^2.1.0"
13+
},
14+
"devDependencies": {
15+
"@types/node": "^17.0.9",
16+
"@types/react": "^17.0.38",
17+
"@types/react-dom": "^17.0.11",
18+
"typescript": "^4.5.4",
19+
"webpack": "^5.66.0"
20+
},
21+
"eslintConfig": {
22+
},
23+
"browserslist": {
24+
"production": [
25+
">0.2%",
26+
"not dead",
27+
"not op_mini all"
28+
],
29+
"development": [
30+
"last 1 chrome version",
31+
"last 1 firefox version",
32+
"last 1 safari version"
33+
]
34+
}
35+
}

public/favicon.ico

3.78 KB
Binary file not shown.

public/index.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html lang='en'>
3+
<head>
4+
<meta charset='utf-8' />
5+
<meta content='width=device-width, initial-scale=1' name='viewport' />
6+
<meta content='#b7894f' name='theme-color' />
7+
<meta
8+
content='Web site created using create-react-app'
9+
name='description'
10+
/>
11+
<link href='%PUBLIC_URL%/favicon.ico' rel='icon' />
12+
<link href='%PUBLIC_URL%/logo192.png' rel='apple-touch-icon' />
13+
<!--<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />-->
14+
<title>HotelSweetDreams</title>
15+
</head>
16+
<body id='root'></body>
17+
</html>

public/manifest.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"short_name": "React App",
3+
"name": "Create React App Sample",
4+
"icons": [
5+
{
6+
"src": "favicon.ico",
7+
"sizes": "64x64 32x32 24x24 16x16",
8+
"type": "image/x-icon"
9+
},
10+
{
11+
"src": "logo192.png",
12+
"type": "image/png",
13+
"sizes": "192x192"
14+
},
15+
{
16+
"src": "logo512.png",
17+
"type": "image/png",
18+
"sizes": "512x512"
19+
}
20+
],
21+
"start_url": ".",
22+
"display": "standalone",
23+
"theme_color": "#000000",
24+
"background_color": "#ffffff"
25+
}

public/robots.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# https://www.robotstxt.org/robotstxt.html
2+
User-agent: *
3+
Disallow:

src/App.tsx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import React from 'react';
2+
3+
function App() {
4+
return (
5+
<div className="App">
6+
<header className="App-header">
7+
8+
<p>
9+
Edit <code>src/App.tsx</code> and save to reload.
10+
</p>
11+
<a
12+
className="App-link"
13+
href="https://reactjs.org"
14+
target="_blank"
15+
rel="noopener noreferrer"
16+
>
17+
Learn React
18+
</a>
19+
</header>
20+
</div>
21+
);
22+
}
23+
24+
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 { StrictMode } from 'react'
2+
import ReactDOM from 'react-dom'
3+
4+
import App from './App'
5+
import './styles/base/_base.css'
6+
7+
ReactDOM.render(
8+
<StrictMode>
9+
<App />
10+
</StrictMode>,
11+
document.getElementById('root')
12+
)

src/styles/base/_base.css

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

0 commit comments

Comments
 (0)