Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions web/.dockerignore
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
.git
node_modules
dist
13 changes: 13 additions & 0 deletions web/.editorconfig
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
# Set default charset
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 4
23 changes: 23 additions & 0 deletions web/.gitignore
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/dist

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
5 changes: 5 additions & 0 deletions web/Dockerfile
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
FROM node:14.15.5-alpine
WORKDIR /stackdog
COPY . ./
RUN npm ci
CMD npm start
24 changes: 24 additions & 0 deletions web/README.md
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
# JSON constructor

## Developer usage

We use Webpack dev server with hot reload, so you can serve it locally and see all changes immediately.

`npm install`
`npm run start`

OR

`docker build -t stackdog -f Dockerfile .`
`docker run stackdog`

## Production build

`npm install`
`npm run build`

## Development notes

# 1
Never, ever, ever don't spend time on experimental react branch integration with TypeScript support.
They unstable, and... just don't work endeed.
26 changes: 26 additions & 0 deletions web/jest.json
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
{
"verbose": true,
"testRegex": "(/spec/.*|\\.(test|spec))\\.(ts|tsx|js)$",
"testPathIgnorePatterns": [
"/dist/",
"/node_modules/"
],
"moduleFileExtensions": [
"js",
"ts",
"tsx"
],
"globals": {
"window": {},
"ts-jest": {
"tsconfig": "./tsconfig.json"
}
},
"collectCoverageFrom": [
"src/**/*.{ts,tsx}",
"!/node_modules/",
"!src/index.tsx"
],
"preset": "ts-jest",
"testMatch": null
}
Loading