From 294325650ac1c74d7889572686a3331ae052da50 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Tue, 1 Mar 2022 20:41:28 -0600 Subject: [PATCH] Added support for replit --- .replit | 13 ++++++++++++- package.json | 2 +- replit.nix | 7 +++++++ 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 replit.nix diff --git a/.replit b/.replit index 9978ad8..0319a6b 100644 --- a/.replit +++ b/.replit @@ -1,2 +1,13 @@ +run = "npm install; npm run serve" + +[packager] language = "nodejs" -run = "npm run serve" + [packager.features] + packageSearch = true + guessImports = false + +[languages.javascript] +pattern = "**/{*.js,*.jsx,*.ts,*.tsx}" + + [languages.javascript.languageServer] + start = [ "typescript-language-server", "--stdio" ] diff --git a/package.json b/package.json index b5d8fe4..be517dc 100644 --- a/package.json +++ b/package.json @@ -57,6 +57,6 @@ ] }, "engines": { - "node": "14.x" + "node": "16.x" } } diff --git a/replit.nix b/replit.nix new file mode 100644 index 0000000..1b59d2e --- /dev/null +++ b/replit.nix @@ -0,0 +1,7 @@ +{ pkgs }: { + deps = [ + pkgs.nodejs-16_x + pkgs.nodePackages.typescript-language-server + pkgs.nodePackages.npm + ]; +}