Skip to content

Commit 3938aa1

Browse files
committed
Refactor npm test target
1 parent 71fdc74 commit 3938aa1

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
@@ -38,17 +38,15 @@
3838
"tape": "^4.4.0"
3939
},
4040
"scripts": {
41-
"test-api": "node test.js",
42-
"test-coverage": "istanbul cover test.js",
43-
"test-travis": "npm run test-coverage",
44-
"test": "npm run test-api",
41+
"build-md": "remark . --quiet --frail",
42+
"build-bundle": "browserify index.js --no-builtins -s mdastUtilPosition > mdast-util-position.js",
43+
"build-mangle": "esmangle mdast-util-position.js > mdast-util-position.min.js",
44+
"build": "npm run build-md && npm run build-bundle && npm run build-mangle",
4545
"lint-api": "eslint .",
4646
"lint-style": "jscs --reporter inline .",
4747
"lint": "npm run lint-api && npm run lint-style",
48-
"make": "npm run lint && npm run test-coverage",
49-
"bundle": "browserify index.js --no-builtins -s mdastUtilPosition > mdast-util-position.js",
50-
"postbundle": "esmangle mdast-util-position.js > mdast-util-position.min.js",
51-
"build-md": "remark . --quiet --frail",
52-
"build": "npm run bundle && npm run build-md"
48+
"test-api": "node test.js",
49+
"test-coverage": "istanbul cover test.js",
50+
"test": "npm run build && npm run lint && npm run test-coverage"
5351
}
5452
}

0 commit comments

Comments
 (0)