Skip to content

Commit

Permalink
build: add build files
Browse files Browse the repository at this point in the history
  • Loading branch information
thamudi committed Oct 20, 2022
1 parent 31fc261 commit 9517c6e
Show file tree
Hide file tree
Showing 33 changed files with 474 additions and 18 deletions.
31 changes: 31 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Git
.git
.gitignore
.gitattributes
.github

# Docker
Dockerfile
docker-compose.yaml
docker-compose.yml
.dockerignore

# Documentation
*.md
LICENSE

# macOS (optional)
.DS_Store

# Visual Studio Code (optional)
.vscode

# Drone
.drone.yml

.env
.env.*

# editot configs
.eslintrc.*
.prettierrc
32 changes: 32 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Drone CI File!

kind: pipeline
type: kubernetes
name: default

metadata:
namespace: builds

node_selector:
doks.digitalocean.com/node-pool: josa-cloud-np

steps:
- name: build
image: plugins/docker
settings:
repo: josaorg/buzz
tags:
- ${DRONE_COMMIT_SHA}
- stable
username:
from_secret: docker_username
password:
from_secret: docker_password
- name: notify
image: plugins/slack
settings:
webhook:
from_secret: slack_webhook
channel: heartbeat
depends_on:
- build
157 changes: 139 additions & 18 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,23 +1,144 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# dependencies
/node_modules
/.pnp
.pnp.js
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# testing
/coverage
# Runtime data
pids
*.pid
*.seed
*.pid.lock

# production
/build
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
# Coverage directory used by tools like istanbul
coverage
*.lcov

