File tree Expand file tree Collapse file tree 3 files changed +11
-16
lines changed Expand file tree Collapse file tree 3 files changed +11
-16
lines changed Original file line number Diff line number Diff line change 11language : node_js
22
3- node_js : lts/*
4-
53cache :
64 - npm
75 - yarn
86
9- before_install : npm i -g yarn
10-
11- install : yarn install --non-interactive
7+ node_js :
8+ - " lts/* "
9+ - " node "
1210
13- script :
14- - yarn lint
15- - yarn test
11+ after_success :
1612 - yarn build
17- - if [ -n "$TRAVIS_TAG" ]; then npm version $TRAVIS_TAG; fi
13+ - if [ -n "$TRAVIS_TAG" ]; then yarn version $TRAVIS_TAG; fi
1814
1915deploy :
2016 - provider : npm
@@ -28,8 +24,8 @@ deploy:
2824 skip_cleanup : true
2925 github_commit : " chore: Published documentation [skip ci]"
3026 github_token : $github_token
31- name : " ROS Bot "
32- email : " richiebendall@gmail.com "
27+ committer_from_gh : true
28+ keep_history : true
3329 local_dir : docs
3430 on :
3531 tags : true
Original file line number Diff line number Diff line change 1818 "author" : " Richie Bendall <richiebendall@gmail.com>" ,
1919 "license" : " MIT" ,
2020 "scripts" : {
21- "dev" : " yarn js --watch" ,
22- "build" : " yarn js && yarn docs" ,
23- "js" : " tsc" ,
2421 "docs" : " typedoc" ,
22+ "build" : " tsc && yarn docs" ,
23+ "dev" : " yarn build --watch" ,
2524 "lint" : " xo" ,
26- "test" : " ava"
25+ "test" : " yarn lint && ava"
2726 },
2827 "dependencies" : {
2928 "cheerio" : " ^1.0.0-rc.3" ,
Original file line number Diff line number Diff line change 11import test from "ava"
22import { Headers } from "node-fetch"
3- import convertBody from "./src"
43import { encode } from "iconv-lite"
54import _ from "lodash"
5+ import convertBody from "./src"
66
77test ( "should support encoding decode, xml dtd detect" , ( t ) => {
88 const text = "<?xml version=\"1.0\" encoding=\"EUC-JP\"?><title>日本語</title>"
You can’t perform that action at this time.
0 commit comments