Граф коммитов

3085 Коммитов

Автор SHA1 Сообщение Дата
Samuel Attard 6e9cca3579
spec: add proper package test for webpack ts template (#3040) 2022-10-31 18:02:20 -07:00
Samuel Attard a89ed7d375
fix: do not proxify class instances in forge config (#3039)
* fix: do not proxify class instances in forge config

* spec: fix config tests
2022-10-31 18:02:05 -07:00
Keeley Hammond e490ffcd1f Update CHANGELOG.md for 6.0.0-beta.73 2022-10-31 17:22:43 -07:00
Keeley Hammond 8555fd83b2 Release 6.0.0-beta.73 2022-10-31 17:22:40 -07:00
Erick Zhao 584a63b3a4
chore(require-search): make error message clearer (#3037) 2022-10-31 17:21:42 -07:00
Samuel Attard e1d5db00d4
fix: ensure webpack typescript template runs (#3038) 2022-10-31 17:09:17 -07:00
Keeley Hammond 2ff9dce77a Update CHANGELOG.md for 6.0.0-beta.72 2022-10-31 16:38:38 -07:00
Keeley Hammond 79dc1bf495 Release 6.0.0-beta.72 2022-10-31 16:38:35 -07:00
Keeley Hammond 533f56c9d8
build: modify ts-ignore for /test & /src (#3036) 2022-10-31 16:37:29 -07:00
Keeley Hammond 86e018978a Update CHANGELOG.md for 6.0.0-beta.71 2022-10-31 16:20:59 -07:00
Keeley Hammond 71f5907045 Release 6.0.0-beta.71 2022-10-31 16:20:57 -07:00
George Xu 6f55d0a0b4
chore: rename typescript-webpack to webpack-typescript (#3035) 2022-10-31 16:05:20 -07:00
Keeley Hammond 9191350bfb
build: remove travis and appveyor ci templates (#3034) 2022-10-31 16:04:45 -07:00
Samuel Attard 126d50a18f
chore: move from electron-rebuild to @electron/rebuild (#3033)
* chore: move from electron-rebuild to @electron/rebuild

* oops
2022-10-31 14:49:51 -07:00
Samuel Attard 55749f3325
refactor: use listr2 instead of async-ora (#3022)
* refactor: port check-system to Listr2

* refactor: port 'init' to listr2

* refactor: port 'start' to listr2

* refactor: improve unhandled promise logging

* chore: fix start and init tests

* chore: load local modules first

* chore: force ts-checker plugin to pipe to webpack-infra logging channel

* chore: handle core-utils migration

* chore: move rebuild to core-utils
2022-10-31 14:19:02 -07:00
George Xu 7535a15d96
docs: update release process (#3032)
* docs: edit changelog

* Update CONTRIBUTING.md

Co-authored-by: Keeley Hammond <khammond@slack-corp.com>

Co-authored-by: Keeley Hammond <khammond@slack-corp.com>
2022-10-31 14:08:17 -07:00
Jake 247f52abd5
fix(packager): "packaging application" log never stops when building for multiple architectures (#3006)
* Fix "packaging application" log never stopping when building for multiple architectures

There's some kinda complex race condition ish behaviour in the current way the packagerSpinner is handled.

At the moment there's one variable for all architectures, that gets created in one of the later afterCopyHooks, and dismissed both in the first hook, and at the end of all the hooks. This would work if architectures where built for sequentially, but, at least on my system, these builds happen in parallel. Meaning one of the architectures packageSpinners overwrites the other, before the first is dismissed. At the end of the build the second packageSpinner has success fired on it, while the first continues to spin, preventing the process from exiting.

The solution in this commit is far less than ideal.

Constraints:
 - Without access to the list of architectures (the function to generate that list is not exported from electron-packer) we don't even know how many architectures we're building for.
 - This one is a little self-imposed, and maybe not a constraint for the project, but the code aims not to change any public facing apis. So we need to have one spinner we can pass to the postPackage hook. https://www.electronforge.io/configuration#postpackage

 Given these constraints the solution in this commit has one initial prepare / package spinner. AS well as prepare / package spinners per architecture.

One downside is if the afterCopyHooks are executed one architecture at a time, instead of parallelized by architecture, the overarching prepareSpinner could be ended early, (though architecture specific prepare spinners would still be accurate).

* Simplify Package spinners, removing prepackage & making package smarter.

* build: update electron-packager

Co-authored-by: Samuel Attard <sattard@salesforce.com>
2022-10-31 13:49:13 -07:00
Keeley Hammond 300387fe6a
chore: update README.md (#3025)
Co-authored-by: Erick Zhao <erick@hotmail.ca>
2022-10-31 13:02:09 -07:00
Keeley Hammond 0986c7dc6e
test: add test for detect forge.config (#3031) 2022-10-31 12:51:16 -07:00
Samuel Attard b80a27565c
refactor: use forge.config.ts in the webpack typescript template (#3012)
* feat!: prefer forge.config.js over package.json config

This change affects the `init` and `import`
commands.

* run lint

* fix tests

* another test change

* fix import

* copy over forge.config files rather than mutate base tmpl

* i broke a test with rebase

* fix lint

* feat: typed forge.config.ts

* chore: extract utils to @electron-forge/core-utils to remove cyclic dep

* chore: update tests for extracted logic in core-utils

* chore: fix tests

Co-authored-by: Erick Zhao <erick@hotmail.ca>
Co-authored-by: Keeley Hammond <khammond@slack-corp.com>
2022-10-31 12:50:39 -07:00
Erik Moura ab8ea66124
fix(publish): ignore unnecessary files when publishing to npm (#3024) 2022-10-31 12:12:32 -07:00
Erik Moura 7aaa702959
fix(template-base): use minimum instead of exact version when replacing `ELECTRON_FORGE/VERSION` in templates (#3030) 2022-10-31 11:07:59 -07:00
Samuel Attard b5d0587494
fix: use @electron-forge/cli hint for project resolution (#3023)
We were falling back to the "best guess" behavior for the forge.config.js scenario, we can do better than best guess and infer a forge project based on a forge dependency
2022-10-31 09:48:12 -07:00
Samuel Attard 531788ba75
fix: restore isProd in the webpack plugin (#3021) 2022-10-30 14:27:44 -07:00
George Xu d0f9c17301
Release 6.0.0 beta.70 (#3018)
* Release 6.0.0-beta.70

* Update CHANGELOG.md for 6.0.0-beta.70

* docs: add reminder to login to npm

* zzz
2022-10-28 16:23:39 -07:00
Keeley Hammond afa9883f5f
build: add icon to MakerWixConfig (#3017) 2022-10-28 15:06:51 -07:00
Erick Zhao ab160d5dcd
fix(template-typescript-webpack): install ts-node (#3016) 2022-10-28 14:57:25 -07:00
Erick Zhao 378e2009fb
fix(template-typescript-webpack): webpack entrypoint extensions (#3014) 2022-10-28 14:41:17 -07:00
Erick Zhao c3a8db44f9
fix(template-typescript-webpack): clean up forge config code (#3009) 2022-10-27 14:04:18 -07:00
Keeley Hammond 07310399e7
Release 6.0.0 beta.69 (#3011)
* Release 6.0.0-beta.69

* Update CHANGELOG.md for 6.0.0-beta.69
2022-10-27 14:00:48 -07:00
George Xu bfb7280063
chore: fix links from userland migration (#3010) 2022-10-27 13:56:33 -07:00
Erick Zhao 777197e50f
feat!: prefer forge.config.js over package.json config (#2991)
BREAKING CHANGE: templates that mutated the Forge config within `package.json` will need to instantiate their own `forge.config.js`
2022-10-27 13:36:43 -07:00
Keeley Hammond 25a0a633b1
chore: build electron-wix-msi to 5.0.0 (#3008) 2022-10-27 13:02:38 -07:00
Erik Moura 0f75ce0858
fix(plugin-webpack): keep `devDependencies`, `dependencies`, `optionalDependencies` and `peerDependencies` in the distributed package.json (#3007) 2022-10-27 11:12:55 -07:00
Erick Zhao 35a26eab3e
refactor(maker-squirrel): ensure Squirrel.Windows `name` doesn't contain hyphens (#3004)
Co-authored-by: Samuel Attard <sam@electronjs.org>
2022-10-27 10:49:39 -07:00
Benoît Bouré 72b80a7f3d
feat(publisher-s3): Add sessionToken and change default fallback (#2984) 2022-10-27 00:43:52 -07:00
Samuel Attard 11a2f150b3
build: fix some yarn audit output (#3002) 2022-10-26 16:50:51 -07:00
George Xu c26a682bef
build: upgrade electron-wix-msi to 4.0.0 (#3003) 2022-10-26 16:06:36 -07:00
George Xu 8b78d7019e
docs: add READMEs to packages (#2986)
* docs: add maker module READMEs

* chore: remove sync-readmes script

* docs: add plugin READMEs

* docs: add packager module to READMEs

* docs: improve examples in READMEs

* docs: update README titles with module name

* fix: update CompileElectronPlugin name

Co-authored-by: Keeley Hammond <khammond@slack-corp.com>
2022-10-26 15:30:31 -07:00
Samuel Attard 12e1af6995
refactor: better internal type safety for hooks (#2995) 2022-10-26 14:35:32 -07:00
Samuel Attard 8fa40d4a1e
build: add rule that enforces named exports over default exports (#3000) 2022-10-26 13:16:55 -07:00
Samuel Attard 23f56d08b6
build: actually enable husky/lint-staged (#2999) 2022-10-26 13:02:20 -07:00
Samuel Attard e404bf10b6
feat: add support for forge.config.ts et. al (#2993)
This brings in rechoir and interpret which allow arbitrary extensions / loaders for our forge config.

Notably this allows us to make forge.config.ts a thing (and thus generate type safe configurations).
2022-10-26 12:34:29 -07:00
Samuel Attard b97c906fad
refactor: rename some constructor params for MakerBase and PublisherBase (#2994) 2022-10-26 12:15:08 -07:00
Samuel Attard 493368c9e9
refactor: add / use named exports for plugins + makers + publishers (#2996) 2022-10-26 12:06:05 -07:00
Samuel Attard 247bcc8289
build: configure import/order eslint rule (#2997) 2022-10-26 10:37:16 -07:00
George Xu 147214981d
fix(template-webpack): use new plugin syntax (#2990) 2022-10-25 15:35:04 -07:00
George Xu 4f222f485d
fix(template-typescript-webpack): use new plugin syntax (#2989) 2022-10-25 13:32:50 -07:00
Keeley Hammond 36dcdd0579
docs: generate custom docs sidebar (#2974)
* fix: generate custom docs sidebar

Co-authored-by: George Xu <georgexu99@users.noreply.github.com>

* chore: prettier formatting

* fix: clean up, compile plug-in on npm script

* docs: fix undefined classes, remove h3

Co-authored-by: George Xu <georgexu99@users.noreply.github.com>
2022-10-24 15:52:45 -07:00
Erick Zhao 93b31c7d18
feat(plugin-webpack): support standalone preload entry points (#2950) 2022-10-24 15:34:32 -07:00