Skip to content

Commit

Permalink
Merge pull request #41 from kishikawakatsumi/refactor
Browse files Browse the repository at this point in the history
Refactor
  • Loading branch information
kishikawakatsumi committed Sep 24, 2023
2 parents db569e0 + f1f7fd5 commit a6339b4
Show file tree
Hide file tree
Showing 44 changed files with 10 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
.DS_Store
.env
.env.example
.dockerignore
.git
.github
.gitignore
.vscode
scripts
docker-compose.yml
Dockerfile
README.md
SECURITY.md
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ WORKDIR /app

COPY --from=node /build/dist ./dist

COPY src/deps.ts .
COPY backend/deps.ts .
RUN deno cache --reload deps.ts

ADD src .
ADD backend .
RUN deno cache main.ts

EXPOSE 8080
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion src/main.ts → backend/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ const eta = new Eta({
views: templates,
});

const Platform = {
// deno-lint-ignore no-explicit-any
const Platform: Record<string, any> = {
ios: {
latest: {
name: "iOS",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
4 changes: 0 additions & 4 deletions scripts/run.sh

This file was deleted.

8 changes: 4 additions & 4 deletions webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const CopyWebbackPlugin = require("copy-webpack-plugin");

module.exports = {
entry: {
index: "./index.js",
index: "./frontend/index.js",
},
output: {
globalObject: "self",
Expand Down Expand Up @@ -65,12 +65,12 @@ module.exports = {
new HtmlWebpackPlugin({
chunks: ["index"],
filename: "templates/index.html",
template: "index.html",
template: "frontend/index.html",
}),
new CopyWebbackPlugin({
patterns: [
{ from: "templates/*.*", to: "templates/[name][ext]" },
{ from: "static/*.*", to: "static/[name][ext]" },
{ from: "frontend/templates/*.*", to: "templates/[name][ext]" },
{ from: "frontend/static/*.*", to: "static/[name][ext]" },
],
}),
],
Expand Down

0 comments on commit a6339b4

Please sign in to comment.