RenaiApp/forge.config.js

58 lines
1.1 KiB
JavaScript

const packageJson = require('./package');
const ignoreList = [
/^\/\.idea($|\/)/,
/^\/\.vscode($|\/)/,
/^\/\.nyc_output($|\/)/,
/^\/declarations($|\/)/,
/^\/mocks($|\/)/,
/^\/templates($|\/)/,
/^\/test-paths($|\/)/,
/^\/types($|\/)/,
/^\/workspace($|\/)/,
/^\/\.editorconfig/,
/^\/\.eslintignore/,
/^\/\.eslintrc\.json/,
/^\/\.gitignore/,
/^\/\.mocharc\.yml/,
/^\/\.nycrc\.yml/,
/^\/\.prettierrc\.yml/,
/^\/buildfile\.js/,
/^\/CONTRIBUTING\.md/,
/^\/forge\.config\.js/,
/^\/ormconfig\.yml/,
/^\/package-lock\.json/,
/^\/tsconfig\.json/,
/^\/webpack\.config\.js/,
/^\/node_modules\/\.cache($|\/)/,
// test and mock files:
/^\/src\/.*\.(spec|mock)\.(ts|js(\.map)?)/,
// original typescript source and generated source map files:
/^\/src\/.*\.(ts|js\.map)/,
/^\/src\/.*\.eslintrc\.json/,
];
const name = packageJson.productName;
module.exports = {
packagerConfig: {
icon: 'resources/icon',
ignore: ignoreList,
name: name,
},
electronRebuildConfig: {
force: true,
},
makers: [
{
name: '@electron-forge/maker-squirrel',
config: {
name: name,
},
},
],
};