mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-12-23 10:38:55 +00:00
Merge pull request #34 from jenslind/feature/default-ignores
Ignore this and related modules
This commit is contained in:
commit
3c4bcbfc41
5
index.js
5
index.js
@ -31,6 +31,11 @@ module.exports = function packager (opts, cb) {
|
|||||||
default: return cb(new Error('Unsupported platform. Must be either darwin, linux, or win32'))
|
default: return cb(new Error('Unsupported platform. Must be either darwin, linux, or win32'))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Ignore this and related modules by default
|
||||||
|
var default_ignores = ['node_modules/electron-prebuilt', 'node_modules/electron-packager', '.git']
|
||||||
|
if (opts.ignore && !Array.isArray(opts.ignore)) opts.ignore = [opts.ignore]
|
||||||
|
opts.ignore = (opts.ignore) ? opts.ignore.concat(default_ignores) : default_ignores
|
||||||
|
|
||||||
download({
|
download({
|
||||||
platform: platform,
|
platform: platform,
|
||||||
arch: arch,
|
arch: arch,
|
||||||
|
Loading…
Reference in New Issue
Block a user