@vivliostyle/print 2.30.5 → 2.30.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1510 -7
- package/dist/index.cjs.js.map +7 -1
- package/dist/index.es6.js +1510 -7
- package/dist/index.es6.js.map +7 -1
- package/package.json +6 -14
- package/rollup.config.js +0 -76
- package/rollup.demo.config.js +0 -37
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vivliostyle/print",
|
|
3
|
-
"version": "2.30.
|
|
3
|
+
"version": "2.30.7",
|
|
4
4
|
"description": "Allows page-layouting using the vivliostyle for printing within a website without destroying the original layout",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"jsnext:main": "dist/index.es6.js",
|
|
7
7
|
"module": "dist/index.es6.js",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"prebuild": "npm run lint",
|
|
10
|
-
"build": "
|
|
10
|
+
"build": "esbuild src/index.js --bundle --outfile=dist/index.cjs.js --format=cjs --minify --sourcemap && esbuild src/index.js --bundle --outfile=dist/index.es6.js --format=esm --minify --sourcemap",
|
|
11
11
|
"prepublishOnly": "npm run build",
|
|
12
|
-
"build_demo": "
|
|
12
|
+
"build_demo": "esbuild demo/index.js --bundle --outfile=demo/bundle.js --format=iife --minify --sourcemap",
|
|
13
13
|
"prepare": "npm run build",
|
|
14
14
|
"lint": "eslint src/*",
|
|
15
15
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -35,17 +35,9 @@
|
|
|
35
35
|
},
|
|
36
36
|
"homepage": "https://github.com/vivliostyle/vivliostyle-print#readme",
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@
|
|
39
|
-
"
|
|
38
|
+
"@vivliostyle/core": "^2.30.7",
|
|
39
|
+
"esbuild": "^0.24.0",
|
|
40
40
|
"eslint": "^7.19.0",
|
|
41
|
-
"gh-pages": "^
|
|
42
|
-
"rollup": "^2.38.5",
|
|
43
|
-
"rollup-plugin-babel": "^4.4.0",
|
|
44
|
-
"rollup-plugin-commonjs": "^10.1.0",
|
|
45
|
-
"rollup-plugin-node-resolve": "^5.2.0",
|
|
46
|
-
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
47
|
-
"rollup-plugin-string": "^3.0.0",
|
|
48
|
-
"rollup-plugin-strip": "^1.2.2",
|
|
49
|
-
"rollup-plugin-terser": "^7.0.2"
|
|
41
|
+
"gh-pages": "^6.2.0"
|
|
50
42
|
}
|
|
51
43
|
}
|
package/rollup.config.js
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import babel from "rollup-plugin-babel"
|
|
2
|
-
import nodeResolve from "rollup-plugin-node-resolve"
|
|
3
|
-
import commonJS from "rollup-plugin-commonjs"
|
|
4
|
-
import strip from "rollup-plugin-strip"
|
|
5
|
-
import sourcemaps from "rollup-plugin-sourcemaps"
|
|
6
|
-
import {
|
|
7
|
-
terser
|
|
8
|
-
} from "rollup-plugin-terser"
|
|
9
|
-
import {string} from "rollup-plugin-string"
|
|
10
|
-
import pkg from "./package.json"
|
|
11
|
-
|
|
12
|
-
const banner = `\
|
|
13
|
-
/**
|
|
14
|
-
* ${pkg.name} v${pkg.version}
|
|
15
|
-
* ${pkg.description}
|
|
16
|
-
*
|
|
17
|
-
* @author ${pkg.author}
|
|
18
|
-
* @license ${pkg.license}
|
|
19
|
-
* @preserve
|
|
20
|
-
*/
|
|
21
|
-
`
|
|
22
|
-
|
|
23
|
-
export default [
|
|
24
|
-
{
|
|
25
|
-
input: "src/index.js",
|
|
26
|
-
output: {
|
|
27
|
-
format: "cjs",
|
|
28
|
-
file: pkg.main,
|
|
29
|
-
sourcemap: true,
|
|
30
|
-
banner
|
|
31
|
-
},
|
|
32
|
-
plugins: [
|
|
33
|
-
string({
|
|
34
|
-
include: "**/*.css",
|
|
35
|
-
}),
|
|
36
|
-
nodeResolve(),
|
|
37
|
-
sourcemaps(),
|
|
38
|
-
commonJS({
|
|
39
|
-
include: '../**',
|
|
40
|
-
sourceMap: true
|
|
41
|
-
}),
|
|
42
|
-
strip({
|
|
43
|
-
debugger: false,
|
|
44
|
-
functions: [ 'console.*', 'console.warn.apply', 'console.info.apply', 'console.debug.apply', 'console.error.apply' ]
|
|
45
|
-
}),
|
|
46
|
-
babel(),
|
|
47
|
-
terser()
|
|
48
|
-
]
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
input: "src/index.js",
|
|
52
|
-
output: {
|
|
53
|
-
format: "esm",
|
|
54
|
-
file: pkg.module,
|
|
55
|
-
name: "lib",
|
|
56
|
-
sourcemap: true,
|
|
57
|
-
banner
|
|
58
|
-
},
|
|
59
|
-
plugins: [
|
|
60
|
-
string({
|
|
61
|
-
include: "**/*.css",
|
|
62
|
-
}),
|
|
63
|
-
nodeResolve(),
|
|
64
|
-
sourcemaps(),
|
|
65
|
-
commonJS({
|
|
66
|
-
include: '../**',
|
|
67
|
-
sourceMap: true
|
|
68
|
-
}),
|
|
69
|
-
strip({
|
|
70
|
-
debugger: false,
|
|
71
|
-
functions: [ 'console.*', 'console.warn.apply', 'console.info.apply', 'console.debug.apply', 'console.error.apply' ]
|
|
72
|
-
}),
|
|
73
|
-
terser()
|
|
74
|
-
]
|
|
75
|
-
}
|
|
76
|
-
]
|
package/rollup.demo.config.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import babel from "rollup-plugin-babel"
|
|
2
|
-
import nodeResolve from "rollup-plugin-node-resolve"
|
|
3
|
-
import commonJS from "rollup-plugin-commonjs"
|
|
4
|
-
import strip from "rollup-plugin-strip"
|
|
5
|
-
import sourcemaps from "rollup-plugin-sourcemaps"
|
|
6
|
-
import {
|
|
7
|
-
terser
|
|
8
|
-
} from "rollup-plugin-terser"
|
|
9
|
-
import {string} from "rollup-plugin-string"
|
|
10
|
-
|
|
11
|
-
export default {
|
|
12
|
-
input: "demo/index.js",
|
|
13
|
-
output: {
|
|
14
|
-
format: "iife",
|
|
15
|
-
file: "demo/bundle.js",
|
|
16
|
-
sourcemap: true
|
|
17
|
-
},
|
|
18
|
-
plugins: [
|
|
19
|
-
string({
|
|
20
|
-
include: "../**/*.css",
|
|
21
|
-
}),
|
|
22
|
-
nodeResolve({
|
|
23
|
-
mainFields: ['browser', 'main']
|
|
24
|
-
}),
|
|
25
|
-
sourcemaps(),
|
|
26
|
-
commonJS({
|
|
27
|
-
include: '../**',
|
|
28
|
-
sourceMap: true
|
|
29
|
-
}),
|
|
30
|
-
strip({
|
|
31
|
-
debugger: false,
|
|
32
|
-
functions: [ 'console.*', 'console.warn.apply', 'console.info.apply', 'console.debug.apply', 'console.error.apply' ]
|
|
33
|
-
}),
|
|
34
|
-
babel(),
|
|
35
|
-
terser()
|
|
36
|
-
]
|
|
37
|
-
}
|