1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-12-11 09:11:50 +00:00
Commit Graph

2498 Commits

Author SHA1 Message Date
Даниїл Григор'єв
318baaa42d
Fix shapez exports not being exposed in production
A previous commit has mistakenly changed the behavior of a condition
checking for standalone version. Instead of always being true, shapez
exports were only exposed if the game was built in development mode.
2024-07-02 15:09:51 +03:00
Даниїл Григор'єв
ddc4513e46
Merge pull request #35 from tobspr-games/dengr1065/more-cleanups
Various cleanups
2024-06-25 21:31:16 +03:00
Даниїл Григор'єв
4bf8011b88
Remove unused typehints block 2024-06-25 21:15:50 +03:00
Даниїл Григор'єв
f5d8b73d8a
Remove FTP tasks 2024-06-20 19:48:57 +03:00
Даниїл Григор'єв
1e24b11834
Fix external link handling 2024-06-20 19:46:26 +03:00
Даниїл Григор'єв
a7ec1e53bf
Remove more unused styles 2024-06-20 19:43:59 +03:00
Даниїл Григор'єв
0e7082dbbd
Get rid of more Steam leftovers 2024-06-20 18:31:52 +03:00
Даниїл Григор'єв
4940135140
Remove some mobile-web code 2024-06-20 16:09:43 +03:00
Даниїл Григор'єв
903b196e1e
Remove unused webpack files 2024-06-20 16:05:06 +03:00
Даниїл Григор'єв
031a7c05d5
Merge pull request #34 from tobspr-games/dengr1065/fix/update-fluent-ffmpeg
Update fluent-ffmpeg to 2.1.3
2024-06-20 15:37:21 +03:00
Даниїл Григор'єв
3a05b458db
Update indirect dependency fluent-ffmpeg
fluent-ffmpeg@2.1.3 fixes support for FFmpeg 7.x.
2024-06-20 15:24:42 +03:00
Даниїл Григор'єв
6581955ccf
Merge pull request #33 from tobspr-games/dengr1065/formatting-update
Update formatting configurations and format all files
2024-06-20 15:17:33 +03:00
Даниїл Григор'єв
25614e2d7e
Merge branch 'master' into dengr1065/formatting-update 2024-06-20 15:16:46 +03:00
Даниїл Григор'єв
96aef3d9e7
Merge pull request #31 from tobspr-games/dengr1065/eslint-config2
Fix and modify ESLint configuration
2024-06-20 15:14:40 +03:00
Даниїл Григор'єв
0c8b87983b
Update prettier-all script
Also exclude files with extensions that are usually large. Reduces the
format time by approximately 4 seconds.
2024-06-20 13:29:06 +03:00
Даниїл Григор'єв
2f0a505297
Apply formatting to the rest of files 2024-06-20 13:02:02 +03:00
Даниїл Григор'єв
5ff15f3029
Apply formatting to gulp 2024-06-20 13:00:58 +03:00
Даниїл Григор'єв
f49def0c19
Apply formatting to src/css 2024-06-20 12:59:43 +03:00
Даниїл Григор'єв
89992e2299
Apply formatting to src/js 2024-06-20 12:59:07 +03:00
Даниїл Григор'єв
392b4cad13
Merge .gitignore files
Prettier only takes the root .gitignore into account, which leads to
formatting of auto-generated files. Moving ignore patterns into the root
.gitignore file makes Prettier follow them and cleans up the workspace.
2024-06-20 12:50:37 +03:00
Даниїл Григор'єв
1d26ba67ea
Update formatting configurations
EditorConfig applies to all files, LF is enforced instead of CRLF,
Prettier configuration moved to JSON, properties are inherited from
EditorConfig.
2024-06-20 12:43:30 +03:00
Даниїл Григор'єв
e0fd899cb8
Update Prettier to 3.3.2 2024-06-20 12:43:03 +03:00
Даниїл Григор'єв
e142c1211f
Merge pull request #32 from cody-ferguson/feat/remove-all-web-stuff
Remove all web related stuff
2024-06-20 02:12:52 +03:00
cody-ferguson
168e0bcb6d
Fix import assertion 2024-06-19 18:05:46 -05:00
cody-ferguson
894ceab854 Remove folders and steam stuff 2024-06-19 17:12:08 -05:00
cody-ferguson
6662cb2694 Remove all references of "G_IS_STANDALONE" 2024-06-19 13:47:50 -05:00
Даниїл Григор'єв
6f1706aa23
Modify ESLint configuration
Fix minimatch patterns, disable no-unused-vars entirely, stop calling
tsc in the lint script.
2024-06-19 12:25:13 +03:00
Даниїл Григор'єв
60b2727b42
Merge pull request #30 from tobspr-games/dengr1065/eslint-tsc-revamp
Redo ESLint and TypeScript configuration
2024-06-18 18:27:18 +03:00
Даниїл Григор'єв
84350a4cd0
Simplify ESLint file matching patterns 2024-06-18 14:43:55 +03:00
Даниїл Григор'єв
878f0e1488
Merge pull request #26 from tobspr-games/chore/remove-mod-examples
Remove mod examples
2024-06-18 12:43:05 +03:00
EmeraldBlock
b4bbfcb4f0 remove mod_examples 2024-06-18 04:14:21 -05:00
Даниїл Григор'єв
d8f378d7e1
Redo ESLint and TypeScript compiler config
Many configuration files in this repository were created a long time
ago, then were modified as problems occurred. Now that there is
TypeScript support, it makes sense to clean up this mess, at least by
making small steps. This configuration is based on strict settings, but
most of these are currently disabled - otherwise it would be too hard to
work with existing JavaScript code. The downside of this change is
pollution of files with warnings and errors, even though they are valid.

