diff --git a/.gitignore b/.gitignore index 22fd1fa..a4493c0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .idea/* node_modules/* .env -/pnpm-lock.yaml \ No newline at end of file +/pnpm-lock.yaml +build/* \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..3eeb10c --- /dev/null +++ b/README.md @@ -0,0 +1,16 @@ +# neo-double-hearts + +```bash +git clone https://git.sduonline.cn/juzheng/neo-double-hearts +cd neo-double-hearts/ +cp .env.example .env +vim .env # Fill in your config +npm i typescript -g +npm i + +# Compile & Run +npm run build +npm start +# Or: +node --require ts-node/register src/index.ts +``` diff --git a/package.json b/package.json index 3e343df..f0dca08 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "start": "build/index.js" + "start": "build/index.js", + "build": "tsc" }, "keywords": [], "author": "",