This is an automated email from the ASF dual-hosted git repository.

aghaemi pushed a commit to branch makefile
in repository https://gitbox.apache.org/repos/asf/flagon-useralejs.git

commit d2ba4e6f908463a4ed02aa3b4f54489926f3782d
Author: Amir Ghaemi <51731855+amirmgha...@users.noreply.github.com>
AuthorDate: Wed Mar 20 12:19:14 2024 -0400

    adding a makefile for building and testing
---
 README.md | 11 +++++++++++
 makefile  |  9 +++++++++
 2 files changed, 20 insertions(+)

diff --git a/README.md b/README.md
index ae4e83e..7c5f20b 100644
--- a/README.md
+++ b/README.md
@@ -301,11 +301,22 @@ you will need to rebuild the UserALE.js script (and run 
tests).
 To (re)build UserALE.js:
 
 ```
+make build
+```
+Alternatively,
+```
+npm install
 npm run build
 ```
 
 To run UserALE.js unit tests:
 ```
+make test
+```
+Alternatively,
+```
+npm install
+npm run build
 npm run test
 ```
 
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..5491132
--- /dev/null
+++ b/makefile
@@ -0,0 +1,9 @@
+.PHONY: build test
+
+build:
+       npm install
+       npm run build
+test:
+       npm install
+       npm run build
+       npm run test
\ No newline at end of file

Reply via email to