- ESLint/TypeScript upgraded
- TS configuration is now shared between arbitrary Node scripts, Gulp
  files and the Electron wrapper
- A few eslint-disable comments are removed
2024-04-27 00:23:34 +03:00
Даниїл Григор'єв
7aeb687d14
Merge pull request #27 from tobspr-games/refactor/gulp
Refactor gulp setup; switch from webpack watch to gulp.watch exclusively
2024-04-26 22:42:00 +03:00
EmeraldBlock
dac3a6b935 improve dev watching 2024-04-24 21:19:31 -05:00
EmeraldBlock
39b7e6cb59 Squashed commit of the following:
commit 176343785eea110e529f26027bf864ae04068384
Author: EmeraldBlock <yygengjunior@gmail.com>
Date:   Fri Dec 8 23:03:51 2023 -0600

    update readme

commit 8c1c3a0c47f5125126cb00d32a48f4f9344a3fb3
Author: EmeraldBlock <yygengjunior@gmail.com>
Date:   Fri Dec 8 23:00:05 2023 -0600

    fix bugs

commit ea881e68c693a447e0698a3a6e7cfb1f25ccb6cc
Author: EmeraldBlock <yygengjunior@gmail.com>
Date:   Fri Dec 8 22:46:46 2023 -0600

    expose all tasks with old api

commit fa6d7a3920ff573eadb61425cc077f0e00406164
Author: EmeraldBlock <yygengjunior@gmail.com>
Date:   Fri Dec 8 21:51:20 2023 -0600

    switch to exported gulp tasks

commit 348b19a0171e65400bcd434cf7b7432f3488a411
Author: EmeraldBlock <yygengjunior@gmail.com>
Date:   Mon Nov 20 22:55:38 2023 -0600

    parallelize dev build

commit 56de73e2d18d20e5ea7202afc021573a746e5012
Author: EmeraldBlock <yygengjunior@gmail.com>
Date:   Mon Nov 20 20:44:10 2023 -0600

    use promises in gulpfile

commit 6ab54372482f26acb4769428eefbdc48240a12a1
Author: EmeraldBlock <yygengjunior@gmail.com>
Date:   Mon Nov 20 20:33:36 2023 -0600

    make java -version print again

commit b0e4cf57bdc404bb3b0e45b7b233d5f7648c800e
Author: EmeraldBlock <yygengjunior@gmail.com>
Date:   Mon Nov 20 20:14:13 2023 -0600

    use promises for gulp tasks
