Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Commit

Permalink
refactor: move back into create react app (#368)
Browse files Browse the repository at this point in the history
* feat: rebuild on newly initialised create-react-app
* chore: images.d.ts not needed
* chore: import sass with @use 
* fix: typescript errors
* fix: re-add env script
* fix: docker image building
* refator: removed redirect
* chore: re-added prettier
* feat: re-added husky lints
* feat: autoformat on commit
* fix: jest config to transpile polkadot deps

Co-authored-by: dudleyneedham <dudleyneedham1993@gmail.com>
Co-authored-by: Timo Welde <tjwelde@gmail.com>
  • Loading branch information
3 people authored Jun 11, 2021
1 parent 3ba9f59 commit 524443d
Show file tree
Hide file tree
Showing 211 changed files with 10,109 additions and 9,373 deletions.
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
REACT_APP_SERVICE_HOST=//127.0.0.1:3000
REACT_APP_NODE_HOST=ws://127.0.0.1:9944
REACT_APP_FAUCET_URL=//127.0.0.1:3002

SASS_PATH=./src:./node_modules
98 changes: 0 additions & 98 deletions .eslintrc.json

This file was deleted.

14 changes: 5 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.yalc
/.pnp
.pnp.js

# testing
/coverage
Expand All @@ -17,13 +18,8 @@
.env.test.local
.env.production.local

env-config.js

npm-debug.log*
package-lock.json
yarn-debug.log*
yarn-error.log*
/src/dist/
*.iml

# Temporary env files
/public/env-config.js
env-config.js
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
ARG NODE_VERSION=10
ARG NODE_VERSION=14
FROM node:${NODE_VERSION}-alpine as develop

WORKDIR /app

RUN apk add --no-cache bash

COPY package.json yarn.lock ./
COPY package.json yarn.lock ./env.sh ./
RUN yarn install

COPY . ./
Expand All @@ -14,13 +14,12 @@ EXPOSE 3001
CMD [ "yarn", "start" ]

FROM develop as builder
RUN yarn lint
#RUN yarn testCI

RUN yarn build

FROM nginx:alpine as release
COPY --from=builder /app/build/ /usr/share/nginx/html/
COPY --from=builder /app/config/nginx.conf /etc/nginx/conf.d/default.conf
COPY ./config/nginx.conf /etc/nginx/conf.d/default.conf

# Copy .env file and shell script to container
WORKDIR /usr/share/nginx/html
Expand Down
96 changes: 0 additions & 96 deletions config/env.js

This file was deleted.

14 changes: 0 additions & 14 deletions config/jest/cssTransform.js

This file was deleted.

12 changes: 0 additions & 12 deletions config/jest/fileTransform.js

This file was deleted.

7 changes: 0 additions & 7 deletions config/jest/typescriptTransform.js

This file was deleted.

57 changes: 0 additions & 57 deletions config/paths.js

This file was deleted.

22 changes: 0 additions & 22 deletions config/polyfills.js

This file was deleted.

Loading

0 comments on commit 524443d

Please sign in to comment.