Skip to content

Commit c5bc9ae

Browse files
committed
Refactor npm test target
1 parent 4cf70ce commit c5bc9ae

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
language: node_js
2-
script: npm run-script test-travis
32
node_js:
43
- '0.10'
54
- '0.11'

package.json

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,15 @@
3434
"tape": "^4.4.0"
3535
},
3636
"scripts": {
37-
"test-api": "node test.js",
38-
"test-coverage": "istanbul cover test.js",
39-
"test-travis": "npm run test-coverage",
40-
"test": "npm run test-api",
37+
"build-md": "remark . --quiet --frail",
38+
"build-bundle": "browserify index.js --no-builtins -s mdastUtilHeadingRange > mdast-util-heading-range.js",
39+
"build-mangle": "esmangle mdast-util-heading-range.js > mdast-util-heading-range.min.js",
40+
"build": "npm run build-md && npm run build-bundle && npm run build-mangle",
4141
"lint-api": "eslint .",
4242
"lint-style": "jscs --reporter inline .",
4343
"lint": "npm run lint-api && npm run lint-style",
44-
"make": "npm run lint && npm run test-coverage",
45-
"bundle": "browserify index.js --no-builtins -s mdastUtilHeadingRange > mdast-util-heading-range.js",
46-
"postbundle": "esmangle mdast-util-heading-range.js > mdast-util-heading-range.min.js",
47-
"build-md": "remark . --quiet --frail",
48-
"build": "npm run bundle && npm run build-md"
44+
"test-api": "node test.js",
45+
"test-coverage": "istanbul cover test.js",
46+
"test": "npm run build && npm run lint && npm run test-coverage"
4947
}
5048
}

0 commit comments

Comments
 (0)