Skip to content

Commit

Permalink
repl it
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon-schabel committed Nov 15, 2023
1 parent cb3bba3 commit ba881b2
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .replit
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
run = "bun run test"
hidden = [".config", "package-lock.json", "tsconfig.json"]

[packager]
language = "nodejs"
[packager.features]
enabledForHosting = false
packageSearch = true
guessImports = true

[nix]
channel = "stable-22_11"

[env]
XDG_CONFIG_HOME = "$REPL_HOME/.config"
PATH = "$REPL_HOME/node_modules/.bin:$REPL_HOME/.config/npm/node_global/bin"
npm_config_prefix = "$REPL_HOME/.config/npm/node_global"

[gitHubImport]
requiredFiles = [".replit", "replit.nix", ".config"]

[languages]
[languages.typescript]
pattern = "**/{*.ts,*.js,*.tsx,*.jsx,*.json}"
[languages.typescript.languageServer]
start = "typescript-language-server --stdio"

[deployment]
run = ["sh", "-c", "bun run test"]
deploymentTarget = "cloudrun"
ignorePorts = false
10 changes: 10 additions & 0 deletions replit.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{ pkgs }: {
deps = [
pkgs.yarn
pkgs.esbuild
pkgs.nodejs-18_x

pkgs.nodePackages.typescript
pkgs.nodePackages.typescript-language-server
];
}

0 comments on commit ba881b2

Please sign in to comment.