Skip to content

Commit 5d316cd

Browse files
committed
add Makefile to automate release engineering
1 parent cea0061 commit 5d316cd

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
test:
2+
npm ci
3+
npm run test:browser
4+
npm run test:cover
5+
6+
dist: test
7+
npm publish
8+
git push origin master
9+
git push origin master --tags
10+
11+
.PHONY: build test dist

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212
"clean": "rm -rf build dist dist.*",
1313
"test": "mocha 'test/**/*.test.ts'",
1414
"test:cover": "npx nyc mocha 'test/**/*.test.ts'",
15-
"test:browser": "karma start",
15+
"test:browser": "karma start --single-run",
1616
"test:browser:firefox": "karma start --single-run --borwsers FirefoxHedless",
1717
"test:browser:chrome": "karma start --single-run --borwsers ChromeHeadless",
18+
"test:watch:browser": "karma start",
19+
"test:watch:nodejs": "mocha -w 'test/**/*.test.ts'",
1820
"lint": "eslint --ext .ts src test",
1921
"lint:fix": "eslint --fix --ext .ts src test && npm run format",
2022
"lint:print-config": "eslint --print-config .eslintrc.js",

0 commit comments

Comments
 (0)