Skip to content

Commit 4a97d45

Browse files
committed
Cleanup scripts
1 parent ccdd6bb commit 4a97d45

File tree

3 files changed

+10
-26
lines changed

3 files changed

+10
-26
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ node_js:
66
- '10'
77
- '8'
88
script:
9-
- yarn test-ci
9+
- yarn test:ci
1010
- yarn lint
1111
after_success: yarn coverage

Makefile

+1-19
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
PATH := ./node_modules/.bin:${PATH}
2-
3-
NPM_PACKAGE := $(shell node -e 'process.stdout.write(require("./package.json").name)')
42
NPM_VERSION := $(shell node -e 'process.stdout.write(require("./package.json").version)')
5-
6-
TMP_PATH := /tmp/${NPM_PACKAGE}-$(shell date +%s)
7-
8-
REMOTE_NAME ?= origin
9-
REMOTE_REPO ?= $(shell git config --get remote.${REMOTE_NAME}.url)
10-
11-
CURR_HEAD := $(firstword $(shell git show-ref --hash HEAD | cut -b -6) master)
12-
GITHUB_PROJ := https://github.com/jonschlinkert/${NPM_PACKAGE}
3+
GITHUB_PROJ := $(shell node -e 'process.stdout.write(require("./package.json").repository)')
134

145

156
demo:
@@ -18,11 +9,6 @@ demo:
189
stylus -u autoprefixer-stylus demo/assets/index.styl
1910
rm -rf demo/example.json
2011

21-
test:
22-
NODE_ENV=test mocha -r esm -R spec
23-
echo "CommonMark stat:\n"
24-
./support/specsplit.js test/fixtures/commonmark/spec.txt
25-
2612
gh-pages:
2713
if [ "git branch --list gh-pages" ]; then \
2814
git branch -D gh-pages ; \
@@ -46,10 +32,6 @@ publish:
4632
git tag ${NPM_VERSION} && git push origin ${NPM_VERSION}
4733
npm publish ${GITHUB_PROJ}/tarball/${NPM_VERSION}
4834

49-
rollup:
50-
rm -rf ./dist
51-
rollup -c --banner "/*! ${NPM_PACKAGE} ${NPM_VERSION} ${GITHUB_PROJ} @license MIT */"
52-
5335
todo:
5436
grep 'TODO' -n -r ./lib 2>/dev/null || test true
5537

package.json

+8-6
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"Una Ma <[email protected]> (https://github.com/maruilian11)",
4040
"Vitaly Puzrin <[email protected]> (http://gravatar.com/puzrin)"
4141
],
42-
"repository": "jonschlinkert/remarkable",
42+
"repository": "https://github.com/jonschlinkert/remarkable",
4343
"bugs": {
4444
"url": "https://github.com/jonschlinkert/remarkable/issues"
4545
},
@@ -61,13 +61,15 @@
6161
"node": ">= 6.0.0"
6262
},
6363
"scripts": {
64-
"build": "make rollup",
64+
"build": "rm -rf dist && yarn rollup -c",
6565
"lint": "eslint .",
66-
"test-browser": "yarn build && node -r esm ./test/test-browser.js && serve .",
67-
"test": "make test",
68-
"test-ci": " nyc mocha -r esm -R spec --bail",
66+
"test:browser": "yarn build && node -r esm ./test/test-browser.js && serve .",
67+
"test:spec": "./support/specsplit.js test/fixtures/commonmark/spec.txt",
68+
"test:mocha": "mocha -r esm -R spec",
69+
"test:ci": "nyc mocha -r esm -R spec --bail",
70+
"test": "yarn test:mocha && yarn test:spec",
6971
"coverage": "yarn add coveralls@2 && nyc report --reporter=text-lcov | coveralls",
70-
"prepublishOnly": "make rollup"
72+
"prepublishOnly": "yarn build"
7173
},
7274
"nyc": {
7375
"exclude": [

0 commit comments

Comments
 (0)