npm-debug.log*
yarn-debug.log*
yarn-error.log*
# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
.env
.env.*
!.env.sample

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
.output
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp
.cache

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test
.vscode
.vscode/*

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# Other
assets/data
**.adminjs
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:16-alpine3.14 AS builder


# copy build context and install dependencies
WORKDIR /app
COPY . .
ENV PORT 4000
RUN yarn install
RUN yarn build
# run for production
CMD [ "yarn", "start"]
Binary file added build/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/android-chrome-256x256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"files": {
"main.css": "/static/css/main.7efc4990.chunk.css",
"main.js": "/static/js/main.c10a3d62.chunk.js",
"main.js.map": "/static/js/main.c10a3d62.chunk.js.map",
"runtime-main.js": "/static/js/runtime-main.6a0d44d6.js",
"runtime-main.js.map": "/static/js/runtime-main.6a0d44d6.js.map",
"static/js/2.05ef2cb4.chunk.js": "/static/js/2.05ef2cb4.chunk.js",
"static/js/2.05ef2cb4.chunk.js.map": "/static/js/2.05ef2cb4.chunk.js.map",
"index.html": "/index.html",
"precache-manifest.7923a24a670a5014a7ccad83a9daa3c4.js": "/precache-manifest.7923a24a670a5014a7ccad83a9daa3c4.js",
"service-worker.js": "/service-worker.js",
"static/css/main.7efc4990.chunk.css.map": "/static/css/main.7efc4990.chunk.css.map",
"static/js/2.05ef2cb4.chunk.js.LICENSE.txt": "/static/js/2.05ef2cb4.chunk.js.LICENSE.txt"
},
"entrypoints": [
"static/js/runtime-main.6a0d44d6.js",
"static/js/2.05ef2cb4.chunk.js",
"static/css/main.7efc4990.chunk.css",
"static/js/main.c10a3d62.chunk.js"
]
}
9 changes: 9 additions & 0 deletions build/browserconfig.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/mstile-150x150.png"/>
<TileColor>#2b5797</TileColor>
</tile>
</msapplication>
</browserconfig>
Binary file added build/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions build/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="description" content="Multiplayer buzzer system for quiz bowl"/><meta property="og:title" content="JOSA Multibuzzer"/><meta property="og:url" content="https://buzz.josa.ngo"/><meta property="og:image" content="/social.png"/><meta property="og:type" content="website"/><meta property="og:description" content="Free online multiplayer buzzer system. Perfect for trivia night, quiz bowl, classrooms, and more."/><meta name="twitter:card" content="summary"/><meta name="twitter:image" content="/twitter.png"/><meta name="twitter:title" content="Multibuzzer"/><meta name="twitter:description" content="Free online multiplayer buzzer system. Perfect for trivia night, quiz bowl, classrooms, and more."/><link rel="shortcut icon" href="/favicon.ico"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"/><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"/><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"/><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#348df5"/><meta name="msapplication-TileColor" content="#2b5797"/><meta name="theme-color" content="#282c35"/><link rel="manifest" href="/site.webmanifest"/><link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous"/><link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800&display=swap" rel="stylesheet"/><title>Multibuzzer</title><meta name="title" content="Multibuzzer"/><meta name="description" content="Free online multiplayer buzzer system. Perfect for trivia night, quiz bowl, classrooms, and more."/><link href="/static/css/main.7efc4990.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,l,i=r[0],f=r[1],a=r[2],c=0,s=[];c<i.length;c++)l=i[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in f)Object.prototype.hasOwnProperty.call(f,n)&&(e[n]=f[n]);for(p&&p(r);s.length;)s.shift()();return u.push.apply(u,a||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,i=1;i<t.length;i++){var f=t[i];0!==o[f]&&(n=!1)}n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={1:0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="/";var i=this.webpackJsonpmultibuzzer=this.webpackJsonpmultibuzzer||[],f=i.push.bind(i);i.push=r,i=i.slice();for(var a=0;a<i.length;a++)r(i[a]);var p=f;t()}([])</script><script src="/static/js/2.05ef2cb4.chunk.js"></script><script src="/static/js/main.c10a3d62.chunk.js"></script></body></html>
Binary file added build/mstile-150x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions build/precache-manifest.7923a24a670a5014a7ccad83a9daa3c4.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "202ddab2b3ecd011fdf05e4adc6d1cfa",
"url": "/index.html"
},
{
"revision": "199acc6f71bb2971b7b0",
"url": "/static/css/main.7efc4990.chunk.css"
},
{
"revision": "9ea49b58d0a71c53b9de",
"url": "/static/js/2.05ef2cb4.chunk.js"
},
{
"revision": "a1693971795a8b09f482f20148282238",
"url": "/static/js/2.05ef2cb4.chunk.js.LICENSE.txt"
},
{
"revision": "199acc6f71bb2971b7b0",
"url": "/static/js/main.c10a3d62.chunk.js"
},
{
"revision": "e7955b8e9cb00d315469",
"url": "/static/js/runtime-main.6a0d44d6.js"
}
]);
3 changes: 3 additions & 0 deletions build/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
26 changes: 26 additions & 0 deletions build/safari-pinned-tab.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions build/service-worker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/**
* Welcome to your Workbox-powered service worker!
*
* You'll need to register this file in your web app and you should
* disable HTTP caching for this file too.
* See https://goo.gl/nhQhGp
*
* The rest of the code is auto-generated. Please don't update this file
* directly; instead, make changes to your Workbox build configuration
* and re-run your build process.
* See https://goo.gl/2aRDsh
*/

importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");

importScripts(
"/precache-manifest.7923a24a670a5014a7ccad83a9daa3c4.js"
);

self.addEventListener('message', (event) => {
if (event.data && event.data.type === 'SKIP_WAITING') {
self.skipWaiting();
}
});

workbox.core.clientsClaim();

/**
* The workboxSW.precacheAndRoute() method efficiently caches and responds to
* requests for URLs in the manifest.
* See https://goo.gl/S9QRab
*/
self.__precacheManifest = [].concat(self.__precacheManifest || []);
workbox.precaching.precacheAndRoute(self.__precacheManifest, {});

workbox.routing.registerNavigationRoute(workbox.precaching.getCacheKeyForURL("/index.html"), {

blacklist: [/^\/_/,/\/[^/?]+\.[^/]+$/],
});
Binary file added build/shortBuzz.mp3
Binary file not shown.
Binary file added build/shortBuzz.webm
Binary file not shown.
19 changes: 19 additions & 0 deletions build/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "Multibuzzer",
"short_name": "Multibuzzer",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-256x256.png",
"sizes": "256x256",
"type": "image/png"
}
],
"theme_color": "#282c35",
"background_color": "#282c35",
"display": "standalone"
}
Loading

0 comments on commit 9517c6e

Please sign in to comment.