Skip to content

Commit e6b6c76

Browse files
author
Nick Yasinskiy
committed
Web init
1 parent da8c1a9 commit e6b6c76

23 files changed

Lines changed: 25248 additions & 0 deletions

web/.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.git
2+
node_modules
3+
dist

web/.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
# Set default charset
8+
[*]
9+
end_of_line = lf
10+
insert_final_newline = true
11+
charset = utf-8
12+
indent_style = space
13+
indent_size = 4

web/.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+
/dist
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*

web/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM node:14.15.5-alpine
2+
WORKDIR /stackdog
3+
COPY . ./
4+
RUN npm ci
5+
CMD npm start

web/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# JSON constructor
2+
3+
## Developer usage
4+
5+
We use Webpack dev server with hot reload, so you can serve it locally and see all changes immediately.
6+
7+
`npm install`
8+
`npm run start`
9+
10+
OR
11+
12+
`docker build -t stackdog -f Dockerfile .`
13+
`docker run stackdog`
14+
15+
## Production build
16+
17+
`npm install`
18+
`npm run build`
19+
20+
## Development notes
21+
22+
# 1
23+
Never, ever, ever don't spend time on experimental react branch integration with TypeScript support.
24+
They unstable, and... just don't work endeed.

web/jest.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"verbose": true,
3+
"testRegex": "(/spec/.*|\\.(test|spec))\\.(ts|tsx|js)$",
4+
"testPathIgnorePatterns": [
5+
"/dist/",
6+
"/node_modules/"
7+
],
8+
"moduleFileExtensions": [
9+
"js",
10+
"ts",
11+
"tsx"
12+
],
13+
"globals": {
14+
"window": {},
15+
"ts-jest": {
16+
"tsconfig": "./tsconfig.json"
17+
}
18+
},
19+
"collectCoverageFrom": [
20+
"src/**/*.{ts,tsx}",
21+
"!/node_modules/",
22+
"!src/index.tsx"
23+
],
24+
"preset": "ts-jest",
25+
"testMatch": null
26+
}

0 commit comments

Comments
 (0)