File tree Expand file tree Collapse file tree 3 files changed +10
-26
lines changed
Expand file tree Collapse file tree 3 files changed +10
-26
lines changed Original file line number Diff line number Diff line change 66 - ' 10'
77 - ' 8'
88script :
9- - yarn test- ci
9+ - yarn test: ci
1010 - yarn lint
1111after_success : yarn coverage
Original file line number Diff line number Diff line change 11PATH := ./node_modules/.bin:${PATH}
2-
3- NPM_PACKAGE := $(shell node -e 'process.stdout.write(require("./package.json") .name)')
42NPM_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
156demo :
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-
2612gh-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-
5335todo :
5436 grep ' TODO' -n -r ./lib 2> /dev/null || test true
5537
Original file line number Diff line number Diff line change 3939 " Una Ma <maruilian11@cdnjs.com.tw> (https://github.com/maruilian11)" ,
4040 " Vitaly Puzrin <vitaly@rcdesign.ru> (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 },
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" : [
You can’t perform that action at this time.
0 commit comments