Skip to content

Commit

Permalink
Remove server code and move client code back to directly under src/
Browse files Browse the repository at this point in the history
  • Loading branch information
ahlec committed Jan 13, 2022
1 parent d50b256 commit 2562fb7
Show file tree
Hide file tree
Showing 376 changed files with 2,723 additions and 4,428 deletions.
262 changes: 131 additions & 131 deletions i18n/en.json

Large diffs are not rendered by default.

262 changes: 131 additions & 131 deletions i18n/jp.json

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
},
"scripts": {
"start": "webpack-dev-server --config webpack.dev.js",
"start:server": "nodemon ./src/server/main.ts",
"build": "gulp build",
"deploy": "gulp deploy",
"db:create": "ts-node ./scripts/create-database.ts",
Expand All @@ -21,9 +20,8 @@
"lint:css": "stylelint \"**/*.{css,scss}\"",
"check-project-boundaries": "gf",
"favicon": "rimraf ./favicons && real-favicon generate faviconDescription.json faviconData.json favicons",
"codegen": "concurrently -n GraphQL,SCSS,Locales \"yarn codegen:gql\" \"yarn codegen:scss\" \"yarn codegen:i18n\"",
"codegen:gql": "graphql-codegen",
"codegen:scss": "tsm src/client --aliasPrefixes.@jyosuushi src/client/",
"codegen": "concurrently -n SCSS,Locales \"yarn codegen:scss\" \"yarn codegen:i18n\"",
"codegen:scss": "tsm src --aliasPrefixes.@jyosuushi src/",
"codegen:i18n": "yarn ts-node ./scripts/i18n/compile.ts",
"i18n:extract": "yarn ts-node ./scripts/i18n/extract.ts"
},
Expand Down
2 changes: 1 addition & 1 deletion scripts/exporter/items-file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Writable } from "stream";
import { DbItemCounter } from "../database/schemas";
import ValidatedDataSource from "../database/ValidatedDataSource";

import { Item, ItemCounter } from "../../src/client/interfaces";
import { Item, ItemCounter } from "../../src/interfaces";

import { WriteFileResults } from "./types";
import { getItemId, productionStringify, ProductionVariable } from "./utils";
Expand Down
4 changes: 2 additions & 2 deletions scripts/i18n/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ async function compileFile(inputFile: string, outFile: string): Promise<void> {

async function main(): Promise<void> {
await Promise.all([
compileFile("./i18n/en.json", "src/client/i18n/translations/en.json"),
compileFile("./i18n/jp.json", "src/client/i18n/translations/jp.json"),
compileFile("./i18n/en.json", "src/i18n/translations/en.json"),
compileFile("./i18n/jp.json", "src/i18n/translations/jp.json"),
]);
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/i18n/extract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ ${JSON.stringify(message, undefined, 2)}`
);
}

const files = globSync("src/client/**/*.ts*");
const files = globSync("src/**/*.ts*");
extractAndWrite(files, {
locales: ["en", "jp"],
outDirectory: "./i18n",
Expand Down
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions src/client/constants/index.ts → src/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import { defineMessages, MessageDescriptor } from "react-intl";

import { AmountRange } from "@jyosuushi/redux";

export const MIN_COLLECTION_NAME_LENGTH = 2;
export const MAX_COLLECTION_NAME_LENGTH = 32;

export const ONE_SECOND = 1000;
export const ONE_MINUTE = ONE_SECOND * 60;
export const ONE_HOUR = ONE_MINUTE * 60;
Expand Down
File renamed without changes
2 changes: 1 addition & 1 deletion src/client/fence.json → src/fence.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"accessibleTo": ["data"]
}
],
"imports": ["changelog", "data", "shared"],
"imports": ["changelog", "data"],
"dependencies": [
"classnames",
"history",
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.
Loading

0 comments on commit 2562fb7

Please sign in to comment.