fix standalone build, bump version

This commit is contained in:
daniel-j 2020-08-10 11:34:53 +02:00
parent 41323ca9a1
commit c27f1aa5cc
6 changed files with 13 additions and 6 deletions

2
.gitignore vendored
View file

@ -8,6 +8,4 @@ extension.zip
fimfic2epub.safariextension/ fimfic2epub.safariextension/
dist/ dist/
build/ build/
bin/
*.epub *.epub
*.node

1
bin/fimfic2epub Symbolic link
View file

@ -0,0 +1 @@
../build/fimfic2epub

View file

@ -139,7 +139,7 @@ gulp.task('binaries', gulp.series('version', function binariesTask () {
.pipe(rename({ extname: '' })) .pipe(rename({ extname: '' }))
.pipe(header('#!/usr/bin/env node\n// fimfic2epub ' + packageVersion + '\n')) .pipe(header('#!/usr/bin/env node\n// fimfic2epub ' + packageVersion + '\n'))
.pipe(chmod(0o777)) .pipe(chmod(0o777))
.pipe(gulp.dest('bin/')) .pipe(gulp.dest('build/'))
})) }))
gulp.task('pack:firefox', gulp.series('version', function packFirefox () { gulp.task('pack:firefox', gulp.series('version', function packFirefox () {

2
package-lock.json generated
View file

@ -1,6 +1,6 @@
{ {
"name": "fimfic2epub", "name": "fimfic2epub",
"version": "1.7.44", "version": "1.7.45",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View file

@ -1,6 +1,6 @@
{ {
"name": "fimfic2epub", "name": "fimfic2epub",
"version": "1.7.44", "version": "1.7.45",
"description": "Tool to generate improved EPUB ebooks from Fimfiction stories", "description": "Tool to generate improved EPUB ebooks from Fimfiction stories",
"author": "djazz", "author": "djazz",
"license": "MIT", "license": "MIT",

View file

@ -182,6 +182,11 @@ const bundleNpmBinaryConfig = {
__dirname: false __dirname: false
}, },
externals: [nodeExternals(), {
'./FimFic2Epub': 'require(\'../dist/fimfic2epub\')',
'../package.json': 'require(\'../package.json\')'
}],
plugins: [], plugins: [],
performance: { performance: {
hints: false hints: false
@ -231,7 +236,10 @@ const bundleStaticNpmModuleConfig = {
}, },
{ {
test: /\.node$/, test: /\.node$/,
use: 'node-loader' loader: 'node-loader',
options: {
name: '[name].[ext]'
}
} }
] ]
}, },