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"