mirror of
https://github.com/daniel-j/fimfic2epub.git
synced 2024-06-27 02:20:24 +12:00
fix a broken dep
This commit is contained in:
parent
e1d6647411
commit
74ccaf1123
|
@ -4,7 +4,7 @@
|
||||||
"name": "fimfic2epub",
|
"name": "fimfic2epub",
|
||||||
"short_name": "fimfic2epub",
|
"short_name": "fimfic2epub",
|
||||||
"description": "Improved EPUB exporter for Fimfiction",
|
"description": "Improved EPUB exporter for Fimfiction",
|
||||||
"version": "1.4.3",
|
"version": "1.4.4",
|
||||||
|
|
||||||
"icons": {
|
"icons": {
|
||||||
"128": "icon-128.png"
|
"128": "icon-128.png"
|
||||||
|
|
20
package.json
20
package.json
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "fimfic2epub",
|
"name": "fimfic2epub",
|
||||||
"version": "1.4.3",
|
"version": "1.4.4",
|
||||||
"description": "Tool to generate improved EPUB ebooks from Fimfiction stories",
|
"description": "Tool to generate improved EPUB ebooks from Fimfiction stories",
|
||||||
"author": "djazz",
|
"author": "djazz",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
@ -21,13 +21,12 @@
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"detect-node": "^2.0.3",
|
"detect-node": "^2.0.3",
|
||||||
"es6-event-emitter": "^1.5.1",
|
|
||||||
"escape-string-regexp": "^1.0.5",
|
"escape-string-regexp": "^1.0.5",
|
||||||
"file-type": "^3.8.0",
|
"file-type": "^3.8.0",
|
||||||
"html-entities": "^1.2.0",
|
"html-entities": "^1.2.0",
|
||||||
"html-to-text": "^2.1.3",
|
"html-to-text": "^2.1.3",
|
||||||
"image-size": "^0.5.0",
|
"image-size": "^0.5.0",
|
||||||
"jszip": "^3.1.1",
|
"jszip": "^3.1.2",
|
||||||
"match-words": "^0.1.0",
|
"match-words": "^0.1.0",
|
||||||
"mithril": "^0.2.5",
|
"mithril": "^0.2.5",
|
||||||
"pretty-data": "^0.40.0",
|
"pretty-data": "^0.40.0",
|
||||||
|
@ -38,27 +37,28 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"autosize": "^3.0.17",
|
"autosize": "^3.0.17",
|
||||||
"babel-core": "^6.13.2",
|
"babel-core": "^6.14.0",
|
||||||
"babel-loader": "^6.2.4",
|
"babel-loader": "^6.2.5",
|
||||||
"babel-preset-es2015": "^6.13.2",
|
"babel-preset-es2015": "^6.14.0",
|
||||||
"babel-preset-node6": "^11.0.0",
|
"babel-preset-node6": "^11.0.0",
|
||||||
"babel-register": "^6.11.6",
|
"babel-register": "^6.14.0",
|
||||||
"del": "^2.2.2",
|
"del": "^2.2.2",
|
||||||
|
"es6-event-emitter": "^1.5.1",
|
||||||
"exports-loader": "^0.6.3",
|
"exports-loader": "^0.6.3",
|
||||||
"file-saver": "^1.3.2",
|
"file-saver": "^1.3.2",
|
||||||
"gulp": "^3.9.1",
|
"gulp": "^3.9.1",
|
||||||
"gulp-filter": "^4.0.0",
|
"gulp-filter": "^4.0.0",
|
||||||
"gulp-json-editor": "^2.2.1",
|
"gulp-json-editor": "^2.2.1",
|
||||||
"gulp-standard": "^7.0.1",
|
"gulp-standard": "^8.0.2",
|
||||||
"gulp-util": "^3.0.7",
|
"gulp-util": "^3.0.7",
|
||||||
"gulp-watch": "^4.3.9",
|
"gulp-watch": "^4.3.9",
|
||||||
"gulp-zip": "^3.2.0",
|
"gulp-zip": "^3.2.0",
|
||||||
"lazypipe": "^1.0.1",
|
"lazypipe": "^1.0.1",
|
||||||
"raw-loader": "^0.5.1",
|
"raw-loader": "^0.5.1",
|
||||||
"run-sequence": "^1.2.2",
|
"run-sequence": "^1.2.2",
|
||||||
"standard": "^7.1.2",
|
"standard": "^8.0.0",
|
||||||
"stylus": "^0.54.5",
|
"stylus": "^0.54.5",
|
||||||
"stylus-loader": "^2.2.0",
|
"stylus-loader": "^2.3.1",
|
||||||
"webpack": "^2.1.0-beta.20",
|
"webpack": "^2.1.0-beta.20",
|
||||||
"webpack-node-externals": "^1.3.3"
|
"webpack-node-externals": "^1.3.3"
|
||||||
},
|
},
|
||||||
|
|
|
@ -257,7 +257,6 @@ class FimFic2Epub extends Emitter {
|
||||||
this.progress(0, 0, 'Fetching remote files...')
|
this.progress(0, 0, 'Fetching remote files...')
|
||||||
this.pcache.remoteResources = new Promise((resolve, reject) => {
|
this.pcache.remoteResources = new Promise((resolve, reject) => {
|
||||||
let iter = this.remoteResources.entries()
|
let iter = this.remoteResources.entries()
|
||||||
let count = 0
|
|
||||||
let completeCount = 0
|
let completeCount = 0
|
||||||
|
|
||||||
let recursive = () => {
|
let recursive = () => {
|
||||||
|
@ -271,8 +270,6 @@ class FimFic2Epub extends Emitter {
|
||||||
let url = r[0]
|
let url = r[0]
|
||||||
r = r[1]
|
r = r[1]
|
||||||
|
|
||||||
count++
|
|
||||||
|
|
||||||
fetchRemote(url, 'arraybuffer').then((data) => {
|
fetchRemote(url, 'arraybuffer').then((data) => {
|
||||||
r.dest = null
|
r.dest = null
|
||||||
let info = fileType(isNode ? data : new Uint8Array(data))
|
let info = fileType(isNode ? data : new Uint8Array(data))
|
||||||
|
|
|
@ -83,9 +83,9 @@ function sortSpineItems (items) {
|
||||||
|
|
||||||
export function createOpf (ffc) {
|
export function createOpf (ffc) {
|
||||||
let remotes = []
|
let remotes = []
|
||||||
let remoteCounter = 0
|
// let remoteCounter = 0
|
||||||
ffc.remoteResources.forEach((r, url) => {
|
ffc.remoteResources.forEach((r, url) => {
|
||||||
remoteCounter++
|
// remoteCounter++
|
||||||
if (!ffc.options.includeExternal) {
|
if (!ffc.options.includeExternal) {
|
||||||
// hack-ish, but what can I do?
|
// hack-ish, but what can I do?
|
||||||
// turns out only video and audio can be remote resources.. :I
|
// turns out only video and audio can be remote resources.. :I
|
||||||
|
|
|
@ -18,7 +18,10 @@ const bundleExtensionConfig = {
|
||||||
module: {
|
module: {
|
||||||
loaders: [
|
loaders: [
|
||||||
{
|
{
|
||||||
test: /\.js$/, loader: 'babel', exclude: /node_modules/, query: {
|
test: /\.js$/,
|
||||||
|
loader: 'babel',
|
||||||
|
exclude: /node_modules/,
|
||||||
|
query: {
|
||||||
sourceMaps: true,
|
sourceMaps: true,
|
||||||
presets: ['es2015']
|
presets: ['es2015']
|
||||||
}
|
}
|
||||||
|
@ -66,7 +69,10 @@ const bundleNpmModuleConfig = {
|
||||||
module: {
|
module: {
|
||||||
loaders: [
|
loaders: [
|
||||||
{
|
{
|
||||||
test: /\.js$/, loader: 'babel', exclude: /node_modules/, query: {
|
test: /\.js$/,
|
||||||
|
loader: 'babel',
|
||||||
|
exclude: /node_modules/,
|
||||||
|
query: {
|
||||||
sourceMaps: !inProduction,
|
sourceMaps: !inProduction,
|
||||||
presets: ['es2015']
|
presets: ['es2015']
|
||||||
}
|
}
|
||||||
|
@ -89,7 +95,7 @@ const bundleNpmModuleConfig = {
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
externals: [nodeExternals(), 'exports?tidy_html5!tidy-html5'],
|
externals: [nodeExternals({whitelist: ['es6-event-emitter', /^babel-runtime/]}), 'exports?tidy_html5!tidy-html5'],
|
||||||
|
|
||||||
plugins: [],
|
plugins: [],
|
||||||
devtool: 'source-map',
|
devtool: 'source-map',
|
||||||
|
|
Loading…
Reference in a new issue