-
Notifications
You must be signed in to change notification settings - Fork 7
/
.replit
96 lines (79 loc) · 2.73 KB
/
.replit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
hidden=[".config", ".gitignore", ".github", "node_modules", "pnpm-lock.yaml", "tsconfig.json", "tsconfig.node.json", "vite.config.ts"]
# onBoot=['echo', '$PATH'] # ⚠ node is not in env, yet
# onBoot=['echo', 'rebooted..'] # Runs on reboot, very limited ENV vars
# compile="npm i" # No runtime ENV vars
# run = ["npm", "run", "dev"] # Use TOML's """ for a multiline bash script
run = """
echo NodeJS Version: $(node --version) "\n"
pnpm run dev
bash --norc
""" # "
compile = """
pnpm i
"""
entrypoint = ".replit"
[[ports]]
localPort = 5101
remotePort = 80
[nix]
channel = "stable-22_11"
[env]
PATH = "/home/runner/$REPL_SLUG/.config/npm/node_global/bin:/home/runner/$REPL_SLUG/node_modules/.bin:./node_modules/.bin:/home/runner/$REPL_SLUG/.config/pnpm"
npm_config_prefix = "/home/runner/$REPL_SLUG/.config/npm/node_global" # Global install support
npm_config_yes="true" # This is a safe space, don't ask stupid questions
PNPM_HOME = "/home/runner/$REPL_SLUG/.config/pnpm"
VITE_HOST = "0.0.0.0"
# NODE_OPTIONS="--max_old_space_size=384"
# EDITOR="replit-git-editor" # Not reliable, use curl replspace instead
#NODE_NO_WARNINGS="1"
# Helper for Replit's git importer
[gitHubImport]
requiredFiles = ["package.json", "tsconfig.json", "pnpm-lock.yaml"]
# Disables UPM, which BREAKS with PNPM, NPM v9, PNPM/Turbo/Yarn/Deno/Bun etc
[packager]
language = "no" # nodejs-npm / nodejs-yarn
ignoredPaths = ["."] # disables guessImports
[languages.typescript]
pattern = "**/{*.ts,*.js,*.tsx,*.jsx}"
syntax = "typescript"
[languages.typescript.languageServer]
start = [ "typescript-language-server", "--stdio" ]
# CWD is not supported
# As a workaround, use Node 19 with --import and a helper script that CD's to a directory based on env vars
[debugger]
support = true
[debugger.interactive]
transport = "localhost:0"
startCommand = [ "dap-node" ]
[debugger.interactive.initializeMessage]
command = "initialize"
type = "request"
[debugger.interactive.initializeMessage.arguments]
clientID = "replit"
clientName = "replit.com"
columnsStartAt1 = true
linesStartAt1 = true
locale = "en-us"
pathFormat = "path"
supportsInvalidatedEvent = true
supportsProgressReporting = true
supportsRunInTerminalRequest = true
supportsVariablePaging = true
supportsVariableType = true
[debugger.interactive.launchMessage]
command = "launch"
type = "request"
[debugger.interactive.launchMessage.arguments]
runtimeArgs = ["--loader", "ts-node/esm/transpile-only"]
args = []
console = "externalTerminal"
cwd = "." # Broken
environment = [] # Broken
pauseForSourceMap = false
program = "index.ts"
request = "launch"
sourceMaps = true
stopOnEntry = false
type = "pwa-node"
[debugger.interactive.launchMessage.arguments.env]
VSLITE = "true"