Skip to content

Commit 379ee93

Browse files
committed
Refactor npm test target
1 parent 54dbd9b commit 379ee93

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

package.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,15 @@
4848
"vfile": "^1.0.0"
4949
},
5050
"scripts": {
51-
"test-api": "node test/index.js",
52-
"test-coverage": "istanbul cover test/index.js",
53-
"test": "npm run test-api",
51+
"build-bundle": "browserify index.js --no-builtins -s mdastUtilToNLCST > mdast-util-to-nlcst.js",
52+
"build-mangle": "esmangle mdast-util-to-nlcst.js > mdast-util-to-nlcst.min.js",
53+
"build-md": "remark . --quiet --frail",
54+
"build": "npm run build-md && npm run build-bundle && npm run build-mangle",
5455
"lint-api": "eslint .",
5556
"lint-style": "jscs --reporter inline .",
5657
"lint": "npm run lint-api && npm run lint-style",
57-
"make": "npm run lint && npm run test-coverage",
58-
"bundle": "browserify index.js --no-builtins -s mdastUtilToNLCST > mdast-util-to-nlcst.js",
59-
"postbundle": "esmangle mdast-util-to-nlcst.js > mdast-util-to-nlcst.min.js",
60-
"build-md": "remark . --quiet --frail",
61-
"build": "npm run bundle && npm run build-md"
58+
"test-api": "node test/index.js",
59+
"test-coverage": "istanbul cover test/index.js",
60+
"test": "npm run build && npm run lint && npm run test-coverage"
6261
}
6362
}

0 commit comments

Comments
 (0)