Commit 088c4030 authored by julien's avatar julien
Browse files

Merge branch 'master' into position-fixed

parents c71691cd 5e1eea4f
root = true
[*]
end_of_line = lf
insert_final_newline = true
[*.js]
charset = utf-8
indent_style = tab
indent_size = 2
before_script:
- docker info
stages:
- build
- publish
build_image:
script:
npm-test:
stage: build
before_script:
- docker build -t pagedmedia/pagedjs .
script:
- docker run --security-opt 'seccomp=seccomp.json' pagedmedia/pagedjs npm test
# This job requires to setup GitLab the following way:
# 1. On https://www.npmjs.com/settings/tokens/create
# create a new read/write token (the logged in user must have write access for the `pagedjs` package)
# 2. On https://gitlab.pagedmedia.org/tools/pagedjs/-/settings/ci_cd#js-cicd-variables-settings
# add a new variable named `NPM_TOKEN`, and toggle on _Protected_ and _Masked_
npm-publish:
stage: publish
before_script:
- 'echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc'
- npm install
- npm publish --public --dry-run
script:
- npm publish --public
only:
- tags
......@@ -78,7 +78,7 @@ USER node
WORKDIR $DIRECTORY
COPY --chown=node:node package.json $DIRECTORY
COPY --chown=node:node package.json package-lock.json $DIRECTORY/
RUN npm install
RUN npm install ghostscript4js
......
This diff is collapsed.
{
"name": "pagedjs",
"version": "0.1.34",
"version": "0.1.39",
"description": "Chunks up a document into paged media flows and applies print styles",
"author": "Fred Chasen",
"license": "MIT",
......@@ -9,27 +9,28 @@
"module": "src/index.js",
"browser": "dist/paged.js",
"dependencies": {
"@babel/polyfill": "^7.6.0",
"@babel/runtime": "^7.6.3",
"css-tree": "1.0.0-alpha.29",
"@babel/polyfill": "^7.8.3",
"@babel/runtime": "^7.8.4",
"css-tree": "1.0.0-alpha.39",
"event-emitter": "^0.3.5"
},
"devDependencies": {
"@babel/cli": "^7.6.4",
"@babel/core": "^7.6.4",
"@babel/plugin-proposal-async-generator-functions": "^7.2.0",
"@babel/plugin-transform-runtime": "^7.6.2",
"@babel/preset-env": "^7.6.3",
"@babel/cli": "^7.8.4",
"@babel/core": "^7.8.4",
"@babel/plugin-proposal-async-generator-functions": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.8.3",
"@babel/preset-env": "^7.8.4",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^24.9.0",
"chalk": "^2.4.2",
"eslint": "^6.5.1",
"babel-jest": "^25.1.0",
"chalk": "^3.0.0",
"eslint": "^6.8.0",
"express": "^4.17.1",
"jest": "^24.9.0",
"jest-image-snapshot": "^2.11.0",
"puppeteer": "^2.0.0",
"rimraf": "^3.0.0",
"rollup": "^1.25.2",
"ghostscript4js": "^3.1.1",
"jest": "^25.1.0",
"jest-image-snapshot": "^2.12.0",
"puppeteer": "^2.1.1",
"rimraf": "^3.0.2",
"rollup": "^1.31.1",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-json": "^4.0.0",
"rollup-plugin-livereload": "^1.0.4",
......@@ -48,7 +49,7 @@
"pretest": "npm run build",
"prepublishOnly": "npm run build && npm run compile && npm run legacy",
"watch": "./node_modules/.bin/rollup -w -c",
"lint": "./node_modules/.bin/eslint -c .eslintrc.js src; exit 0",
"lint": "./node_modules/.bin/eslint -c .eslintrc.js src",
"docker": "docker build -t pagedmedia/pagedjs . && docker run -it --security-opt 'seccomp=seccomp.json' -v $(pwd)/specs:/home/node/pagedjs/specs pagedmedia/pagedjs npm test"
},
"repository": {
......@@ -58,8 +59,5 @@
"files": [
"dist",
"lib"
],
"optionalDependencies": {
"ghostscript4js": "^3.1.1"
}
]
}
const TIMEOUT = 10000; // Some book might take longer than this to renderer
describe('bleed', async () => {
describe('bleed', () => {
let page;
let rendered;
beforeAll(async () => {
......
const TIMEOUT = 10000; // Some book might take longer than this to renderer
describe('break-after-avoid', async () => {
describe('break-after-avoid', () => {
let page;
let rendered;
beforeAll(async () => {
......
const TIMEOUT = 10000; // Some book might take longer than this to renderer
describe('break-after-left', async () => {
describe('break-after-left', () => {
let page;
let rendered;
beforeAll(async () => {
......
const TIMEOUT = 10000; // Some book might take longer than this to renderer
describe('break-after-page', async () => {
describe('break-after-page', () => {
let page;
let rendered;
beforeAll(async () => {
......
const TIMEOUT = 10000; // Some book might take longer than this to renderer
describe('break-after-recto', async () => {
describe('break-after-recto', () => {
let page;
let rendered;
beforeAll(async () => {
......
const TIMEOUT = 10000; // Some book might take longer than this to renderer
describe('break-after-right', async () => {
describe('break-after-right', () => {
let page;
let rendered;
beforeAll(async () => {
......
const TIMEOUT = 10000; // Some book might take longer than this to renderer
describe('break-after-verso', async () => {
describe('break-after-verso', () => {
let page;
let rendered;
beforeAll(async () => {
......
const TIMEOUT = 10000; // Some book might take longer than this to renderer
describe('break-before-avoid', async () => {
describe('break-before-avoid', () => {
let page;
let rendered;
beforeAll(async () => {
......
const TIMEOUT = 10000; // Some book might take longer than this to renderer
describe('break-before-left', async () => {
describe('break-before-left', () => {
let page;
let rendered;
beforeAll(async () => {
......
const TIMEOUT = 10000; // Some book might take longer than this to renderer
describe('break-before-page', async () => {
describe('break-before-page', () => {
let page;
let rendered;
beforeAll(async () => {
......
const TIMEOUT = 10000; // Some book might take longer than this to renderer
describe('break-before-right', async () => {
describe('break-before-right', () => {
let page;
let rendered;
beforeAll(async () => {
......
const TIMEOUT = 10000; // Some book might take longer than this to renderer
describe('break-inside-avoid', async () => {
describe('break-inside-avoid', () => {
let page;
let rendered;
beforeAll(async () => {
......
const TIMEOUT = 10000; // Some book might take longer than this to renderer
describe('breaks', async () => {
describe('breaks', () => {
let page;
let rendered;
beforeAll(async () => {
......
const TIMEOUT = 10000; // Some book might take longer than this to renderer
describe('counter-page', async () => {
describe('counter-page', () => {
let page;
let rendered;
beforeAll(async () => {
......
const TIMEOUT = 10000; // Some book might take longer than this to renderer
describe('counter-pages', async () => {
describe('counter-pages', () => {
let page;
let rendered;
beforeAll(async () => {
......
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