Commit Graph

285 Commits

Author SHA1 Message Date
omuretsu
dba6773375 Add back lint:report 2023-02-11 15:18:32 -05:00
omuretsu
e9bdc29c8c Some dev updates
* Bump electron version to 22.2.1
* Fix npm run electron command (needed the electron-packager-all command which I had removed)
* Improve the npm run format command, no longer floods terminal with all file names
* Updated start command to serve the built version of the game in .app
* Remove some unused commands and unused workflows. Combined the ci and ci-pr workflows.
* Modify check for generated files logic. Attempt to fix so it will edit its own comment instead of posting a new one on every commit.
2023-02-11 15:12:55 -05:00
Snarling
b4074328ec
UI: Added new locale-aware and configurable number formatting (#354) 2023-02-11 13:18:50 -05:00
omuretsu
6459b1ab48 Change tests
* Try to fix check for generated files to create a comment on a PR.
* Check for generated files does not count as a failure.
* Lint doesn't fail based on stuff in dist. Prettier and lint no longer use the "diff" version.
* Removed some commands that weren't really used (specific version electron packager commands that require you to have already ran npm run electron to generate .package folder)
2023-02-04 07:42:35 -05:00
omuretsu
e8e107254d Update build commands
build:dev now works
2023-01-30 19:45:24 -05:00
omuretsu
41451280ab Update build process
`npm run build` now generates a .app folder with the minimal run files
`npm run electron` now uses the .app contents as a base
deploy-dev.yml should upload just the .app folder after building (not tested yet)
2023-01-10 20:51:14 -05:00
David Walker
0c2d402f0b
INFRA: Update everything except React (#312) 2023-01-08 02:36:55 -05:00
omuretsu
20f405a32c Fix dev server 2023-01-06 18:16:17 -05:00
David Walker
593b860241
New version of Electron, v22.0.0 (#302)
Fixes the blinking text bug!
2023-01-06 14:01:27 -05:00
David Walker
4eef9eec03
NETSCRIPT: More ns Proxy changes (#297) 2023-01-05 20:41:24 -05:00
David Walker
c42fde9379
INFRA: Update Webpack to @latest, along with other dev packages (#290) 2023-01-05 20:29:02 -05:00
Snarling
dc0de2498b
Fix mathjax error (#287)
* Updated mathjax and better-react-mathjax
* Removed MathJaxWrapper. Per better-react-mathjax documentation, we were incorrectly including a new context for every equation using this wrapper.
* Wrapped entire game in a MathJaxContext at GameRoot.
2023-01-03 07:38:14 -05:00
Snarling
5ff2cd5357
VERSION: Update game version to 2.2 (#240)
Includes some bug fixes:
* Fix sleeve shock internal/display discrepancy (0-100 vs 0-100)
* Special error message if ns function called without a this
* Change whitespace to pre-wrap for dialog box.
* Fix bug where idle sleeves do not consume cycles but still recover shock from those cycles. Now they do not recover during idle.
* attempted to tag commit as v2.2.0
2022-12-01 16:07:46 -05:00
Snarling
82ba5f1f13
Ignore monaco cancellation errors (#208)
Also updated monaco-editor and @monaco-editor/react to latest versions since there were no conflicts.
2022-11-10 10:08:59 -05:00
omuretsu
442a4f0198 update html-webpack-plugin version 2022-11-03 08:02:39 -04:00
Olivier Gagnon
af1a1ac58d Rename lots of reference from old to new repo 2022-10-20 03:56:59 +11:00
Olivier Gagnon
c6da513eea allbuild commit a3c92dd0 2022-09-23 15:03:38 -04:00
Olivier Gagnon
5d3ed2e0c5 allbuild commit 07538d65 2022-08-16 12:01:42 -04:00
Olivier Gagnon
8afacee9e5 allbuild commit 6b43ecaf 2022-07-26 08:26:52 -04:00
hydroflame
cd87c0a6bb
Merge pull request #3862 from danielyxie/dependabot/npm_and_yarn/jsdom-16.5.0
Bump jsdom from 15.2.1 to 16.5.0
2022-07-21 01:29:24 -04:00
Olivier Gagnon
5b8eea66d4 rm some any 2022-07-15 23:34:27 -04:00
dependabot[bot]
7a60df17b6
Bump jsdom from 15.2.1 to 16.5.0
Bumps [jsdom](https://github.com/jsdom/jsdom) from 15.2.1 to 16.5.0.
- [Release notes](https://github.com/jsdom/jsdom/releases)
- [Changelog](https://github.com/jsdom/jsdom/blob/master/Changelog.md)
- [Commits](https://github.com/jsdom/jsdom/compare/15.2.1...16.5.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-25 01:32:13 +00:00
Olivier Gagnon
ca2e22506b more lint 2022-05-25 15:40:57 -04:00
Olivier Gagnon
76ccb0ba36 lint 2022-05-25 11:43:43 -04:00
Olivier Gagnon
ce61f06319 allbuild commit 8159dad5 2022-05-24 16:57:25 -04:00
Olivier Gagnon
f5efdfa807 allbuild commit 4cc518f3 2022-05-20 15:19:36 -04:00
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
BuildTools
6dc7dc42c5 resolved merge issue 2021-12-20 01:39:20 -06:00
Martin Fournier
8b355c365e Add github workflow to run tests, linter & build 2021-12-19 15:43:13 -05:00
Olivier Gagnon
02605090df v1.2.0 2021-12-18 16:28:09 -05:00
Olivier Gagnon
ae6f8c5ee7 make tutorial better 2021-12-16 20:54:50 -05:00
Olivier Gagnon
1cca819f87 disable browser throttling 2021-12-16 15:48:40 -05:00
Olivier Gagnon
a92d3238be small fix with electron build 2021-12-16 11:52:25 -05:00
Olivier Gagnon
e3a0caf50f fix killall steam not working 2021-12-14 22:34:09 -05:00
Olivier Gagnon
50bc9496ec fix gym not giving discoutns 2021-12-13 19:46:08 -05:00
Olivier Gagnon
647ccd6a7b BN13 2021-12-03 16:09:13 -05:00
Olivier Gagnon
e262c9bb38 achievements 2021-11-27 15:07:25 -05:00
Olivier Gagnon
983c102123 v1.0.2 2021-11-19 15:50:22 -05:00
Olivier Gagnon
fc4c0fd8fd rebuild 2021-11-18 11:32:22 -05:00
Olivier Gagnon
3112dc60c0 few more bugfixes 2021-11-11 23:28:08 -05:00
Olivier Gagnon
0114c92829 fix decimal 2021-11-11 21:35:26 -05:00
hydroflame
70ffe25bb4
Revert "bunch of bugfixes" 2021-11-11 20:06:05 -05:00
Olivier Gagnon
d91d7c564e bunch of bugfixes 2021-11-11 19:56:09 -05:00
Olivier Gagnon
cf2efe7698 few bugdic 2021-11-11 17:00:36 -05:00
Olivier Gagnon
c87e9bdf84 v1.0.0 changes 2021-11-09 23:42:36 -05:00
Your Name
74739af031 ok 2021-11-05 00:14:11 -04:00
Olivier Gagnon
c5fb5155f3 work on making sure all the functions are accounted for 2021-11-03 18:16:10 -04:00
Olivier Gagnon
a81a9af1c7 doc changes 2021-11-02 14:32:54 -04:00
Olivier Gagnon
feb0430aff work on doc 2021-10-30 15:46:34 -04:00
Olivier Gagnon
43fc5dfd48 work on doc 2021-10-30 12:34:14 -04:00
Olivier Gagnon
d1d0ccf345 added possible infinite loop checker 2021-10-28 23:04:26 -04:00