Skip to content

Commit 093007a

Browse files
committed
Merge branch 'develop'
2 parents f856f79 + cb5cdb0 commit 093007a

File tree

184 files changed

+30460
-5138
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

184 files changed

+30460
-5138
lines changed

.dockerignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,8 @@ config/*.bak
1515
.flatpak-builder
1616
flatpak/generated-sources.json
1717
flatpak/.flatpak-builder
18+
docsite/build
19+
docsite/node_modules
20+
docsite/.docusaurus
21+
docsite/.cache-loader
22+
build

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Created by .ignore support plugin (hsz.mobi)
22
### Node template
33
# Logs
4-
logs
4+
/logs
55
*.log
66
npm-debug.log*
77
yarn-debug.log*
@@ -127,3 +127,6 @@ src/**/**.js.map
127127
*.bak
128128
.flatpak-builder
129129
flatpak/generated-sources.json
130+
131+
build
132+
!setupProxy.js

.mocharc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"require": ["./register.js", "source-map-support/register"],
3+
"reporter": "dot"
4+
}

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
lts/hydrogen
1+
v18.16.0

.nycrc.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"extends": "@istanbuljs/nyc-config-typescript",
3+
"exclude": [
4+
"node_modules/",
5+
"**/src/backend/common/schema/**",
6+
"**/src/backend/tests/**",
7+
"register.js",
8+
"**/src/server/**/*.d.ts",
9+
"**/src/client/**"
10+
],
11+
"include": [
12+
"**/src/backend/**/*.ts",
13+
"**/src/**/backend/*.js",
14+
"**/src/**/backend/*.js.map"
15+
],
16+
"extension": [
17+
".ts"
18+
],
19+
"reporter": [
20+
"text-summary",
21+
"html"
22+
],
23+
"report-dir": "./coverage"
24+
}

Dockerfile

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ RUN \
99
git \
1010
nodejs \
1111
npm \
12+
#yarn \
1213
openssh && \
1314
echo "**** cleanup ****" && \
1415
rm -rf \
@@ -23,31 +24,58 @@ ENV CONFIG_DIR=$data_dir
2324

2425
COPY docker/root/ /
2526

27+
RUN npm install -g patch-package
28+
2629
WORKDIR /app
2730

2831
FROM base as build
2932

30-
# copy NPM dependencies and install
31-
COPY --chown=abc:abc package*.json ./
32-
COPY --chown=abc:abc tsconfig.json .
33+
# would very much like to use YARN for dependency management but its got show-stopping bad design for prod dependencies
34+
# https://github.com/yarnpkg/yarn/issues/6323 -- always downloads devDependencies -- and im not about to migrate to v2 since alpine doesn't support it yet
35+
36+
# copy dep/TS config and install dev dependencies
37+
#COPY --chown=abc:abc package.json tsconfig.json yarn.lock ./
38+
COPY --chown=abc:abc package*.json tsconfig.json ./
39+
COPY --chown=abc:abc patches ./patches
40+
3341

3442
RUN npm install
43+
#RUN yarn install
3544

3645
COPY --chown=abc:abc . /app
3746

47+
# need to set before build so server/client build is optimized and has constants (if needed)
48+
ENV NODE_ENV=production
49+
3850
RUN npm run build && rm -rf node_modules
51+
#RUN yarn run build && rm -rf node_modules
3952

4053
FROM base as app
4154

42-
COPY --from=build --chown=abc:abc /app /app
43-
44-
ENV NODE_ENV="production"
55+
#COPY --chown=abc:abc package.json yarn.lock ./
56+
COPY --chown=abc:abc package*.json ./
57+
COPY --chown=abc:abc patches ./patches
58+
COPY --from=build --chown=abc:abc /app/build /app/build
59+
COPY --from=base /usr/local/bin /usr/local/bin
60+
COPY --from=base /usr/local/lib /usr/local/lib
61+
62+
ENV NODE_ENV=production
63+
ENV IS_DOCKER=true
64+
#
65+
#RUN yarn global add patch-package \
66+
# && yarn install --production=true \
67+
# && yarn global remove patch-package \
68+
# && yarn cache clean --mirror \
69+
# && chown abc:abc node_modules \
70+
# && rm -rf node_modules/ts-node \
71+
# && rm -rf node_modules/typescript
4572

4673
RUN npm install --omit=dev \
4774
&& npm cache clean --force \
4875
&& chown abc:abc node_modules \
4976
&& rm -rf node_modules/ts-node \
50-
&& rm -rf node_modules/typescript
77+
&& rm -rf node_modules/typescript \
78+
&& rm -rf node_modules/@types
5179

5280
ARG webPort=9078
5381
ENV PORT=$webPort

assets/apple-touch-icon.png

9.82 KB
Loading

assets/favicon-16x16.png

421 Bytes
Loading

assets/favicon-32x32.png

862 Bytes
Loading

assets/favicon.ico

15 KB
Binary file not shown.

0 commit comments

Comments
 (0)