Skip to content
This repository was archived by the owner on May 28, 2024. It is now read-only.

Commit a2f37d6

Browse files
authored
chore(hosting): move hosting files (#42)
* chore(hosting): move hosting dir * chore(vscode): move vscode settings to hosting dir * chore(config): add root configs * chore(firebase): change public dir * chore(h: scripts): add deploy script
1 parent 451f944 commit a2f37d6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+204
-43
lines changed

.gitignore

+18-38
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,6 @@
1-
ads.txt
21

3-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
4-
5-
# dependencies
6-
/node_modules
7-
/.pnp
8-
.pnp.js
9-
10-
# testing
11-
/coverage
12-
13-
# production
14-
/build
15-
16-
# misc
17-
.DS_Store
18-
.env.local
19-
.env.development.local
20-
.env.test.local
21-
.env.production.local
22-
23-
npm-debug.log*
24-
yarn-debug.log*
25-
yarn-error.log*
26-
27-
# Created by https://www.gitignore.io/api/node,macos,firebase,visualstudiocode
28-
# Edit at https://www.gitignore.io/?templates=node,macos,firebase,visualstudiocode
2+
# Created by https://www.gitignore.io/api/node,macos,firebase
3+
# Edit at https://www.gitignore.io/?templates=node,macos,firebase
294

305
### Firebase ###
316
.idea
@@ -142,6 +117,18 @@ typings/
142117
# nuxt.js build output
143118
.nuxt
144119

120+
# rollup.js default build output
121+
dist/
122+
123+
# Uncomment the public line if your project uses Gatsby
124+
# https://nextjs.org/blog/next-9-1#public-directory-support
125+
# https://create-react-app.dev/docs/using-the-public-folder/#docsNav
126+
# public
127+
128+
# Storybook build outputs
129+
.out
130+
.storybook-out
131+
145132
# vuepress build output
146133
.vuepress/dist
147134

@@ -154,15 +141,8 @@ typings/
154141
# DynamoDB Local files
155142
.dynamodb/
156143

157-
### VisualStudioCode ###
158-
.vscode/*
159-
!.vscode/settings.json
160-
!.vscode/tasks.json
161-
!.vscode/launch.json
162-
!.vscode/extensions.json
163-
164-
### VisualStudioCode Patch ###
165-
# Ignore all local history of files
166-
.history
144+
# Temporary folders
145+
tmp/
146+
temp/
167147

168-
# End of https://www.gitignore.io/api/node,macos,firebase,visualstudiocode
148+
# End of https://www.gitignore.io/api/node,macos,firebase

firebase.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"indexes": "firestore.indexes.json"
99
},
1010
"hosting": {
11-
"public": "build",
11+
"public": "hosting/build",
1212
"ignore": [
1313
"firebase.json",
1414
"**/.*",
File renamed without changes.

hosting/.editorconfig

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
File renamed without changes.
File renamed without changes.

hosting/.gitignore

+168
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
ads.txt
2+
3+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
4+
5+
# dependencies
6+
/node_modules
7+
/.pnp
8+
.pnp.js
9+
10+
# testing
11+
/coverage
12+
13+
# production
14+
/build
15+
16+
# misc
17+
.DS_Store
18+
.env.local
19+
.env.development.local
20+
.env.test.local
21+
.env.production.local
22+
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
27+
# Created by https://www.gitignore.io/api/node,macos,firebase,visualstudiocode
28+
# Edit at https://www.gitignore.io/?templates=node,macos,firebase,visualstudiocode
29+
30+
### Firebase ###
31+
.idea
32+
**/node_modules/*
33+
**/.firebaserc
34+
35+
### Firebase Patch ###
36+
.runtimeconfig.json
37+
.firebase/
38+
39+
### macOS ###
40+
# General
41+
.DS_Store
42+
.AppleDouble
43+
.LSOverride
44+
45+
# Icon must end with two \r
46+
Icon
47+
48+
# Thumbnails
49+
._*
50+
51+
# Files that might appear in the root of a volume
52+
.DocumentRevisions-V100
53+
.fseventsd
54+
.Spotlight-V100
55+
.TemporaryItems
56+
.Trashes
57+
.VolumeIcon.icns
58+
.com.apple.timemachine.donotpresent
59+
60+
# Directories potentially created on remote AFP share
61+
.AppleDB
62+
.AppleDesktop
63+
Network Trash Folder
64+
Temporary Items
65+
.apdisk
66+
67+
### Node ###
68+
# Logs
69+
logs
70+
*.log
71+
npm-debug.log*
72+
yarn-debug.log*
73+
yarn-error.log*
74+
lerna-debug.log*
75+
76+
# Diagnostic reports (https://nodejs.org/api/report.html)
77+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
78+
79+
# Runtime data
80+
pids
81+
*.pid
82+
*.seed
83+
*.pid.lock
84+
85+
# Directory for instrumented libs generated by jscoverage/JSCover
86+
lib-cov
87+
88+
# Coverage directory used by tools like istanbul
89+
coverage
90+
*.lcov
91+
92+
# nyc test coverage
93+
.nyc_output
94+
95+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
96+
.grunt
97+
98+
# Bower dependency directory (https://bower.io/)
99+
bower_components
100+
101+
# node-waf configuration
102+
.lock-wscript
103+
104+
# Compiled binary addons (https://nodejs.org/api/addons.html)
105+
build/Release
106+
107+
# Dependency directories
108+
node_modules/
109+
jspm_packages/
110+
111+
# TypeScript v1 declaration files
112+
typings/
113+
114+
# TypeScript cache
115+
*.tsbuildinfo
116+
117+
# Optional npm cache directory
118+
.npm
119+
120+
# Optional eslint cache
121+
.eslintcache
122+
123+
# Optional REPL history
124+
.node_repl_history
125+
126+
# Output of 'npm pack'
127+
*.tgz
128+
129+
# Yarn Integrity file
130+
.yarn-integrity
131+
132+
# dotenv environment variables file
133+
.env
134+
.env.test
135+
136+
# parcel-bundler cache (https://parceljs.org/)
137+
.cache
138+
139+
# next.js build output
140+
.next
141+
142+
# nuxt.js build output
143+
.nuxt
144+
145+
# vuepress build output
146+
.vuepress/dist
147+
148+
# Serverless directories
149+
.serverless/
150+
151+
# FuseBox cache
152+
.fusebox/
153+
154+
# DynamoDB Local files
155+
.dynamodb/
156+
157+
### VisualStudioCode ###
158+
.vscode/*
159+
!.vscode/settings.json
160+
!.vscode/tasks.json
161+
!.vscode/launch.json
162+
!.vscode/extensions.json
163+
164+
### VisualStudioCode Patch ###
165+
# Ignore all local history of files
166+
.history
167+
168+
# End of https://www.gitignore.io/api/node,macos,firebase,visualstudiocode
File renamed without changes.

package.json renamed to hosting/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
"build": "react-scripts build",
4040
"test": "react-scripts test",
4141
"eject": "react-scripts eject",
42-
"lint": "eslint './src/**/*.{ts,tsx}' './functions/src/**/*.ts'"
42+
"lint": "eslint './src/**/*.{ts,tsx}' './functions/src/**/*.ts'",
43+
"deploy": "firebase deploy --only hosting"
4344
},
4445
"eslintConfig": {
4546
"extends": "react-app"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/components/organisms/ThemeSwitchButton/ThemeSwitchButtonContainer.tsx renamed to hosting/src/components/organisms/ThemeSwitchButton/ThemeSwitchButtonContainer.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { jsx } from '@emotion/core';
33
import React from 'react';
44
import { ThemeContainer } from '../../../stores/theme';
5-
import { ThemeSwitchButton } from './';
5+
import { ThemeSwitchButton } from '.';
66

77
export const ThemeSwitchButtonContainer: React.FC = ({ children }) => {
88
const { theme, setTheme } = ThemeContainer.useContainer();

src/components/pages/My/MyContainer.tsx renamed to hosting/src/components/pages/My/MyContainer.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { withRouter, RouteComponentProps } from 'react-router';
33
import { UserContainer } from '../../../stores/user';
44
import { RecordsContainer } from '../../../stores/database/records';
55
import { TokenContainer } from '../../../stores/database/token';
6-
import { My, MyProps } from './';
6+
import { My, MyProps } from '.';
77

88
interface Props extends RouteComponentProps, Partial<MyProps> {}
99

src/components/pages/Top/TopContainer.tsx renamed to hosting/src/components/pages/Top/TopContainer.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { useEffect } from 'react';
22
import { withRouter, RouteComponentProps } from 'react-router';
33
import { ThemeContainer } from '../../../stores/theme';
44
import { UserContainer } from '../../../stores/user';
5-
import { Top, TopProps } from './';
5+
import { Top, TopProps } from '.';
66

77
interface Props extends RouteComponentProps, Partial<TopProps> {}
88

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)