File tree 3 files changed +10
-26
lines changed
3 files changed +10
-26
lines changed Original file line number Diff line number Diff line change 6
6
- ' 10'
7
7
- ' 8'
8
8
script :
9
- - yarn test- ci
9
+ - yarn test: ci
10
10
- yarn lint
11
11
after_success : yarn coverage
Original file line number Diff line number Diff line change 1
1
PATH := ./node_modules/.bin:${PATH}
2
-
3
- NPM_PACKAGE := $(shell node -e 'process.stdout.write(require("./package.json") .name)')
4
2
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)')
13
4
14
5
15
6
demo :
18
9
stylus -u autoprefixer-stylus demo/assets/index.styl
19
10
rm -rf demo/example.json
20
11
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
-
26
12
gh-pages :
27
13
if [ " git branch --list gh-pages" ]; then \
28
14
git branch -D gh-pages ; \
@@ -46,10 +32,6 @@ publish:
46
32
git tag ${NPM_VERSION} && git push origin ${NPM_VERSION}
47
33
npm publish ${GITHUB_PROJ} /tarball/${NPM_VERSION}
48
34
49
- rollup :
50
- rm -rf ./dist
51
- rollup -c --banner " /*! ${NPM_PACKAGE} ${NPM_VERSION} ${GITHUB_PROJ} @license MIT */"
52
-
53
35
todo :
54
36
grep ' TODO' -n -r ./lib 2> /dev/null || test true
55
37
Original file line number Diff line number Diff line change 39
39
" Una Ma <[email protected] > (https://github.com/maruilian11)" ,
40
40
" Vitaly Puzrin <[email protected] > (http://gravatar.com/puzrin)"
41
41
],
42
- "repository" : " jonschlinkert/remarkable" ,
42
+ "repository" : " https://github.com/ jonschlinkert/remarkable" ,
43
43
"bugs" : {
44
44
"url" : " https://github.com/jonschlinkert/remarkable/issues"
45
45
},
61
61
"node" : " >= 6.0.0"
62
62
},
63
63
"scripts" : {
64
- "build" : " make rollup" ,
64
+ "build" : " rm -rf dist && yarn rollup -c " ,
65
65
"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" ,
69
71
"coverage" : " yarn add coveralls@2 && nyc report --reporter=text-lcov | coveralls" ,
70
- "prepublishOnly" : " make rollup "
72
+ "prepublishOnly" : " yarn build "
71
73
},
72
74
"nyc" : {
73
75
"exclude" : [
You can’t perform that action at this time.
0 commit comments