File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 1
1
language : node_js
2
2
node_js :
3
3
- " stable"
4
+ script :
5
+ - npm run test
6
+ - npm run coveralls
7
+ notifications :
8
+ email :
9
+ false
Original file line number Diff line number Diff line change 1
1
# draft-js-code
2
2
3
3
[ ![ NPM version] ( https://badge.fury.io/js/draft-js-code.svg )] ( http://badge.fury.io/js/draft-js-code )
4
- [ ![ Build Status] ( https://travis-ci.org/ SamyPesse/draft-js-code.svg?branch=master )] ( https://travis-ci.org/ SamyPesse/draft-js-code )
4
+ [ ![ Coverage Status] ( https://coveralls.io/repos/github/ SamyPesse/draft-js-code/badge .svg?branch=master )] ( https://coveralls.io/github/ SamyPesse/draft-js-code?branch=master )
5
5
6
6
` draft-js-code ` is a collection of utilities to make code blocks edition easy in DraftJS. It works well with [ draft-js-prism] ( https://github.com/SamyPesse/draft-js-prism ) .
7
7
Original file line number Diff line number Diff line change 4
4
"description" : " Collection of utilities to make code blocks edition easy in DraftJS" ,
5
5
"main" : " ./lib/index.js" ,
6
6
"scripts" : {
7
- "test" : " jest" ,
7
+ "test" : " jest --coverage" ,
8
+ "coveralls" : " cat ./coverage/lcov.info | coveralls" ,
8
9
"build" : " browserify -t [ babelify --presets [ es2015 react ] ] ./demo/main.js > ./demo/dist.js; cp ./node_modules/prismjs/themes/prism.css ./demo/prism.css; cp ./node_modules/draft-js/dist/Draft.css ./demo/draft.css" ,
9
10
"deploy" : " npm run build; gh-pages -d ./demo" ,
10
11
"watch" : " watch 'npm run build' ./lib" ,
36
37
"babel-preset-react" : " ^6.5.0" ,
37
38
"babelify" : " ^7.2.0" ,
38
39
"browserify" : " ^13.0.0" ,
40
+ "coveralls" : " ^2.13.1" ,
39
41
"draft-js" : " 0.x" ,
40
42
"draft-js-prism" : " ^1.0.2" ,
41
43
"eslint" : " ^2.11.1" ,
42
44
"gh-pages" : " ^0.11.0" ,
43
45
"http-server" : " ^0.9.0" ,
44
46
"jest" : " ^21.1.0" ,
45
47
"parallelshell" : " 2.0.0" ,
48
+ "prismjs" : " ^1.8.1" ,
46
49
"react" : " ^15.1.0" ,
47
50
"react-dom" : " ^15.1.0" ,
48
- "prismjs" : " ^1.8.1" ,
49
51
"watch" : " ^0.18.0"
50
52
},
51
53
"peerDependencies" : {
You can’t perform that action at this time.
0 commit comments