Skip to content

Commit

Permalink
Merge branch 'release-0.2.15' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
entrotech committed Dec 7, 2020
2 parents 8f119d0 + 5936430 commit d087fce
Show file tree
Hide file tree
Showing 181 changed files with 20,466 additions and 25,554 deletions.
26 changes: 0 additions & 26 deletions .eslintrc.json

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
on:
push:
branches:
- experimental
- develop
- main
release:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ tags

### IDEA Editor settings ###
.idea/*
.gradle/*

### VisualStudioCode Patch ###
# Ignore all local history of files
Expand Down
21 changes: 13 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@
FROM node:alpine as clientBuilder
FROM node:14-alpine as clientBuilder

RUN mkdir /app
WORKDIR /app
COPY /client/package.json .
RUN npm install
COPY /client/package-lock.json .
RUN npm ci
COPY /client .

RUN npm run build
RUN echo package.json

FROM node
FROM node:14-alpine

WORKDIR /

COPY . /
COPY --from=clientBuilder /app/build /client/build
COPY ./server/package.json ./
COPY ./server/package-lock.json ./

WORKDIR /
RUN npm ci

RUN npm install
COPY ./server/app ./app
COPY ./server/middleware ./middleware
COPY ./server/server.js ./

EXPOSE 5000

ENTRYPOINT ["/usr/local/bin/node", "server.js"]
ENTRYPOINT ["/usr/local/bin/node", "./server.js"]


14 changes: 11 additions & 3 deletions client/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@
"env": {
"browser": true,
"es6": true,
"node": true,
"jest/globals": true
},
"globals": {
"process": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:jest/recommended",
"plugin:react/recommended"
"plugin:prettier/recommended",
"plugin:react-hooks/recommended"
],
"parserOptions": {
"ecmaFeatures": {
Expand All @@ -16,15 +22,17 @@
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["react", "jest"],
"plugins": ["react", "jest", "prettier", "eslint-plugin-react"],
"rules": {
"prettier/prettier": "error",
"no-console": ["warn", { "allow": ["error"] }],
"no-alert": "error"
},
"settings": {
// Settings for eslint-plugin-react
"react": {
"createClass": "createReactClass", // Regex for Component Factory to use,
"createClass": "createReactClass",
// Regex for Component Factory to use,
// default to "createReactClass"
"pragma": "React", // Pragma to use, default to "React"
"version": "detect" // React version. "detect" automatically picks the version you have installed.
Expand Down
2 changes: 1 addition & 1 deletion .prettierrc.js → client/.prettierrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
// using default prettier settings.
module.exports = {
trailingComma: "none", // deafult changed in prettier 2+
arrowParens: "avoid" // default changed in prettier 2+
arrowParens: "avoid", // default changed in prettier 2+
};
2 changes: 0 additions & 2 deletions client/.storybook/addons.js

This file was deleted.

11 changes: 0 additions & 11 deletions client/.storybook/config.js

This file was deleted.

Loading

0 comments on commit d087fce

Please sign in to comment.