Skip to content

Commit

Permalink
use makefile to execute tasks
Browse files Browse the repository at this point in the history
move lint command to makefile to have only commands in one place
  • Loading branch information
Ajnasz committed Aug 9, 2023
1 parent 0cae65d commit 767f680
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
all: test

doc:
yuidoc .
test:
@(cd tests && $(MAKE))

lint:
@node_modules/.bin/eslint index.js lib/ tests --fix
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"jagiella <[email protected]>"
],
"scripts": {
"test": "make",
"lint": "eslint index.js lib/ tests --fix"
"test": "make test",
"lint": "make lint"
},
"license": "MIT",
"version": "2.2.0",
Expand Down

0 comments on commit 767f680

Please sign in to comment.