Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

♻ merge pdf package in main package #121

Merged
merged 4 commits into from
Nov 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
**
!src
!bin
src/pdf/node_modules
!package.json
!package-lock.json
!webpack.config.js
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ USER root

RUN apk add --no-cache ttf-liberation

# Force git to use HTTPS instead of SSH, which is simpler because there is no
# key setup. This is only useful if package.json has dependencies that are
# pulled using git.
RUN git config --global url."https://".insteadOf ssh://

WORKDIR /app

COPY package.json package-lock.json ./
COPY src/pdf/package.json src/pdf/package-lock.json ./src/pdf/

RUN npm ci --production --unsafe-perm

Expand Down
2 changes: 1 addition & 1 deletion bin/sensei.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function pdfSlides({ slug, slideWidth, slideHeight }) {
return new Promise((resolve, reject) => {
const child = spawn("node", [
path.resolve(
path.join(__dirname, "../src/pdf/node_modules/decktape/decktape.js")
path.join(__dirname, "../node_modules/decktape/decktape.js")
),
"reveal",
"-p",
Expand Down
Loading