Skip to content
This repository was archived by the owner on Nov 24, 2020. It is now read-only.

Commit 33bc645

Browse files
authored
Merge pull request #50 from cubos/fix/dependencies+remove-yarn
Remove yarn and localtunnel
2 parents 5f48648 + 9200b52 commit 33bc645

File tree

11 files changed

+7275
-3568
lines changed

11 files changed

+7275
-3568
lines changed

src/target/typescript_nodeserver.cr

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -434,25 +434,13 @@ export function start(port: number = 8000) {
434434
});
435435
}
436436
437-
if (process.env.DEBUGGING && !process.env.NOLOCALTUNNEL) {
438-
port = (Math.random() * 50000 + 10000) | 0;
439-
}
440-
441437
if (!process.env.TEST) {
442438
server.listen(port, () => {
443439
const addr = server.address();
444440
const addrString = typeof addr === "string" ? addr : `${addr.address}:${addr.port}`;
445441
console.log(`Listening on ${addrString}`);
446442
});
447443
}
448-
449-
if (process.env.DEBUGGING && !process.env.NOLOCALTUNNEL) {
450-
const subdomain = require("crypto").createHash("sha256").update(process.argv[1]).digest("hex").substr(0, 8);
451-
require("localtunnel")(port, {subdomain}, (err: Error | null, tunnel: any) => {
452-
if (err) throw err;
453-
console.log("Tunnel URL:", tunnel.url);
454-
});
455-
}
456444
}
457445
458446
fn.ping = async (ctx: Context) => "pong";

target-node/.yarnrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

target-node/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
FROM node
22
WORKDIR /root/stage/
33
ADD package.json /root/stage/
4-
ADD yarn.lock /root/stage/
5-
RUN yarn install
4+
ADD package-lock.json /root/stage/
5+
RUN npm ci
66
ADD . /root/stage/
77
ADD build_and_publish.sh /
88
RUN chmod +x /build_and_publish.sh

0 commit comments

Comments
 (0)