Skip to content
This repository was archived by the owner on May 11, 2025. It is now read-only.

Commit 335308d

Browse files
committed
1.2
1 parent 9f7190c commit 335308d

3 files changed

Lines changed: 86 additions & 1 deletion

File tree

.replit

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
2+
hidden = [".config", "package-lock.json"]
3+
run = "node index"
4+
5+
[[hints]]
6+
regex = "Error \\[ERR_REQUIRE_ESM\\]"
7+
message = "We see that you are using require(...) inside your code. We currently do not support this syntax. Please use 'import' instead when using external modules. (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import)"
8+
9+
[nix]
10+
channel = "stable-22_11"
11+
12+
[env]
13+
XDG_CONFIG_HOME = "/home/runner/.config"
14+
PATH = "/home/runner/$REPL_SLUG/.config/npm/node_global/bin:/home/runner/$REPL_SLUG/node_modules/.bin"
15+
npm_config_prefix = "/home/runner/$REPL_SLUG/.config/npm/node_global"
16+
17+
[gitHubImport]
18+
requiredFiles = [".replit", "replit.nix", ".config", "package.json", "package-lock.json"]
19+
20+
[packager]
21+
language = "nodejs"
22+
23+
[packager.features]
24+
packageSearch = true
25+
guessImports = true
26+
enabledForHosting = false
27+
28+
[unitTest]
29+
language = "nodejs"
30+
31+
[debugger]
32+
support = true
33+
34+
[debugger.interactive]
35+
transport = "localhost:0"
36+
startCommand = [ "dap-node" ]
37+
38+
[debugger.interactive.initializeMessage]
39+
command = "initialize"
40+
type = "request"
41+
42+
[debugger.interactive.initializeMessage.arguments]
43+
clientID = "replit"
44+
clientName = "replit.com"
45+
columnsStartAt1 = true
46+
linesStartAt1 = true
47+
locale = "en-us"
48+
pathFormat = "path"
49+
supportsInvalidatedEvent = true
50+
supportsProgressReporting = true
51+
supportsRunInTerminalRequest = true
52+
supportsVariablePaging = true
53+
supportsVariableType = true
54+
55+
[debugger.interactive.launchMessage]
56+
command = "launch"
57+
type = "request"
58+
59+
[debugger.interactive.launchMessage.arguments]
60+
args = []
61+
console = "externalTerminal"
62+
cwd = "."
63+
environment = []
64+
pauseForSourceMap = false
65+
program = "./index.js"
66+
request = "launch"
67+
sourceMaps = true
68+
stopOnEntry = false
69+
type = "pwa-node"
70+
71+
[languages]
72+
73+
[languages.javascript]
74+
pattern = "**/{*.js,*.jsx,*.ts,*.tsx}"
75+
76+
[languages.javascript.languageServer]
77+
start = "typescript-language-server --stdio"

config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ module.exports = {
22
token: process.env.CODE_STATISTIC, // GitHub Access Token (Minimum permissions). Increase QPS of GitHub APIs.
33
expiration: 3600, // expiration second
44
requires: ["*"], // CODE STATISTIC can only be parsed for allowed users. ( * indicates that all users are allowed )
5-
port: 8000, // server port
5+
port: 80, // server port
66
}

replit.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{ pkgs }: {
2+
deps = [
3+
pkgs.nodejs-18_x
4+
pkgs.nodePackages.typescript-language-server
5+
pkgs.yarn
6+
pkgs.replitPackages.jest
7+
];
8+
}

0 commit comments

Comments
 (0)