chore: add electron main script and config rollup
Dependencies
- [2]
M5P5UHKCchore: initial root configurations
Change contents
- edit in "tsconfig.json" at line 16
"declarationDir": "tmp", - replacement in "tsconfig.json" at line 19
"declaration": true,"composite": true,"incremental": true, - replacement in "tsconfig.json" at line 31
"include": ["packages/*/src/**/*", "packages/*/tests/**/*"]"include": ["packages/*/src/**/*", "packages/*/tests/**/*", "rollup.config.ts"] - file addition: rollup.config.ts[1.0]
/* eslint-disable node/no-unpublished-import */import commonjs from '@rollup/plugin-commonjs'import resolve from '@rollup/plugin-node-resolve'import { terser } from 'rollup-plugin-terser'import ts from '@rollup/plugin-typescript'import babel from '@rollup/plugin-babel'import builtins from 'builtin-modules'//import sourcemaps from 'rollup-plugin-sourcemaps'import jsonfile from '@rollup/plugin-json'import alias from '@rollup/plugin-alias'import { Plugin, RollupOptions, OutputOptions } from 'rollup'if (!process.env.NODE_ENV || process.env.NODE_ENV == '') {throw Error('"process.env.NODE_ENV" needs to be set when bundling with Rollup.')}function configurePlugins(rootDir: string): Plugin[] {if (process.env.NODE_ENV === 'production') {return [//sourcemaps(),alias({entries: [],}),resolve({rootDir,extensions: ['.mjs', '.js', '.json', '.jsx', '.node'],}),commonjs({sourceMap: true,}),jsonfile({}),ts(),babel({sourcemap: true,babelHelpers: 'bundled',plugins: ['babel-plugin-inferno',['transform-inline-environment-variables',{include: ['NODE_ENV'],},],'transform-remove-undefined','transform-inline-consecutive-adds','transform-property-literals','transform-regexp-constructors','minify-guarded-expressions',['minify-dead-code-elimination',{keepFnName: true,/* eslint unicorn/prevent-abbreviations: "off" */keepFnArgs: true,keepClassName: true,tdz: true,},],],configFile: false,babelrc: false,}),terser({toplevel: true,ecma: 2020,parse: {shebang: true,},output: {comments: false,shebang: true,//preamble: formatLicense(),},}),]} else {return [//sourcemaps(),alias({entries: [{find: 'inferno',replacement: __dirname + '/node_modules/inferno/dist/index.dev.esm.js',},],}),resolve({rootDir,extensions: ['.mjs', '.js', '.json', '.jsx', '.node'],}),commonjs({sourceMap: true,}),jsonfile({}),ts(),babel({sourcemap: true,babelHelpers: 'bundled',plugins: ['babel-plugin-inferno',['transform-inline-environment-variables', { include: ['NODE_ENV'] }],'transform-inline-consecutive-adds',['minify-dead-code-elimination',{keepFnName: true,/* eslint unicorn/prevent-abbreviations: "off" */keepFnArgs: true,keepClassName: true,tdz: true,},],],configFile: false,babelrc: false,}),terser({ecma: 2020,keep_classnames: true,//keep_fnames: true,toplevel: true,parse: {shebang: true,},compress: {/* eslint unicorn/prevent-abbreviations: "off" */defaults: false,arrows: true,evaluate: true,properties: true,computed_props: true,dead_code: true,},output: {comments: 'some',shebang: true,beautify: true,semicolons: false,keep_quoted_props: true,indent_level: 2,max_line_len: 100,},}),]}}function outputBundle(filename: string): OutputOptions {return {file: filename,format: 'es',sourcemap: true,}}const bundles: RollupOptions[] = [{input: 'packages/basic/src/main.ts',external: builtins.concat('electron'),plugins: configurePlugins('packages/basic'),output: {...outputBundle('packages/dist/main.js'),format: 'cjs',},},]export default bundles - edit in "pnpm-lock.yaml" at line 49
rollup-plugin-sourcemaps: ^0.6.3 - edit in "pnpm-lock.yaml" at line 94
rollup-plugin-sourcemaps: 0.6.3_6a81cd64d5101efbbdec0e3858b03196 - edit in "pnpm-lock.yaml" at line 98
packages/basic:specifiers:electron: ^16.0.2dependencies:electron: 16.0.2packages/dist:specifiers:electron: ^16.0.2dependencies:electron: 16.0.2 - edit in "pnpm-lock.yaml" at line 366
/@electron/get/1.13.1:resolution: {integrity: sha512-U5vkXDZ9DwXtkPqlB45tfYnnYBN8PePp1z/XDCupnSpdrxT8/ThCv9WCwPLf9oqiSGZTkH6dx2jDUPuoXpjkcA==}engines: {node: '>=8.6'}dependencies:debug: 4.3.3env-paths: 2.2.1fs-extra: 8.1.0got: 9.6.0progress: 2.0.3semver: 6.3.0sumchecker: 3.0.1optionalDependencies:global-agent: 3.0.0global-tunnel-ng: 2.7.1transitivePeerDependencies:- supports-colordev: false - edit in "pnpm-lock.yaml" at line 559
/@sindresorhus/is/0.14.0:resolution: {integrity: sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==}engines: {node: '>=6'}dev: false/@szmarczak/http-timer/1.1.2:resolution: {integrity: sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==}engines: {node: '>=6'}dependencies:defer-to-connect: 1.1.3dev: false - edit in "pnpm-lock.yaml" at line 605
/@types/node/14.17.34:resolution: {integrity: sha512-USUftMYpmuMzeWobskoPfzDi+vkpe0dvcOBRNOscFrGxVp4jomnRxWuVohgqBow2xyIPC0S3gjxV/5079jhmDg==}dev: false - edit in "pnpm-lock.yaml" at line 1067
/boolean/3.1.4:resolution: {integrity: sha512-3hx0kwU3uzG6ReQ3pnaFQPSktpBw6RHN3/ivDKEuU8g1XSfafowyvDnadjv1xp8IZqhtSukxlwv9bF6FhX8m0w==}dev: falseoptional: true - edit in "pnpm-lock.yaml" at line 1114
/buffer-crc32/0.2.13:resolution: {integrity: sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI=}dev: false - edit in "pnpm-lock.yaml" at line 1126
dev: true - edit in "pnpm-lock.yaml" at line 1146
/cacheable-request/6.1.0:resolution: {integrity: sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==}engines: {node: '>=8'}dependencies:clone-response: 1.0.2get-stream: 5.2.0http-cache-semantics: 4.1.0keyv: 3.1.0lowercase-keys: 2.0.0normalize-url: 4.5.1responselike: 1.0.2dev: false - edit in "pnpm-lock.yaml" at line 1291
/clone-response/1.0.2:resolution: {integrity: sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws=}dependencies:mimic-response: 1.0.1dev: false - replacement in "pnpm-lock.yaml" at line 1426
dev: true/config-chain/1.1.13:resolution: {integrity: sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==}dependencies:ini: 1.3.8proto-list: 1.2.4dev: falseoptional: true - edit in "pnpm-lock.yaml" at line 1461
dev: true - edit in "pnpm-lock.yaml" at line 1612
dev: true - edit in "pnpm-lock.yaml" at line 1629
dev: true - edit in "pnpm-lock.yaml" at line 1639
/decompress-response/3.3.0:resolution: {integrity: sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=}engines: {node: '>=4'}dependencies:mimic-response: 1.0.1dev: false - edit in "pnpm-lock.yaml" at line 1667
/defer-to-connect/1.1.3:resolution: {integrity: sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==}dev: false - edit in "pnpm-lock.yaml" at line 1677
dev: true - edit in "pnpm-lock.yaml" at line 1709
/detect-node/2.1.0:resolution: {integrity: sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==}dev: falseoptional: true - edit in "pnpm-lock.yaml" at line 1768
/duplexer3/0.1.4:resolution: {integrity: sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=}dev: false - edit in "pnpm-lock.yaml" at line 1791
/electron/16.0.2:resolution: {integrity: sha512-kT746yVMztrP4BbT3nrFNcUcfgFu2yelUw6TWBVTy0pju+fBISaqcvoiMrq+8U0vRpoXSu2MJYygOf4T0Det7g==}engines: {node: '>= 8.6'}hasBin: truerequiresBuild: truedependencies:'@electron/get': 1.13.1'@types/node': 14.17.34extract-zip: 1.7.0transitivePeerDependencies:- supports-colordev: false/encodeurl/1.0.2:resolution: {integrity: sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=}engines: {node: '>= 0.8'}dev: falseoptional: true - edit in "pnpm-lock.yaml" at line 1815
dev: true - edit in "pnpm-lock.yaml" at line 1830
/env-paths/2.2.1:resolution: {integrity: sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==}engines: {node: '>=6'}dev: false - edit in "pnpm-lock.yaml" at line 1858
/es6-error/4.1.1:resolution: {integrity: sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==}dev: falseoptional: true - edit in "pnpm-lock.yaml" at line 1901
dev: true - edit in "pnpm-lock.yaml" at line 2184
/extract-zip/1.7.0:resolution: {integrity: sha512-xoh5G1W/PB0/27lXgMQyIhP5DSY/LhoCsOyZgb+6iMmRtCwVBo55uKaMoEYrDCKQhWvqEip5ZPKAc6eFNyf/MA==}hasBin: truedependencies:concat-stream: 1.6.2debug: 2.6.9mkdirp: 0.5.5yauzl: 2.10.0dev: false - edit in "pnpm-lock.yaml" at line 2237
/fd-slicer/1.1.0:resolution: {integrity: sha1-JcfInLH5B3+IkbvmHY85Dq4lbx4=}dependencies:pend: 1.2.0dev: false - edit in "pnpm-lock.yaml" at line 2363
/fs-extra/8.1.0:resolution: {integrity: sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==}engines: {node: '>=6 <7 || >=8'}dependencies:graceful-fs: 4.2.8jsonfile: 4.0.0universalify: 0.1.2dev: false - edit in "pnpm-lock.yaml" at line 2429
/get-stream/4.1.0:resolution: {integrity: sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==}engines: {node: '>=6'}dependencies:pump: 3.0.0dev: false/get-stream/5.2.0:resolution: {integrity: sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==}engines: {node: '>=8'}dependencies:pump: 3.0.0dev: false - edit in "pnpm-lock.yaml" at line 2509
/global-agent/3.0.0:resolution: {integrity: sha512-PT6XReJ+D07JvGoxQMkT6qji/jVNfX/h364XHZOWeRzy64sSFr+xJ5OX7LI3b4MPQzdL4H8Y8M0xzPpsVMwA8Q==}engines: {node: '>=10.0'}requiresBuild: truedependencies:boolean: 3.1.4es6-error: 4.1.1matcher: 3.0.0roarr: 2.15.4semver: 7.3.5serialize-error: 7.0.1dev: falseoptional: true - edit in "pnpm-lock.yaml" at line 2543
/global-tunnel-ng/2.7.1:resolution: {integrity: sha512-4s+DyciWBV0eK148wqXxcmVAbFVPqtc3sEtUE/GTQfuU80rySLcMhUmHKSHI7/LDj8q0gDYI1lIhRRB7ieRAqg==}engines: {node: '>=0.10'}requiresBuild: truedependencies:encodeurl: 1.0.2lodash: 4.17.21npm-conf: 1.1.3tunnel: 0.0.6dev: falseoptional: true - edit in "pnpm-lock.yaml" at line 2567
/globalthis/1.0.2:resolution: {integrity: sha512-ZQnSFO1la8P7auIOQECnm0sSuoMeaSq0EEdXMBFF2QJO4uNcwbyhSgG3MruWNbFTqCLmxVwGOl7LZ9kASvHdeQ==}engines: {node: '>= 0.4'}dependencies:define-properties: 1.1.3dev: falseoptional: true - edit in "pnpm-lock.yaml" at line 2594
/got/9.6.0:resolution: {integrity: sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==}engines: {node: '>=8.6'}dependencies:'@sindresorhus/is': 0.14.0'@szmarczak/http-timer': 1.1.2cacheable-request: 6.1.0decompress-response: 3.3.0duplexer3: 0.1.4get-stream: 4.1.0lowercase-keys: 1.0.1mimic-response: 1.0.1p-cancelable: 1.1.0to-readable-stream: 1.0.0url-parse-lax: 3.0.0dev: false - edit in "pnpm-lock.yaml" at line 2614
dev: true - edit in "pnpm-lock.yaml" at line 2822
/http-cache-semantics/4.1.0:resolution: {integrity: sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==}dev: false - edit in "pnpm-lock.yaml" at line 2910
dev: true - edit in "pnpm-lock.yaml" at line 2913
dev: true - edit in "pnpm-lock.yaml" at line 3140
dev: true - edit in "pnpm-lock.yaml" at line 3187
/json-buffer/3.0.0:resolution: {integrity: sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg=}dev: false - edit in "pnpm-lock.yaml" at line 3202
/json-stringify-safe/5.0.1:resolution: {integrity: sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=}dev: falseoptional: true - edit in "pnpm-lock.yaml" at line 3215
/jsonfile/4.0.0:resolution: {integrity: sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=}optionalDependencies:graceful-fs: 4.2.8dev: false - edit in "pnpm-lock.yaml" at line 3225
/keyv/3.1.0:resolution: {integrity: sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==}dependencies:json-buffer: 3.0.0dev: false - edit in "pnpm-lock.yaml" at line 3372
dev: true - edit in "pnpm-lock.yaml" at line 3385
/lowercase-keys/1.0.1:resolution: {integrity: sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==}engines: {node: '>=0.10.0'}dev: false - edit in "pnpm-lock.yaml" at line 3391
/lowercase-keys/2.0.0:resolution: {integrity: sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==}engines: {node: '>=8'}dev: false - edit in "pnpm-lock.yaml" at line 3401
dev: true - edit in "pnpm-lock.yaml" at line 3500
/matcher/3.0.0:resolution: {integrity: sha512-OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==}engines: {node: '>=10'}dependencies:escape-string-regexp: 4.0.0dev: falseoptional: true - edit in "pnpm-lock.yaml" at line 3574
/mimic-response/1.0.1:resolution: {integrity: sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==}engines: {node: '>=4'}dev: false - edit in "pnpm-lock.yaml" at line 3592
dev: true - edit in "pnpm-lock.yaml" at line 3600
/mkdirp/0.5.5:resolution: {integrity: sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==}hasBin: truedependencies:minimist: 1.2.5dev: false - edit in "pnpm-lock.yaml" at line 3610
dev: true - edit in "pnpm-lock.yaml" at line 3613
dev: true - edit in "pnpm-lock.yaml" at line 3712
/normalize-url/4.5.1:resolution: {integrity: sha512-9UZCFRHQdNrfTpGg8+1INIg93B6zE0aXMVFkw1WFwvO4SlZywU6aLg5Of0Ap/PgcbSw4LNxvMWXMeugwMCX0AA==}engines: {node: '>=8'}dev: false - edit in "pnpm-lock.yaml" at line 3728
/npm-conf/1.1.3:resolution: {integrity: sha512-Yic4bZHJOt9RCFbRP3GgpqhScOY4HH3V2P8yBj6CeYq118Qr+BLXqT2JvpJ00mryLESpgOxf5XlFv4ZjXxLScw==}engines: {node: '>=4'}dependencies:config-chain: 1.1.13pify: 3.0.0dev: falseoptional: true - edit in "pnpm-lock.yaml" at line 3766
dev: true - edit in "pnpm-lock.yaml" at line 3821
dev: true - edit in "pnpm-lock.yaml" at line 3856
/p-cancelable/1.1.0:resolution: {integrity: sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==}engines: {node: '>=6'}dev: false - edit in "pnpm-lock.yaml" at line 3999
/pend/1.2.0:resolution: {integrity: sha1-elfrVQpng/kRUzH89GY9XI4AelA=}dev: false - edit in "pnpm-lock.yaml" at line 4020
/pify/3.0.0:resolution: {integrity: sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=}engines: {node: '>=4'}dev: falseoptional: true - edit in "pnpm-lock.yaml" at line 4435
/prepend-http/2.0.0:resolution: {integrity: sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=}engines: {node: '>=4'}dev: false - edit in "pnpm-lock.yaml" at line 4454
dev: true - replacement in "pnpm-lock.yaml" at line 4458
dev: true/proto-list/1.2.4:resolution: {integrity: sha1-IS1b/hMYMGpCD2QCuOJv85ZHqEk=}dev: falseoptional: true - edit in "pnpm-lock.yaml" at line 4475
/pump/3.0.0:resolution: {integrity: sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==}dependencies:end-of-stream: 1.4.4once: 1.4.0dev: false - edit in "pnpm-lock.yaml" at line 4552
dev: true - edit in "pnpm-lock.yaml" at line 4696
/responselike/1.0.2:resolution: {integrity: sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec=}dependencies:lowercase-keys: 1.0.1dev: false - replacement in "pnpm-lock.yaml" at line 4720
/rollup-plugin-sourcemaps/0.6.3_6a81cd64d5101efbbdec0e3858b03196:resolution: {integrity: sha512-paFu+nT1xvuO1tPFYXGe+XnQvg4Hjqv/eIhG8i5EspfYYPBKL57X7iVbfv55aNVASg3dzWvES9dmWsL2KhfByw==}engines: {node: '>=10.0.0'}peerDependencies:'@types/node': '>=10.0.0'rollup: '>=0.31.2'peerDependenciesMeta:'@types/node':optional: true/roarr/2.15.4:resolution: {integrity: sha512-CHhPh+UNHD2GTXNYhPWLnU8ONHdI+5DI+4EYIAOaiD63rHeYlZvyh8P+in5999TTSFgUYuKUAjzRI4mdh/p+2A==}engines: {node: '>=8.0'} - replacement in "pnpm-lock.yaml" at line 4724
'@rollup/pluginutils': 3.1.0_rollup@2.60.1'@types/node': 16.11.10rollup: 2.60.1source-map-resolve: 0.6.0dev: trueboolean: 3.1.4detect-node: 2.1.0globalthis: 1.0.2json-stringify-safe: 5.0.1semver-compare: 1.0.0sprintf-js: 1.1.2dev: falseoptional: true - edit in "pnpm-lock.yaml" at line 4763
dev: true - edit in "pnpm-lock.yaml" at line 4790
/semver-compare/1.0.0:resolution: {integrity: sha1-De4hahyUGrN+nvsXiPavxf9VN/w=}dev: falseoptional: true - edit in "pnpm-lock.yaml" at line 4810
dev: true - replacement in "pnpm-lock.yaml" at line 4817
dev: true/serialize-error/7.0.1:resolution: {integrity: sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==}engines: {node: '>=10'}dependencies:type-fest: 0.13.1dev: falseoptional: true - edit in "pnpm-lock.yaml" at line 4979
/sprintf-js/1.1.2:resolution: {integrity: sha512-VE0SOVEHCk7Qc8ulkWw3ntAzXuqf7S2lvwQaDLRnUeIEaKNQJzV6BwmLKhOqT61aGhfUMrXeaBk+oDGCzvhcug==}dev: falseoptional: true - edit in "pnpm-lock.yaml" at line 5021
dev: true - edit in "pnpm-lock.yaml" at line 5076
/sumchecker/3.0.1:resolution: {integrity: sha512-MvjXzkz/BOfyVDkG0oFOtBxHX2u3gKbMHIF/dXblZsgD3BWOFLmHovIpZY7BykJdAjcqRCBi1WYBNdEC9yI7vg==}engines: {node: '>= 8.0'}dependencies:debug: 4.3.3transitivePeerDependencies:- supports-colordev: false - edit in "pnpm-lock.yaml" at line 5230
/to-readable-stream/1.0.0:resolution: {integrity: sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==}engines: {node: '>=6'}dev: false - edit in "pnpm-lock.yaml" at line 5316
/tunnel/0.0.6:resolution: {integrity: sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==}engines: {node: '>=0.6.11 <=0.7.0 || >=0.7.3'}dev: falseoptional: true - edit in "pnpm-lock.yaml" at line 5328
/type-fest/0.13.1:resolution: {integrity: sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==}engines: {node: '>=10'}dev: falseoptional: true - edit in "pnpm-lock.yaml" at line 5360
dev: true - edit in "pnpm-lock.yaml" at line 5425
/universalify/0.1.2:resolution: {integrity: sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==}engines: {node: '>= 4.0.0'}dev: false - edit in "pnpm-lock.yaml" at line 5454
/url-parse-lax/3.0.0:resolution: {integrity: sha1-FrXK/Afb42dsGxmZF3gj1lA6yww=}engines: {node: '>=4'}dependencies:prepend-http: 2.0.0dev: false - edit in "pnpm-lock.yaml" at line 5469
dev: true - edit in "pnpm-lock.yaml" at line 5581
dev: true - edit in "pnpm-lock.yaml" at line 5593
dev: true - edit in "pnpm-lock.yaml" at line 5628
/yauzl/2.10.0:resolution: {integrity: sha1-x+sXyT4RLLEIb6bY5R+wZnt5pfk=}dependencies:buffer-crc32: 0.2.13fd-slicer: 1.1.0dev: false - file addition: packages[1.0]
- file addition: dist[0.16169]
- file addition: package.json[0.16186]
{"description": "Manages packaging the distibuted packages.","private": true,"author": "James Adam Armstrong","license": "ISC","scripts": {},"dependencies": {"electron": "^16.0.2"},"engines": {"node": ">=16.9.0 <17"},"type": "commonjs","main": "main.js"} - file addition: basic[0.16169]
- file addition: src[0.16527]
- file addition: main.ts[0.16543]
/*ISC License (ISC)Copyright 2021 James Adam ArmstrongPermission to use, copy, modify, and/or distribute this software for anypurpose with or without fee is hereby granted, provided that the above copyrightnotice and this permission notice appear in all copies.THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITHREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY ANDFITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROMLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OROTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE ORPERFORMANCE OF THIS SOFTWARE.*/import { app, BrowserWindow } from 'electron'import path from 'path'import fs from 'fs'interface Setup {title: stringicon: stringindex: string}const defaultSetup: Readonly<Setup> = {title: 'LOL Calculator',icon: 'icon.png',index: 'index.html',}function load(name: string): Readonly<Setup> {try {const raw = fs.readFileSync(path.join(__dirname, name))const data = JSON.parse(raw.toString())if (typeof data === 'object') {const setup = { ...defaultSetup }for (const key in defaultSetup) {const value = data[key]if (typeof value === 'string') {setup[key] = value}}return setup} else {return defaultSetup}} catch (_error) {return defaultSetup}}function createWindow(name?: string): void {const { title, icon, index } = name ? load(name) : defaultSetupconst mainWindow = new BrowserWindow({width: 800,height: 600,icon,title,webPreferences: {// preload: path.join(__dirname, 'preload.js'),devTools: process.env.NODE_ENV != 'production',},})mainWindow.menuBarVisible = falsemainWindow.loadFile(index).then(() => mainWindow.maximize())}app.whenReady().then(() => {createWindow()// On macOS it's common to re-create a window in the app when the// dock icon is clicked and there are no other windows open.if (process.platform === 'darwin') {app.on('activate', () => {if (BrowserWindow.getAllWindows().length === 0) createWindow()})}})// Quit when all windows are closed, except on macOS. There, it's common// for applications and their menu bar to stay active until the user quits// explicitly with Cmd + Q.app.on('window-all-closed', () => {if (process.platform !== 'darwin') {app.quit()}}) - file addition: package.json[0.16527]
{"description": "Basic calculator for League of Legends.","private": true,"author": "James Adam Armstrong","license": "ISC","scripts": {},"dependencies": {"electron": "^16.0.2"},"engines": {"node": ">=16.9.0 <17"}} - edit in "package.json" at line 48
"rollup-plugin-sourcemaps": "^0.6.3",