mirror of
https://github.com/foliojs/pdfkit.git
synced 2025-12-08 20:15:54 +00:00
Update babel to v7 and jest to v24
This commit is contained in:
parent
c759486d5e
commit
e08d2dfd47
25
.babelrc
25
.babelrc
@ -1,8 +1,27 @@
|
||||
{
|
||||
"presets": [["env", {"modules": false, "targets": {"node": "6.10"}}]],
|
||||
"presets": [
|
||||
[
|
||||
"@babel/preset-env",
|
||||
{
|
||||
"modules": false,
|
||||
"targets": {
|
||||
"node": "6.10"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"env": {
|
||||
"test": {
|
||||
"presets": [["env", {"targets": {"node": "6.10"}}]]
|
||||
"presets": [
|
||||
[
|
||||
"@babel/preset-env",
|
||||
{
|
||||
"targets": {
|
||||
"node": "6.10"
|
||||
}
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
13
package.json
13
package.json
@ -22,10 +22,9 @@
|
||||
},
|
||||
"bugs": "https://github.com/foliojs/pdfkit/issues",
|
||||
"devDependencies": {
|
||||
"babel-core": "^6.26.3",
|
||||
"babel-jest": "^23.6.0",
|
||||
"babel-plugin-external-helpers": "^6.22.0",
|
||||
"babel-preset-env": "^1.7.0",
|
||||
"@babel/core": "^7.0.0",
|
||||
"@babel/preset-env": "^7.0.0",
|
||||
"babel-jest": "^24.7.1",
|
||||
"blob-stream": "^0.1.2",
|
||||
"brace": "^0.2.1",
|
||||
"brfs": "~2.0.1",
|
||||
@ -34,11 +33,11 @@
|
||||
"eslint": "^5.3.0",
|
||||
"iconv-lite": "^0.4.13",
|
||||
"jade": "~1.1.5",
|
||||
"jest": "^23.4.2",
|
||||
"jest": "^24.7.1",
|
||||
"markdown": "~0.5.0",
|
||||
"prettier": "1.15.3",
|
||||
"rollup": "^0.65.0",
|
||||
"rollup-plugin-babel": "^3.0.7",
|
||||
"rollup": "^1.11.0",
|
||||
"rollup-plugin-babel": "^4.0.1",
|
||||
"rollup-plugin-cpy": "^1.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
@ -46,7 +46,7 @@ export default [
|
||||
babelrc: false,
|
||||
presets: [
|
||||
[
|
||||
'env',
|
||||
'@babel/preset-env',
|
||||
{
|
||||
modules: false,
|
||||
targets: {
|
||||
@ -54,8 +54,7 @@ export default [
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
plugins: ['external-helpers']
|
||||
]
|
||||
}),
|
||||
copy({
|
||||
files: ['lib/font/data/*.afm'],
|
||||
@ -79,17 +78,16 @@ export default [
|
||||
babelrc: false,
|
||||
presets: [
|
||||
[
|
||||
'env',
|
||||
'@babel/preset-env',
|
||||
{
|
||||
modules: false,
|
||||
targets: {
|
||||
browsers: ['ie 11']
|
||||
}
|
||||
},
|
||||
exclude: ['@babel/plugin-transform-typeof-symbol']
|
||||
}
|
||||
]
|
||||
],
|
||||
plugins: ['external-helpers'],
|
||||
exclude: ['babel-plugin-transform-es2015-typeof-symbol']
|
||||
]
|
||||
})
|
||||
]
|
||||
},
|
||||
@ -108,7 +106,7 @@ export default [
|
||||
babelrc: false,
|
||||
presets: [
|
||||
[
|
||||
'env',
|
||||
'@babel/preset-env',
|
||||
{
|
||||
modules: false,
|
||||
targets: {
|
||||
@ -122,8 +120,7 @@ export default [
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
plugins: ['external-helpers']
|
||||
]
|
||||
})
|
||||
]
|
||||
},
|
||||
@ -141,7 +138,7 @@ export default [
|
||||
babelrc: false,
|
||||
presets: [
|
||||
[
|
||||
'env',
|
||||
'@babel/preset-env',
|
||||
{
|
||||
loose: true,
|
||||
modules: false,
|
||||
@ -150,8 +147,7 @@ export default [
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
plugins: ['external-helpers']
|
||||
]
|
||||
})
|
||||
]
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user