Skip to content

Commit 28cfc8d

Browse files
committed
Refactor npm test target
1 parent c1650fd commit 28cfc8d

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

package.json

+7-8
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,15 @@
3636
"tape": "^4.0.0"
3737
},
3838
"scripts": {
39-
"test-api": "node test.js",
40-
"test-coverage": "istanbul cover test.js",
41-
"test": "npm run test-api",
39+
"build-md": "remark . --quiet --frail",
40+
"build-bundle": "browserify index.js --no-builtins -s mdastUtilDefinitions > mdast-util-definitions.js",
41+
"build-mangle": "esmangle mdast-util-definitions.js > mdast-util-definitions.min.js",
42+
"build": "npm run build-md && npm run build-bundle && npm run build-mangle",
4243
"lint-api": "eslint .",
4344
"lint-style": "jscs --reporter inline .",
4445
"lint": "npm run lint-api && npm run lint-style",
45-
"make": "npm run lint && npm run test-coverage",
46-
"bundle": "browserify index.js --no-builtins -s mdastUtilDefinitions > mdast-util-definitions.js",
47-
"postbundle": "esmangle mdast-util-definitions.js > mdast-util-definitions.min.js",
48-
"build-md": "remark . --quiet --frail",
49-
"build": "npm run bundle && npm run build-md"
46+
"test-api": "node test.js",
47+
"test-coverage": "istanbul cover test.js",
48+
"test": "npm run build && npm run lint && npm run test-coverage"
5049
}
5150
}

0 commit comments

Comments
 (0)