-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
73 changed files
with
30,396 additions
and
18,838 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Folders | ||
.git | ||
.yarn/cache | ||
.storybook | ||
build | ||
cache | ||
locales/*.json | ||
node_modules | ||
omelette | ||
|
||
# Files | ||
.env | ||
*.log | ||
.dockerignore | ||
.editorconfig | ||
.eslintignore | ||
.eslintrc.js | ||
.gitignore | ||
.gitmodules | ||
.prettierignore | ||
bootstrap | ||
cypress*.json | ||
docker-compose.yml | ||
Jenkinsfile | ||
start_.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# EditorConfig Configurtaion file, for more details see: | ||
# http://EditorConfig.org | ||
# EditorConfig is a convention description, that could be interpreted | ||
# by multiple editors to enforce common coding conventions for specific | ||
# file types | ||
|
||
# top-most EditorConfig file: | ||
# Will ignore other EditorConfig files in Home directory or upper tree level. | ||
root = true | ||
|
||
|
||
[*] # For All Files | ||
# Unix-style newlines with a newline ending every file | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
# Set default charset | ||
charset = utf-8 | ||
# Indent style default | ||
indent_style = space | ||
# Max Line Length - a hard line wrap, should be disabled | ||
max_line_length = off | ||
|
||
[*.{py,cfg,ini}] | ||
# 4 space indentation | ||
indent_size = 4 | ||
|
||
[*.{html,dtml,pt,zpt,xml,zcml,js,jsx,json,less,css,yaml,yml}] | ||
# 2 space indentation | ||
indent_size = 2 | ||
|
||
[{Makefile,.gitmodules}] | ||
# Tab indentation (no size specified, but view as 4 spaces) | ||
indent_style = tab | ||
indent_size = unset | ||
tab_width = unset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
src/addons/**/node_modules | ||
src/addons/**/cypress | ||
src/addons/**/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
src/**/CHANGELOG.md | ||
src/**/README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,4 @@ | |
"hooks": { | ||
"after:bump": "npx auto-changelog --commit-limit false -p" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
defaultSemverRangePrefix: "" | ||
|
||
nodeLinker: node-modules | ||
|
||
yarnPath: .yarn/releases/yarn-3.2.3.cjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,32 @@ | ||
# Based on https://github.com/plone/volto/blob/master/entrypoint.sh | ||
FROM node:16-slim | ||
|
||
COPY . /opt/frontend/ | ||
WORKDIR /opt/frontend/ | ||
COPY . /app/ | ||
WORKDIR /app/ | ||
|
||
# Update apt packages | ||
RUN runDeps="openssl ca-certificates patch gosu git make tmux locales-all" \ | ||
&& apt-get update \ | ||
&& apt-get install -y --no-install-recommends $runDeps \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& npm install --location=global mrs-developer \ | ||
&& npm install -g mrs-developer \ | ||
&& cp jsconfig.json.prod jsconfig.json \ | ||
&& mkdir -p /opt/frontend/src/addons \ | ||
&& rm -rf /opt/frontend/src/addons/* \ | ||
&& find /opt/frontend/ -not -user node -exec chown node {} \+ \ | ||
&& mkdir -p /app/src/addons \ | ||
&& rm -rf /app/src/addons/* \ | ||
&& find /app/ -not -user node -exec chown node {} \+ \ | ||
&& corepack enable | ||
|
||
# Build | ||
USER node | ||
|
||
WORKDIR /opt/frontend/ | ||
|
||
RUN cd /opt/frontend \ | ||
&& RAZZLE_API_PATH=VOLTO_API_PATH RAZZLE_INTERNAL_API_PATH=VOLTO_INTERNAL_API_PATH yarn \ | ||
&& RAZZLE_API_PATH=VOLTO_API_PATH RAZZLE_INTERNAL_API_PATH=VOLTO_INTERNAL_API_PATH yarn build \ | ||
RUN yarn \ | ||
&& yarn build \ | ||
&& rm -rf /home/node/.cache \ | ||
&& rm -rf /home/node/.yarn \ | ||
&& rm -rf /home/node/.npm \ | ||
&& rm -rf /app/.yarn/cache | ||
|
||
USER root | ||
|
||
EXPOSE 3000 3001 4000 4001 | ||
EXPOSE 3000 3001 | ||
|
||
ENTRYPOINT ["/opt/frontend/entrypoint-prod.sh"] | ||
ENTRYPOINT ["/app/entrypoint.sh"] | ||
CMD ["yarn", "start:prod"] |
Oops, something went wrong.