Skip to content

Commit

Permalink
made building even leaner
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Aug 24, 2018
1 parent 341968d commit 13cad02
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
build:
build: install
npm run compile

install:
npm install

test:
npm run test
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
},
"scripts": {
"compile": "tsc",
"test": "./test.sh",
"test": "npm run prepare; ./test.sh",
"prepare": "npm run compile"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ActivityWatch/aw-client-js.git"
},
"author": "Johan Bjäreholt <[email protected]>",
"license": "UNLICENSED",
"license": "MPL-2.0",
"bugs": {
"url": "https://github.com/ActivityWatch/aw-client-js/issues"
},
Expand Down
3 changes: 0 additions & 3 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ AWPID=$!
# Give aw-server some time to start
sleep 5

# Compile
npm run compile

# Run tests
mocha ./out/test/*.js
EXITCODE=$?
Expand Down

0 comments on commit 13cad02

Please sign in to comment.