diff --git a/.inscode b/.inscode index fc90fcf343d827601679bd6a163e84ee4f4edfbb..0c3136299845c397e034dbc60fc60fe29a1ee7bc 100644 --- a/.inscode +++ b/.inscode @@ -1,4 +1,6 @@ -run = "cowsay 欢迎来到 InsCode" +run = "node index.js" + +entrypoint = "index.js" [nix] channel = "stable-22_11" diff --git a/index.js b/index.js new file mode 100644 index 0000000000000000000000000000000000000000..2d7e6834fb6366b3120c7a37cc5f637bc4a33928 --- /dev/null +++ b/index.js @@ -0,0 +1 @@ +console.log("欢迎来到 InsCode"); \ No newline at end of file diff --git a/inscode.nix b/inscode.nix index 2a5879a58618e489038072b8c86903e4384a77b8..cf4e3100c9094437e2bd763c8e5903c842fd1c13 100644 --- a/inscode.nix +++ b/inscode.nix @@ -1,5 +1,7 @@ { pkgs }: { - deps = [ - pkgs.cowsay - ]; -} + deps = [ + pkgs.nodejs-18_x + pkgs.nodePackages.typescript-language-server + pkgs.yarn + ]; +} \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000000000000000000000000000000000000..3288d050c3301d28d842896a5b079b1b09b85bd8 --- /dev/null +++ b/package.json @@ -0,0 +1,17 @@ +{ + "name": "nodejs", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "keywords": [], + "author": "", + "license": "ISC", + "dependencies": { + "@types/node": "^18.0.6", + "node-fetch": "^3.2.6" + } + } + \ No newline at end of file