commit f6838c01407b8f139e23ec4db4939b11fb357845 Author: oitsjustjose Date: Mon Jan 16 15:29:44 2023 -0500 Initial commit \o/ diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..f132a49 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +build/** +.idea/ +node_modules/ +vs_code/ +Dockerfile \ No newline at end of file diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..65b9ef0 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,28 @@ +{ + "env": { + "browser": true, + "es6": true, + "jest": true + }, + "extends": ["plugin:react/recommended", "airbnb"], + "globals": { + "Atomics": "readonly", + "SharedArrayBuffer": "readonly" + }, + "parserOptions": { + "ecmaFeatures": { + "jsx": true + }, + "ecmaVersion": 11, + "sourceType": "module" + }, + "plugins": ["react"], + "rules": { + "import/no-cycle": 0, + "no-unused-expressions": 0, + "react/jsx-props-no-spreading": 0, + "react/prop-types": 0, + "react/function-component-definition": 0, + "react/no-alert": 0 + } +} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a09c830 --- /dev/null +++ b/.gitignore @@ -0,0 +1,26 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js + +# testing +/coverage + +# production +/build + +# misc +.DS_Store +.env.local +.env.development.local +.env.test.local +.env.production.local + +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +.vscode/ +.vscode/* \ No newline at end of file diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..b1f6bff --- /dev/null +++ b/.prettierrc @@ -0,0 +1,6 @@ +{ + "arrowParens": "avoid", + "trailingComma": "es5", + "singleQuote": true, + "semi": true +} diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..cb90fc9 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +FROM node:16-alpine AS builder + +RUN apk update && apk upgrade && \ + apk add --no-cache bash git openssh + +WORKDIR /app +COPY package*.json ./ +RUN npm install + +COPY . . +RUN npm run build +FROM node:16-alpine AS server + +ENV NODE_ENV=production +RUN npm install -g serve + +WORKDIR /app +COPY package*.json ./ +COPY --from=builder /app/build ./build + +ENV PORT=3001 +EXPOSE 3001 +USER node +CMD ["serve", "-s", "build"] \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..d1de67f --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# Slamon' Run Bingo + +## No, that's not a typo + +This is a simple bingo card generator (which saves and can conditionally reset if you ask it to) for your weapons while playing Salmon Run in Splatoon 3. Have fun - it's open source, weapon art from [the wiki](https://splatoonwiki.org/wiki/List_of_weapons_in_Splatoon_3), all other art is by [my wife](https://linktr.ee/ambroxer) diff --git a/index.html b/index.html new file mode 100644 index 0000000..6beee68 --- /dev/null +++ b/index.html @@ -0,0 +1,17 @@ + + + + + + + + + Salmon Run Bingo + + + +
+