Skip to content

Commit fd6769c

Browse files
committed
Refactor npm test target
1 parent be30cfc commit fd6769c

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
@@ -33,17 +33,15 @@
3333
"tape": "^4.4.0"
3434
},
3535
"scripts": {
36-
"test-api": "node test.js",
37-
"test-coverage": "istanbul cover test.js",
38-
"test-travis": "npm run test-coverage",
39-
"test": "npm run test-api",
36+
"build-md": "remark . --quiet --frail",
37+
"build-bundle": "browserify index.js --no-builtins -s mdastUtilToString > mdast-util-to-string.js",
38+
"build-mangle": "esmangle mdast-util-to-string.js > mdast-util-to-string.min.js",
39+
"build": "npm run build-md && npm run build-bundle && npm run build-mangle",
4040
"lint-api": "eslint .",
4141
"lint-style": "jscs --reporter inline .",
4242
"lint": "npm run lint-api && npm run lint-style",
43-
"make": "npm run lint && npm run test-coverage",
44-
"bundle": "browserify index.js --no-builtins -s mdastUtilToString > mdast-util-to-string.js",
45-
"postbundle": "esmangle mdast-util-to-string.js > mdast-util-to-string.min.js",
46-
"build-md": "remark . --quiet --frail",
47-
"build": "npm run bundle && npm run build-md"
43+
"test-api": "node test.js",
44+
"test-coverage": "istanbul cover test.js",
45+
"test": "npm run build && npm run lint && npm run test-coverage"
4846
}
4947
}

0 commit comments

Comments
 (0)