Skip to content
Snippets Groups Projects
Commit e1cf10cc authored by Roang's avatar Roang
Browse files

Update plainui to yarn 4.5.1

parent ccc86641
No related branches found
No related tags found
No related merge requests found
......@@ -43,6 +43,7 @@ RUN --mount=target=/var/lib/apt/lists/,type=cache,sharing=locked \
apt-get install \
build-essential \
yarnpkg && \
/usr/bin/yarnpkg global bin corepack enable &&\
mkdir /install
WORKDIR /install
......@@ -64,14 +65,14 @@ FROM build as build-static
# Only copy over the requirements files, use cache if they have not changed.
RUN mkdir -p /app/plainui/
COPY src/plainui/package.json src/plainui/yarn.lock /app/plainui/
WORKDIR /app/plainui
RUN /usr/bin/yarnpkg
RUN /usr/bin/yarnpkg global bin corepack enable
COPY src/ /app/
RUN /usr/bin/yarnpkg build
WORKDIR /app/plainui
RUN /usr/bin/yarnpkg set version stable &&\
/usr/bin/yarnpkg install &&\
/usr/bin/yarnpkg build
WORKDIR /app
RUN export DJANGO_SETTINGS_MODULE='hub.settings.build' && \
python3 /app/manage.py collectstatic --noinput && \
......@@ -113,7 +114,8 @@ RUN --mount=target=/var/lib/apt/lists/,type=cache,sharing=locked \
--mount=target=/var/cache/apt/archives/,type=cache,sharing=locked \
if [ "$DEVELOPMENT" = "True" ]; then\
apt-get install \
yarnpkg; \
yarnpkg &&\
/usr/bin/yarnpkg global bin corepack enable;\
fi &&\
useradd -u $DOCKER_UID -ms /bin/bash -d /app_home appuser
......
......@@ -42,3 +42,13 @@ jspm_packages/
# Mac OSX
.DS_Store
# yarn
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
# SDKS are excluded as we do not want them in the repository
# !.yarn/sdks
!.yarn/versions
This diff is collapsed.
nodeLinker: node-modules
yarnPath: .yarn/releases/yarn-4.5.1.cjs
......@@ -18,5 +18,6 @@
"scripts": {
"build": "sass --silence-deprecation slash-div,mixed-decls,color-functions,global-builtin,import -I node_modules --style=compressed styles/hub.scss:static/plainui/hub.css",
"watch": "sass --watch -I node_modules styles:static/plainui"
}
},
"packageManager": "yarn@4.5.1"
}
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment