From fbb78b67c71ca5da0339fe2d7bcf0a520db55035 Mon Sep 17 00:00:00 2001 From: mparramont Date: Thu, 20 Apr 2023 05:19:08 +0000 Subject: [PATCH] build: add replit stuff --- .replit | 27 +++++++++++++++++++++++++++ replit.nix | 10 ++++++++++ 2 files changed, 37 insertions(+) create mode 100644 .replit create mode 100644 replit.nix diff --git a/.replit b/.replit new file mode 100644 index 0000000..7ae5393 --- /dev/null +++ b/.replit @@ -0,0 +1,27 @@ +run = "npm run start" +hidden = [".build", ".config"] + +[packager] +language = "nodejs" + +[packager.features] +enabledForHosting = false +packageSearch = true +guessImports = true + +[nix] +channel = "stable-22_11" + +[gitHubImport] +requiredFiles = [".replit", "replit.nix", ".config"] + +[languages] + +[languages.typescript] +pattern = "**/{*.ts,*.js,*.tsx,*.jsx}" + +[languages.typescript.languageServer] +start = "typescript-language-server --stdio" + +[deployment] +run = ["sh", "-c", "npm run start"] diff --git a/replit.nix b/replit.nix new file mode 100644 index 0000000..fe7e397 --- /dev/null +++ b/replit.nix @@ -0,0 +1,10 @@ +{ pkgs }: { + deps = [ + pkgs.yarn + pkgs.esbuild + pkgs.nodejs-16_x + + pkgs.nodePackages.typescript + pkgs.nodePackages.typescript-language-server + ]; +} \ No newline at end of file