Commit Graph

209 Commits

Author SHA1 Message Date
JP Sugarbroad
01529a8347 fix typing conflict between jest and cypress
Cypress and Jest both define "expect", but they come from different
libraries (Cypress uses Chai, Jest uses its own thing). So we can't
include both of them in the tsconfig.json. Conveniently, however, we
don't need any of the test code to be part of the main project, so
it suffices to give these things their own tsconfig.json files.

That being done, adding "jest" to the global types lets us remove all
those imports.
2022-05-10 22:26:54 -07:00
hydroflame
c5bc47abf0
Revert "MISC: fix typing conflict between jest and cypress" 2022-05-04 12:14:31 -04:00
JP Sugarbroad
6b7be9f87b fix typing conflict between jest and cypress
Cypress and Jest both define "expect", but they come from different
libraries (Cypress uses Chai, Jest uses its own thing). So we can't
include both of them in the tsconfig.json. Conveniently, however, we
don't need any of the test code to be part of the main project, so
it suffices to give cypress its own tsconfig.json file.

That being done, adding "jest" to the global types lets us remove all
those imports.
2022-04-25 22:10:27 -07:00
hydroflame
11fef3825c
Merge pull request #3519 from taralx/patch-3
MISC: Adjust deps to current usage
2022-04-21 00:32:34 -04:00
hydroflame
80f037bfdb
Merge pull request #3523 from taralx/patch-5
MISC: upgrade to eslint v8
2022-04-20 13:06:32 -04:00
hydroflame
4ea7a4d7a8
Merge pull request #3517 from taralx/patch-1
MISC: make jQuery use explicit
2022-04-19 22:31:30 -04:00
JP Sugarbroad
53d8807e78 upgrade to eslint v8
We need newer typescript parsers, which needs newer eslint.
2022-04-19 17:18:43 -07:00
JP Sugarbroad
d5be70e886 update @types/numeral and fix type errors 2022-04-19 17:07:51 -07:00
JP Sugarbroad
9be9b26916 Adjust deps to current usage
depcheck is useful here. Has some false reports, but there are some
unused packages and some missing ones. Also I moved types to dev-
dependencies because we don't use them at runtime.
2022-04-19 16:20:35 -07:00
JP Sugarbroad
01d7ac6967 make jQuery use explicit 2022-04-19 16:14:16 -07:00
Olivier Gagnon
48d7385ac3 widget 2022-04-14 15:01:43 -04:00
Olivier Gagnon
b5e4d706b2 🔖 Build v1.6.4 2022-04-13 12:32:26 -04:00
Olivier Gagnon
d7822b389e 🔖 Build v1.6.3 2022-04-13 01:40:29 -04:00
Olivier Gagnon
aa447d3051 🔖 Build v1.6.1 2022-04-13 01:37:53 -04:00
hydroflame
ac53dbf168
Merge pull request #3232 from MartinFournier/feat/npm-version
Add `npm version` support to build releases
2022-04-13 01:24:59 -04:00
Anatoly Kussul
b3e9c1f96c ci format check fix 2022-04-13 04:49:08 +03:00
Anatoly Kussul
4b5d38c940 ci check lint only on changed files 2022-04-13 04:42:44 +03:00
hydroflame
59bcf4d695
Merge pull request #3221 from MartinFournier/chore/move-bundle
Move main bundle output to ./dist subfolder
2022-04-12 15:35:26 -04:00
Olivier Gagnon
219b9589cf update browserlist 2022-04-12 14:08:10 -04:00
TheMas3212
b1b917c9a3
fix lint ci task and allow unused parameters with _ prefix 2022-04-12 04:50:30 +10:00
Martin Fournier
078a62cb0d Add npm version support to build releases
Replaces the `npm run allbuild` script with the `npm version` command.
It creates a new commit with a standardized message & includes the built
app.

Usage: `npm version [patch | minor | version | 10.0.0 | etc]`

Will update the package.json & perform a bunch of steps in a row:

- Runs `npm install` in:
  - The root directory
  - The ./electron/ directory
  - The ./tools/bump-version/ directory
- Runs `npm run test`
- Update the version string in:
  - ./electron/package.json (version)
  - ./src/Constants.ts (VersionString)
  - ./doc/source/conf.py (version & release)
