Merge pull request #2 from LBRYFoundation/sync-lock-file
Sync lock file
This commit is contained in:
commit
81633dd711
6 changed files with 8787 additions and 5517 deletions
11
.dockerignore
Normal file
11
.dockerignore
Normal file
|
@ -0,0 +1,11 @@
|
|||
# Files
|
||||
.DS_Store
|
||||
.env
|
||||
*.log
|
||||
.sass-cache
|
||||
app/dist/bundle.css
|
||||
app/dist/bundle.css.map
|
||||
|
||||
# Directories
|
||||
cache
|
||||
node_modules
|
14
Dockerfile
Normal file
14
Dockerfile
Normal file
|
@ -0,0 +1,14 @@
|
|||
FROM node:10.2.1
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json package.json
|
||||
COPY package-lock.json package-lock.json
|
||||
|
||||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
CMD [ "npm", "start" ]
|
10
app/index.js
10
app/index.js
|
@ -11,7 +11,7 @@ import fastify from "fastify";
|
|||
import helmet from "fastify-helmet";
|
||||
import ssr from "choo-ssr/fastify";
|
||||
import statik from "fastify-static";
|
||||
import websockets from "@inc/fastify-ws";
|
||||
import websockets from "fastify-ws";
|
||||
|
||||
// U T I L S
|
||||
|
||||
|
@ -63,14 +63,6 @@ server
|
|||
if (redirects[request.raw.originalUrl])
|
||||
reply.redirect(301, redirects[request.raw.originalUrl]);
|
||||
|
||||
if (process.env.NODE_ENV !== "development") {
|
||||
if (request.headers["x-forwarded-proto"] !== "https")
|
||||
reply.redirect(302, `https://${request.raw.hostname}${request.raw.originalUrl}`);
|
||||
|
||||
else
|
||||
next();
|
||||
}
|
||||
|
||||
next();
|
||||
})
|
||||
.ready(err => {
|
||||
|
|
1
index.js
1
index.js
|
@ -4,6 +4,7 @@
|
|||
|
||||
// P A C K A G E S
|
||||
|
||||
require('module-alias/register')
|
||||
require("@babel/register");
|
||||
require("@babel/polyfill");
|
||||
require("date-format-lite");
|
||||
|
|
16985
package-lock.json
generated
16985
package-lock.json
generated
File diff suppressed because it is too large
Load diff
11
package.json
11
package.json
|
@ -11,7 +11,6 @@
|
|||
"author": "LBRY Team",
|
||||
"dependencies": {
|
||||
"@babel/polyfill": "^7.4.4",
|
||||
"@inc/fastify-ws": "^2019.7.23",
|
||||
"@octokit/rest": "^16.28.7",
|
||||
"@slack/client": "^5.0.2",
|
||||
"async": "^3.1.0",
|
||||
|
@ -32,6 +31,7 @@
|
|||
"fastify-compress": "^0.10.0",
|
||||
"fastify-helmet": "^3.0.1",
|
||||
"fastify-static": "^2.5.0",
|
||||
"fastify-ws": "^1.0.3",
|
||||
"front-matter": "^3.0.2",
|
||||
"fs-exists-sync": "^0.1.0",
|
||||
"got": "^9.6.0",
|
||||
|
@ -40,12 +40,13 @@
|
|||
"make-promises-safe": "^5.0.0",
|
||||
"markdown-it": "^9.0.1",
|
||||
"markdown-it-anchor": "^5.2.4",
|
||||
"module-alias": "^2.2.3",
|
||||
"prismjs": "^1.17.1",
|
||||
"redis": "^2.8.0",
|
||||
"request": "latest",
|
||||
"slack-node": "^0.1.8",
|
||||
"socket.io": "^2.2.0",
|
||||
"stringify-object": "^3.3.0",
|
||||
"request": "latest"
|
||||
"stringify-object": "^3.3.0"
|
||||
},
|
||||
"description": "Documentation for the LBRY protocol and associated projects",
|
||||
"devDependencies": {
|
||||
|
@ -63,8 +64,8 @@
|
|||
"@babel/plugin-syntax-import-meta": "7.2.0",
|
||||
"@babel/preset-env": "^7.5.5",
|
||||
"@babel/register": "^7.5.5",
|
||||
"@inc/eslint-config": "^2019.7.23",
|
||||
"@inc/sasslint-config": "^2019.7.23",
|
||||
"eslint-config": "^0.3.0",
|
||||
"@springernature/sasslint-config": "^1.2.1",
|
||||
"@lbry/color": "^1.1.1",
|
||||
"@lbry/components": "^2019.6.22",
|
||||
"eslint": "^6.1.0",
|
||||
|
|
Loading…
Add table
Reference in a new issue