Commit a5b5d88b authored by Fred Chasen's avatar Fred Chasen

Add 'preferCSSPageSize' for test output

parent cf7eb09b
......@@ -39,6 +39,10 @@ RUN apt-get update && apt-get install -y wget --no-install-recommends \
ADD https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64 /usr/local/bin/dumb-init
RUN chmod +x /usr/local/bin/dumb-init
RUN apt-get update && \
apt-get install -y vim && \
rm -rf /var/lib/apt/lists/*
RUN npm install npm@latest -g
RUN npm install -g node-gyp
......@@ -58,10 +62,12 @@ USER node
WORKDIR $DIRECTORY
COPY --chown=node:node . $DIRECTORY
COPY --chown=node:node package.json $DIRECTORY
RUN npm install
RUN npm install ghostscript4js
COPY --chown=node:node . $DIRECTORY
EXPOSE $PORT
ENTRYPOINT ["dumb-init", "--"]
......
This diff is collapsed.
......@@ -9,25 +9,25 @@
"module": "src/index.js",
"browser": "dist/paged.js",
"dependencies": {
"css-tree": "1.0.0-alpha.28",
"css-tree": "1.0.0-alpha.29",
"event-emitter": "^0.3.5",
"lodash": "^4.17.10"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-jest": "^22.4.4",
"babel-jest": "^23.4.0",
"babel-plugin-transform-async-generator-functions": "^6.24.1",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.7.0",
"chalk": "^2.4.1",
"express": "^4.16.3",
"jest": "^22.4.4",
"jest": "^23.4.1",
"jest-image-snapshot": "^2.4.3",
"puppeteer": "^1.5.0",
"puppeteer": "fchasen/puppeteer",
"rimraf": "^2.6.2",
"rollup": "^0.57.0",
"rollup": "^0.63.2",
"rollup-plugin-commonjs": "^9.1.3",
"rollup-plugin-json": "^2.3.1",
"rollup-plugin-json": "^3.0.0",
"rollup-plugin-livereload": "^0.6.0",
"rollup-plugin-node-builtins": "^2.1.2",
"rollup-plugin-node-resolve": "^3.3.0",
......@@ -41,7 +41,7 @@
"specs": "jest --config=specs/jest.config.js",
"compile": "./node_modules/.bin/babel src/ -d lib/",
"pretest": "npm run build",
"prepare": "npm run build && npm run compile",
"prepublishOnly": "npm run build && npm run compile",
"watch": "./node_modules/.bin/rollup -w -c"
},
"repository": {
......
......@@ -11,7 +11,7 @@ const CI = process.env.CI === 'true';
const PDF_SETTINGS = {
printBackground: true,
displayHeaderFooter: false,
margin: { top: 0, right: 0, bottom: 0, left: 0 }
preferCSSPageSize: true
};
module.exports = {
......
......@@ -11,6 +11,7 @@ export default `
@page {
size: letter;
margin: 0;
}
.pagedjs_page {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment