Skip to content

Commit ddc5ac5

Browse files
authored
Remove make (#45)
1 parent e1c5c37 commit ddc5ac5

File tree

4 files changed

+15
-50
lines changed

4 files changed

+15
-50
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
name: restore npm cache
1212
keys:
1313
- npm-{{ .Branch }}-{{ checksum "package-lock.json" }}
14-
- run: make setup
15-
- run: make test
16-
- run: make coverage
14+
- run: npm run setup
15+
- run: npm run test
16+
- run: npm run coverage
1717
- save_cache:
1818
name: save npm cache
1919
key: npm-{{ .Branch }}-{{ checksum "package-lock.json" }}

Makefile

Lines changed: 0 additions & 43 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ You can provide a custom error message as an optional third parameter.
3333

3434
## Development
3535

36-
- run all tests: `make test`
37-
- see all available make commands: `make help`
36+
- run all tests: `npm run test`
3837
- deploy a new version:
3938
- update `package.json` to the new version and commit to master
4039
- run `npm publish`

package.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,17 @@
1414
"dist"
1515
],
1616
"scripts": {
17-
"prepublishOnly": "make build",
18-
"test": "make test"
17+
"build": "tsc",
18+
"clean": "rm -rf dist",
19+
"coverage": "node --test --import tsx --experimental-test-coverage --test-reporter=lcov --test-reporter-destination=lcov.info -- test/*.test.ts",
20+
"doc": "text-runner",
21+
"fix": "prettier --write . && eslint . --ext .ts --fix && sort-package-json --quiet",
22+
"lint": "eslint --ext .ts . && prettier --list-different . && tsc --noEmit && sort-package-json --check",
23+
"prepublishOnly": "tsc",
24+
"setup": "npm install",
25+
"test": "npm run fix && npm run lint && npm run unit && npm run doc",
26+
"unit": "mocha test/*.test.ts",
27+
"update": "npm-check-updates -u && npm install"
1928
},
2029
"dependencies": {
2130
"chalk": "4.1.1",

0 commit comments

Comments
 (0)