- Runs `npm run doc` (build the markdown documentation)
- Runs `npm run build` (production build)
- Runs `npm run electron` (electron build)
- Runs `git add --all`
- Runs `git push -u origin dev && git push --tags`
2022-04-07 07:50:47 -04:00
Martin Fournier
cec5f1ce29 Move electron build script to /tools/
Also enables bash strict mode flags for the build script
2022-04-07 07:48:44 -04:00
dependabot[bot]
7b278930a5
Bump electron from 14.0.2 to 14.2.4
Bumps [electron](https://github.com/electron/electron) from 14.0.2 to 14.2.4.
- [Release notes](https://github.com/electron/electron/releases)
- [Changelog](https://github.com/electron/electron/blob/main/docs/breaking-changes.md)
- [Commits](https://github.com/electron/electron/compare/v14.0.2...v14.2.4)

---
updated-dependencies:
- dependency-name: electron
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-29 22:14:36 +00:00
Olivier Gagnon
6b25ba5cd8 allbuild commit da27223a 2022-03-29 18:13:08 -04:00
Olivier Gagnon
ac34829649 pre-1.6 2022-03-29 15:30:22 -04:00
Olivier Gagnon
901ee92fe9 prettier ci 2022-03-20 22:02:36 -04:00
Olivier Gagnon
26e6036f57 added typesbcrypths 2022-03-16 18:01:26 -04:00
Olivier Gagnon
2e9652e41a add bcrypt 2022-03-16 17:45:46 -04:00
Olivier Gagnon
a35b95a58b allbuild commit /usr/bin/git 2022-03-10 22:40:46 -05:00
Olivier Gagnon
9b12da4eb7 allbuild commit "$(git rev-parse --short HEAD)" 2022-03-10 22:33:11 -05:00
Olivier Gagnon
192a037dfa allbuild commit git rev-parse --short HEAD 2022-03-07 18:07:21 -05:00
Olivier Gagnon
bc952147fd v1.5.0 2022-03-07 17:51:02 -05:00
phyzical
e597798aef add post install to also install electron folder's deps 2022-02-23 18:13:54 +08:00
Olivier Gagnon
b810e523ee update patch notes 2022-02-23 02:01:48 -05:00
hydroflame
463af6cbf2
Merge pull request #2819 from MartinFournier/chore/rm-intermediary-doc
Remove intermediary doc input file
2022-01-26 12:58:10 -05:00
hydroflame
b04c23bdd1
Merge pull request #2821 from MartinFournier/chore/npm-deps-audit
Run `npm audit fix` to resolve vulnerabilities
2022-01-26 12:56:59 -05:00
Martin Fournier
412ef543c8 Run npm audit fix to resolve vulnerabilities
It did not resolve all of the vulns as some are gated behind breaking
changes. Most of them seem to be resolved when updating to webpack 5

Also moves devDependencies out of normal dependencies, as a few libs
were better suited for dev.
2022-01-26 05:47:27 -05:00
Martin Fournier
f943e55e86 Move engines-check to ./tools subfolder 2022-01-26 05:35:21 -05:00
Martin Fournier
914c0f44c4 Remove intermediary doc input file 2022-01-26 05:18:58 -05:00
hydroflame
7a5dfd0e72
Merge pull request #2707 from MartinFournier/feature/theme-browser
Add Theme Browser accessible from GameOptions
2022-01-26 00:46:17 -05:00
Martin Fournier
1d118cc8be Modify electron build script to select platforms
Allows to build only mac windows or linux for a quicker build time while
developping.
2022-01-23 12:58:20 -05:00
Martin Fournier
aae3851d59 Add webpack file-loader to handle images
It lets us bundle static files such as images.

Allows us to `imports img from "./img.png"` to retrieve an image's path.
Note that we'll have to add other entries in the global.d.ts file if we
want to handle other extensions than .png.

Adds mocks to Jest tests so that we don't fail tests when loading static
assets.
2022-01-20 18:41:48 -05:00
Olivier Gagnon
faf8389bef v1.3 2022-01-04 20:46:10 -05:00
Olivier Gagnon
1e0e9f7bd7 change button text 2022-01-02 11:55:06 -05:00
hydroflame
b578e09986
Merge pull request #2218 from MartinFournier/feature/http-server-auth
Add authorization token to file system api
2021-12-29 14:26:16 -05:00
hydroflame
5c5cc9708d
Merge pull request #2172 from theit8514/script-caching
Cache the blobs generated by scripts
2021-12-29 11:53:30 -05:00
Martin Fournier
5d7d72a3e2 Add authorization token to file system api 2021-12-28 15:37:22 -05:00
Locria Cyber
3b8bdb7449 Add peer dependencies for material-ui-color 2021-12-24 22:32:03 +08:00
theit8514
8f77f720e6 Cache the blobs generated by scripts 2021-12-23 23:06:01 -05:00
Martin Fournier
6363c704db Handle electron process uncaught exceptions
Handling the exceptions and closing the app seem to properly kill the
dangling processes that appear at launch in Windows 10. Without this, if
an exception is throw before the window is active (ie: no
steamapp_id.txt file), there will be remaining processes.

Added electron-log to additionally log to a text file.
2021-12-22 15:28:55 -05:00