From 366dbb82e1a34a20ca05ffabd70ba2277f467446 Mon Sep 17 00:00:00 2001 From: 64104061f23fda247c679fa8 <64104061f23fda247c679fa8@devide> Date: Tue, 21 Mar 2023 15:43:03 +0000 Subject: [PATCH] UPDATE --- .inscode | 4 +++- index.js | 1 + inscode.nix | 10 ++++++---- package.json | 17 +++++++++++++++++ 4 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 index.js create mode 100644 package.json diff --git a/.inscode b/.inscode index fc90fcf..0c31362 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 0000000..2d7e683 --- /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 2a5879a..cf4e310 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 0000000..3288d05 --- /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 -- GitLab