2019-12-10 23:36:34 +01:00
|
|
|
const packageJson = require('./package');
|
|
|
|
|
2019-07-26 22:28:22 +02:00
|
|
|
const ignoreList = [
|
|
|
|
/^\/\.idea($|\/)/,
|
|
|
|
/^\/\.vscode($|\/)/,
|
2019-11-20 23:00:16 +01:00
|
|
|
|
2019-10-11 01:13:41 +02:00
|
|
|
/^\/\.nyc_output($|\/)/,
|
2019-10-05 03:09:34 +02:00
|
|
|
/^\/declarations($|\/)/,
|
2019-11-18 22:38:51 +01:00
|
|
|
/^\/mocks($|\/)/,
|
2019-10-15 21:30:56 +02:00
|
|
|
/^\/templates($|\/)/,
|
2019-12-10 23:33:48 +01:00
|
|
|
/^\/test-paths($|\/)/,
|
2020-02-08 23:26:57 +01:00
|
|
|
/^\/types($|\/)/,
|
2019-11-20 23:39:35 +01:00
|
|
|
/^\/workspace($|\/)/,
|
2019-11-20 23:00:16 +01:00
|
|
|
|
2019-07-26 22:28:22 +02:00
|
|
|
/^\/\.editorconfig/,
|
|
|
|
/^\/\.eslintignore/,
|
|
|
|
/^\/\.eslintrc\.json/,
|
|
|
|
/^\/\.gitignore/,
|
2019-10-11 01:13:41 +02:00
|
|
|
/^\/\.mocharc\.yml/,
|
|
|
|
/^\/\.nycrc\.yml/,
|
2019-07-26 22:28:22 +02:00
|
|
|
/^\/\.prettierrc\.yml/,
|
2019-12-05 20:05:53 +01:00
|
|
|
/^\/buildfile\.js/,
|
|
|
|
/^\/CONTRIBUTING\.md/,
|
2019-11-20 23:00:16 +01:00
|
|
|
/^\/forge\.config\.js/,
|
2020-04-10 04:04:13 +02:00
|
|
|
/^\/ormconfig\.yml/,
|
2019-10-05 03:09:34 +02:00
|
|
|
/^\/package-lock\.json/,
|
2019-07-26 22:28:22 +02:00
|
|
|
/^\/tsconfig\.json/,
|
|
|
|
/^\/webpack\.config\.js/,
|
2019-11-20 23:00:16 +01:00
|
|
|
|
|
|
|
/^\/node_modules\/\.cache($|\/)/,
|
2020-02-08 23:26:57 +01:00
|
|
|
// test and mock files:
|
|
|
|
/^\/src\/.*\.(spec|mock)\.(ts|js(\.map)?)/,
|
|
|
|
// original typescript source and generated source map files:
|
2019-11-20 23:00:16 +01:00
|
|
|
/^\/src\/.*\.(ts|js\.map)/,
|
2019-12-15 01:14:39 +01:00
|
|
|
/^\/src\/.*\.eslintrc\.json/,
|
2019-07-26 22:28:22 +02:00
|
|
|
];
|
|
|
|
|
2019-12-10 23:36:34 +01:00
|
|
|
const name = packageJson.productName;
|
|
|
|
|
2019-07-26 22:28:22 +02:00
|
|
|
module.exports = {
|
|
|
|
packagerConfig: {
|
|
|
|
icon: 'resources/icon',
|
|
|
|
ignore: ignoreList,
|
2019-12-10 23:36:34 +01:00
|
|
|
name: name,
|
2019-07-26 22:28:22 +02:00
|
|
|
},
|
|
|
|
electronRebuildConfig: {
|
|
|
|
force: true,
|
|
|
|
},
|
|
|
|
makers: [
|
|
|
|
{
|
|
|
|
name: '@electron-forge/maker-squirrel',
|
2019-12-10 23:36:34 +01:00
|
|
|
config: {
|
|
|
|
name: name,
|
|
|
|
},
|
2019-07-26 22:28:22 +02:00
|
|
|
},
|
|
|
|
],
|
|
|
|
};
|