2024-04-24 17:57:30 -05:00
EmeraldBlock
b5a7f7736a fix hub double-rendering 2024-04-24 16:09:28 -05:00
EmeraldBlock
a7f66e89a7 remember about blueprints 2024-04-24 10:46:45 +03:00
EmeraldBlock
731510007b make tiled sprites pixel-aligned to avoid transparent seams 2024-04-24 10:46:45 +03:00
EmeraldBlock
838f26f198 be more consistent with drawing methods 2024-04-24 10:46:45 +03:00
Danyil Hryhoriev
f2596ef845 Remove cache busting
Cache busting is not required in standalone context.
2024-04-20 13:23:02 +03:00
Даниїл Григор'єв
e10edca73e
Add more packaging tasks and fix localConfig not being created (#22)
* Update Electron dependencies

This will break some mods and a few things were deprecated, but the
Electron wrapper will be replaced anyway.

* Add macOS and arm64 packaging tasks

As @chunkybanana has tested the general approach to building shapez on
macOS, I can now add these tasks. Aside from that, now there are tasks
to build for the 64-bit ARM variant of each system and a task that
builds packages for all platforms and architectures at once. A bug where
localConfig wasn't created when building for the first time was also
fixed.
2024-04-16 21:50:36 +03:00
Даниїл Григор'єв
aa49f063c3
Remove ads, analytics and Steam SSO, simplify HTML tasks (#21)
* Remove ad support, analytics and Wegame leftovers

The game may be somewhat broken in a few places, but it doesn't matter
for now. This is still not the end.

* Remove Steam SSO and demo stuff

Steam SSO is completely removed, a few things from demo like simplified
level sets are gone as well. Puzzle DLC on the other hand is now always
"owned" and will ask for a token to log in.

Removes

* Use shapez dialogs for Puzzle DLC token input

Yes, this sucks *a lot*. But it's a temporary measure, trust me :P

* Simplify HTML tasks

Removes the web (demo) index.html page and makes HTML tasks independent
of the build variant. This might not be the best solution, but it works
for now.
2024-04-16 10:25:16 +03:00
Danyil Hryhoriev
62b170a92d Fix missing Gulp CWD in packaging scripts
The gulpfile is in a subdirectory and the scripts need to take that into
account. While there's already one such script, I forgot to add the
arguments in the new ones.
2024-04-14 20:26:03 +03:00
Даниїл Григор'єв
c2855d528d
Slight improvements for the build process (#19)
* Unify the version source

Changes the development config to use version from package.json and
makes the production config use the same utility function. Also removes
the version file as it's no longer needed.

* Remove some Steam references from build process

Removes files needed to publish the game on Steam and related tasks that
can be only used by the developer anyway. Only the build process is
affected, the actual game part still supports Steam integration.

* Refactor/add packaging tasks

Adds new Gulp tasks to create a distributable package of the game. A
task for macOS is not provided because signing needs to be figured out
first. Package creation tasks are also aliased in package.json for
future usage in external tools or CI. Aside from that, alternative
methods of downloading the libGDX Texture Packer are dropped.
2024-04-14 19:03:27 +03:00
Danyil Hryhoriev
b55001dd1a Remove the restriction manager
Restriction manager is completely removed as it's only useful for demo
version. Lots of other demo-related things are left, such as ad support
or extended telemetry. This should be cleaned up later.
2024-04-13 01:51:36 +03:00
Thomas (DJ1TJOO)
a2d1e434bb
Added information about community edition (#2)
* Added information about community edition

* Update README.md

* README rewrite

---------

Co-authored-by: EmeraldBlock <yygengjunior@gmail.com>
2023-11-18 16:19:43 -06:00
Bagel03
6db782d66a
Add Most Useful TS files (#13)
* Update Signal

* Update modal_dialogs

* Inputs

* Update factories

* Update tracked state

* Changed let to const where possible

* Add HUD typings

* improvements to typings

* fix exports not being exposed to mods

* fix signal typings

* remove TypedSignal

* fix all reported type errors

---------

Co-authored-by: Thomas B <t.ferb1@gmail.com>
Co-authored-by: EmeraldBlock <yygengjunior@gmail.com>
2023-11-17 16:02:08 -06:00
Frode Austvik
76a00db34d Fix build by re-adding a missing dev dependency
This fixes cssnano being unable to load the preset "advanced", after
the dependency for that was removed in commit 24ceb6664d.
2023-11-07 18:19:43 +02:00
Даниїл Григор'єв
1be520afb9
Clean up and update workspace files
* Remove deprecated TSLint config

* Remove jsconfig.json

jsconfig.json is an alternative name for tsconfig.json that has allowJs
set to true. Since the directory already contains a tsconfig.json file,
this file does nothing.

* Remove Gitpod configuration

Gitpod is not as useful in CE because we're focusing on standalone.
Also, the configuration was added just to promote the service and there
are other similar services which may be preferred by the user.

* Remove Travis CI configuration

Travis CI is not used in shapez anymore in favor of GitHub Actions. In
addition to that, CI setup for the community edition will be done once
the codebase is in a better condition.

* Remove CONTRIBUTORS and CONTRIBUTING.md

The contributors file is out of date and unneeded as GitHub now shows
all collaborators anyway - however it could be still used in the future
to show a list of contributors in the game. CONTRIBUTING.md contains the
text of CLA, which is not enforced in this repository.

* Replace VSC workspaces with regular settings files

VSCode workspaces don't provide much benefit in a source tree like
shapez. This commit also adds EditorConfig and ESLint VSCode extensions
to the recommended extensions list.

* Remove CI workflow for building the game

It hasn't been updated in a while and we don't need it for now. Once the
codebase is in a more managable state, a new workflow will be added.

* Remove some unused resources

There are still many resources left, but they will be removed along with
the relevant code later.
2023-10-25 08:05:56 +03:00
Bagel03
81df743334
Add support for JSX
Allows usage of JSX across the codebase, JSX is turned into regular HTML elements.
2023-10-24 16:58:53 +03:00