Hornwitser
690e566556
Move web interface to its own package
...
Create clusterio/web_ui package and move all of the web interface files
to it in order to be able to share the interface components with
plugins.
2020-10-28 19:22:14 +01:00
Hornwitser
eee4c69575
v2.0.0-alpha.1
2020-10-28 15:02:13 +01:00
Hornwitser
4834c289ff
Add README.md files to packages
...
Add README with basic descriptions of each package to all of the
packages in this repository.
2020-10-28 00:58:01 +01:00
Hornwitser
6dbf29153e
Implement plugin loading in web interface
...
Add loading of plugin info to the web interface via webpack Module
Federation.
2020-10-27 18:24:45 +01:00
Hornwitser
d96fb75703
Mark packages public
...
Add the required publishConfig.access: public for publishing public
packages in an ord on npm.
2020-10-24 14:43:42 +02:00
Hornwitser
20c7b613f2
Use lerna's pre-publish version format
...
Use -alpha.0 instead of -alpha0 as the pre-publish version as this is
the format lerna uses with the --canary option to publish.
2020-10-24 14:31:49 +02:00
Hornwitser
24397b75cc
Prefix clusterio/lib imports with lib
...
Use lib* prefix for the modules impored from the lib package to help
distinguish them more from ordinary variables. Fix up the naming
convention for files to be consistently lowercase_underscore for
JavaScript files.
2020-10-23 21:22:43 +02:00
Hornwitser
7968d89345
Use peerDependency for plugins
...
Avoid any potential for accidentally installing multiple copies of
clusterio/lib by specifiying it as a peer dependency instead of a
regular dependency.
2020-10-23 17:01:43 +02:00
Hornwitser
b2408d54ec
Convert plugins to node packages
...
Setup package.json for the plugins and add them back to tests now that
they are compatible again.
2020-10-21 21:37:26 +02:00
Hornwitser
bf5a4a8a9c
Split up into multiple packages with Lerna
...
Split up codebase into the packages @clsterio/lib, @clusterio/master,
@clusterio/slave, and @clusterio/ctl using lerna to manage them. This
will allow deployment to use only the parts needed reducing install
size, and better separate the code into shared library, master, slave
and control.
2020-09-21 18:00:07 +02:00
Hornwitser
9458155a1b
Add option to disable save patching
...
Add factorio.enable_save_patching config entry to allow disabling the
save patching done on startup. This is for running vannila games or
scenarios that are not compatible with Clusterio.
2020-07-04 16:45:42 +02:00
Hornwitser
8cb21c5fa8
Add dangling commas
...
Ensure multiline object and array litterals are consistenly typed out
with dangling commas for the last element.
2020-06-17 20:59:37 +02:00
Hornwitser
3dba92a03d
Use strict mode
...
Add strict mode directives to all js files.
2020-06-17 20:53:18 +02:00
Hornwitser
29f066a191
Fix missing semicolons
...
Ensure all statements end with a semicolon.
2020-06-17 20:53:18 +02:00
Hornwitser
34aaeee354
Use double quotes
...
Convert existing mix of double quotes and single quotes to only use
double quotes unless the string contains double quotes.
2020-06-17 20:53:18 +02:00
Hornwitser
59758f1576
Rename plugin Prometheus metrics
...
Rename Prometheus metrics exported by plugins to follow the
clusterio_<plugin_name>_<metric_name> naming scheme.
2020-04-03 21:14:30 +02:00
Hornwitser
6f22942cc5
Fix incorrect instance lookups in plugins
...
Fix mistaken lookups missing the instance part, or trying to get the id
from the removed instance.id property.
2020-03-13 22:46:17 +01:00
Hornwitser
6cf16cc09e
Reference by global in statistics_exporter
...
Store export function in a global table in the lua module for statistics
exporter in order to avoid a remote.call.
2020-01-04 17:34:16 +01:00
Hornwitser
80bd75ba16
Rework module loading
...
Change module loading to use a module.json file describing the module
and patch in all files in a directory path passed to the patcher instead
of having to pass the files names and their content. This allows the
specification of which files should be passed to the event_handler lib
and an easy implementation of loading stand alone modules.
2020-01-04 17:34:16 +01:00
Hornwitser
610859eb3b
Improve error message from statistics_exporter
...
If the JSON parse failed it will usually be because Factorio returned an
error message instead of JSON, pass this along for easier debugging.
2019-12-29 04:44:16 +01:00
Hornwitser
37d8eedc0d
Add tests for statistics_exporter plugin
...
These were already made at the time I ported the plugin but somehow I
forgot to add them to the statistics rework commit (26eefb0 ) :/.
2019-12-29 04:42:13 +01:00
Hornwitser
26eefb0476
Rewrite statistics export
...
Add automatic export of metrics from slaves to the master server. And
rewrite the statistics export plugin to use this new system.
2019-12-20 21:26:29 +01:00