exports.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Copyright (C) 2024 Puter Technologies Inc.
  3. *
  4. * This file is part of Puter.
  5. *
  6. * Puter is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU Affero General Public License as published
  8. * by the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU Affero General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Affero General Public License
  17. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  18. */
  19. const CoreModule = require("./src/CoreModule.js");
  20. const { Kernel } = require("./src/Kernel.js");
  21. const DatabaseModule = require("./src/DatabaseModule.js");
  22. const LocalDiskStorageModule = require("./src/LocalDiskStorageModule.js");
  23. const SelfhostedModule = require("./src/SelfhostedModule.js");
  24. const PuterDriversModule = require("./src/PuterDriversModule.js");
  25. const { testlaunch } = require("./src/index.js");
  26. const BaseService = require("./src/services/BaseService.js");
  27. const { Context } = require("./src/util/context.js");
  28. module.exports = {
  29. helloworld: () => {
  30. console.log('Hello, World!');
  31. process.exit(0);
  32. },
  33. testlaunch,
  34. // Kernel API
  35. BaseService,
  36. Context,
  37. Kernel,
  38. // Pre-built modules
  39. CoreModule,
  40. DatabaseModule,
  41. PuterDriversModule,
  42. LocalDiskStorageModule,
  43. SelfhostedModule,
  44. };