From 5d830bd4f3b736b01486068941bbdb38100f12b2 Mon Sep 17 00:00:00 2001 From: Mist Date: Wed, 21 Feb 2024 19:27:20 +0800 Subject: [PATCH] [Feat] add build script --- makefile | 13 +++++++++++++ project.toml | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 makefile diff --git a/makefile b/makefile new file mode 100644 index 0000000..312fbfe --- /dev/null +++ b/makefile @@ -0,0 +1,13 @@ +build: + make build_preview_client + make build_server + make make_static_files + +build_preview_client: + cd snap-client && npm install && npm run build + +build_server: + cd snap-server && cargo build --release + +make_static_files: + cp -r snap-client/build snap-server/public diff --git a/project.toml b/project.toml index 554ae48..ceb7f1a 100644 --- a/project.toml +++ b/project.toml @@ -1,6 +1,6 @@ [project] name = "codesnap.nvim" -version = "0.0.2" +version = "0.0.3" description = "Make pretty code snapshot just one command" author = "Mist" email = "mist.zzh@gmail.com"