|
|
@@ -17,8 +17,12 @@ COPY ./package.json .
|
|
|
COPY ./yarn.lock .
|
|
|
COPY ./lerna.json .
|
|
|
COPY ./packages/app/package.json packages/app/
|
|
|
-COPY ./packages/slack/package.json packages/slack/
|
|
|
+COPY ./packages/core/package.json packages/core/
|
|
|
+COPY ./packages/plugin-attachment-refs/package.json packages/plugin-attachment-refs/
|
|
|
+COPY ./packages/plugin-lsx/package.json packages/plugin-lsx/
|
|
|
COPY ./packages/plugin-pukiwiki-like-linker/package.json packages/plugin-pukiwiki-like-linker/
|
|
|
+COPY ./packages/slack/package.json packages/slack/
|
|
|
+COPY ./packages/ui/package.json packages/ui/
|
|
|
|
|
|
# setup
|
|
|
RUN yarn config set network-timeout 300000
|
|
|
@@ -27,8 +31,12 @@ RUN npx lerna bootstrap
|
|
|
# make artifacts
|
|
|
RUN tar cf node_modules.tar node_modules \
|
|
|
packages/app/node_modules \
|
|
|
+ packages/core/node_modules \
|
|
|
+ packages/plugin-attachment-refs/node_modules \
|
|
|
+ packages/plugin-lsx \
|
|
|
+ packages/plugin-pukiwiki-like-linker/node_modules \
|
|
|
packages/slack/node_modules \
|
|
|
- packages/plugin-pukiwiki-like-linker/node_modules
|
|
|
+ packages/ui/node_modules
|
|
|
|
|
|
|
|
|
|
|
|
@@ -43,8 +51,12 @@ RUN yarn install --production
|
|
|
# make artifacts
|
|
|
RUN tar cf node_modules.tar node_modules \
|
|
|
packages/app/node_modules \
|
|
|
+ packages/core/node_modules \
|
|
|
+ packages/plugin-attachment-refs/node_modules \
|
|
|
+ packages/plugin-lsx/node_modules \
|
|
|
+ packages/plugin-pukiwiki-like-linker/node_modules \
|
|
|
packages/slack/node_modules \
|
|
|
- packages/plugin-pukiwiki-like-linker/node_modules
|
|
|
+ packages/ui/node_modules
|
|
|
|
|
|
|
|
|
|
|
|
@@ -92,9 +104,13 @@ COPY ./yarn.lock ./
|
|
|
COPY ./lerna.json ./
|
|
|
COPY ./tsconfig.base.json ./
|
|
|
# copy all related packages
|
|
|
-COPY packages/slack packages/slack
|
|
|
COPY packages/app packages/app
|
|
|
+COPY packages/core packages/core
|
|
|
+COPY packages/plugin-attachment-refs packages/plugin-attachment-refs
|
|
|
+COPY packages/plugin-lsx packages/plugin-lsx
|
|
|
COPY packages/plugin-pukiwiki-like-linker packages/plugin-pukiwiki-like-linker
|
|
|
+COPY packages/slack packages/slack
|
|
|
+COPY packages/ui packages/ui
|
|
|
|
|
|
# build
|
|
|
RUN yarn lerna run build
|
|
|
@@ -113,9 +129,18 @@ RUN tar cf packages.tar \
|
|
|
packages/app/.env.production \
|
|
|
packages/app/tsconfig.base.json \
|
|
|
packages/app/tsconfig.json \
|
|
|
+ packages/core/package.json \
|
|
|
+ packages/core/dist \
|
|
|
+ packages/plugin-attachment-refs/package.json \
|
|
|
+ packages/plugin-attachment-refs/dist \
|
|
|
+ packages/plugin-lsx/package.json \
|
|
|
+ packages/plugin-lsx/dist \
|
|
|
+ packages/plugin-pukiwiki-like-linker/package.json \
|
|
|
+ packages/plugin-pukiwiki-like-linker/dist \
|
|
|
packages/slack/package.json \
|
|
|
- packages/slack/dist
|
|
|
-
|
|
|
+ packages/slack/dist \
|
|
|
+ packages/ui/package.json \
|
|
|
+ packages/ui/dist
|
|
|
|
|
|
|
|
|
|