Skip to content

Commit 55cf3bd

Browse files
committed
Update
1 parent 25e4939 commit 55cf3bd

14 files changed

+5795
-3808
lines changed

.travis.yml

+23-21
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,35 @@
1+
---
12
branches:
23
only:
3-
- master
4-
- develop
5-
- "/^greenkeeper/.*$/"
6-
- "/^feature/.*$/"
4+
- master
5+
- develop
6+
- /^greenkeeper/.*$/
7+
- /^feature/.*$/
78
language: node_js
89
node_js:
9-
- stable
10-
- 11
11-
- 10
12-
- 9
13-
- 8
10+
- stable
11+
- 12
12+
- 11
13+
- 10
1414
env:
1515
global:
16-
- CC_TEST_REPORTER_ID=ba42fc27c58fe141f19793fa5acb42d4d229da491a4c7a1568ba50a69a009e1f
16+
- CC_TEST_REPORTER_ID=ba42fc27c58fe141f19793fa5acb42d4d229da491a4c7a1568ba50a69a009e1f
1717
before_install:
18-
- "[[ $(node -v) =~ ^v12.*$ ]] || npm install -g npm@latest"
19-
- npm install -g greenkeeper-lockfile
20-
install: npm install
18+
- npm i -g npm
19+
- npm install -g greenkeeper-lockfile
20+
install: npm ci --no-optional
2121
before_script:
22-
- greenkeeper-lockfile-update
23-
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
24-
> ./cc-test-reporter
25-
- chmod +x ./cc-test-reporter
26-
- "./cc-test-reporter before-build"
22+
- greenkeeper-lockfile-update
23+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
24+
- chmod +x ./cc-test-reporter
25+
- ./cc-test-reporter before-build
2726
after_script:
28-
- greenkeeper-lockfile-upload
29-
- "[ $TRAVIS_NODE_VERSION = stable ] && nyc report --reporter=lcov && ./cc-test-reporter
30-
after-build --debug -t lcov --exit-code $TRAVIS_TEST_RESULT || echo 'Coverage skipped'"
27+
- greenkeeper-lockfile-upload
28+
- "[ $TRAVIS_NODE_VERSION = stable ] && nyc report --reporter=lcov && ./cc-test-reporter
29+
after-build --debug -t lcov --exit-code $TRAVIS_TEST_RESULT || echo 'Coverage skipped'"
3130
notifications:
3231
slack:
3332
secure: b30+M8/fYAvUaYwnjMRVgpf63V84HkaMHO6j/RSE8vCyPLF0kxJYlc1lsemGfR1czvEUxNz+IIvDhbdLdkeF7Fpdq2gLBa4MTEpBuzKGtwqC9Tup3u0hg1haNd0oGmMSextH4e2wvdaFXK+rIYebAYhNoP5qeW6OqtyqNVblL7I=
33+
cache:
34+
directories:
35+
- "$HOME/.npm"

bin/truwrap

+30-22
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const bugs = {
4343
url: "https://github.com/thebespokepixel/truwrap/issues"
4444
};
4545
const copyright = {
46-
year: "2019",
46+
year: "2020",
4747
owner: "The Bespoke Pixel"
4848
};
4949
const scripts = {
@@ -56,45 +56,46 @@ const scripts = {
5656
coverage: "nyc ava && nyc report --reporter=lcov --report-dir test/coverage; open test/coverage/lcov-report/index.html"
5757
};
5858
const devDependencies = {
59-
"@babel/core": "^7.5.5",
60-
"@babel/preset-env": "^7.5.5",
61-
ava: "^2.2.0",
59+
"@ava/babel": "^1.0.1",
60+
"@babel/core": "^7.8.4",
61+
"@babel/preset-env": "^7.8.4",
62+
ava: "^3.3.0",
6263
"babel-plugin-lodash": "^3.3.4",
63-
"documentation-theme-bespoke": "^1.0.0",
64+
"documentation-theme-bespoke": "^1.1.2",
6465
gulp: "^4.0.2",
6566
"gulp-better-rollup": "^4.0.1",
6667
"gulp-chmod": "^3.0.0",
67-
"gulp-rename": "^1.4.0",
68-
nyc: "^14.1.1",
69-
rollup: "^1.19.4",
68+
"gulp-rename": "^2.0.0",
69+
nyc: "^15.0.0",
70+
rollup: "^1.31.1",
7071
"rollup-plugin-babel": "^4.3.3",
71-
"rollup-plugin-commonjs": "^10.0.2",
72+
"rollup-plugin-commonjs": "^10.1.0",
7273
"rollup-plugin-json": "^4.0.0",
7374
"rollup-plugin-node-resolve": "^5.2.0",
74-
"semver-regex": "^3.1.0",
75-
xo: "^0.24.0"
75+
"semver-regex": "^3.1.1",
76+
xo: "^0.26.1"
7677
};
7778
const dependencies = {
78-
"@thebespokepixel/meta": "^1.0.4",
79-
"@thebespokepixel/n-selector": "^1.0.4",
80-
"@thebespokepixel/string": "^0.5.8",
81-
"ansi-regex": "^4.1.0",
79+
"@thebespokepixel/meta": "^2.0.1",
80+
"@thebespokepixel/n-selector": "^2.0.0",
81+
"@thebespokepixel/string": "^1.0.0",
82+
"ansi-regex": "^5.0.0",
8283
columnify: "^1.5.4",
8384
"common-tags": "^1.8.0",
8485
"deep-assign": "^3.0.0",
85-
"es6-promisify": "^6.0.1",
86+
"es6-promisify": "^6.0.2",
8687
"get-stdin": "^7.0.0",
8788
lodash: "^4.17.15",
8889
"os-locale": "^4.0.0",
89-
"read-pkg-up": "^6.0.0",
90-
"term-ng": "^1.0.4",
90+
"read-pkg-up": "^7.0.1",
91+
"term-ng": "^2.0.0",
9192
trucolor: "^1.0.6",
92-
"update-notifier": "^3.0.1",
93-
verbosity: "^1.1.2",
94-
yargs: "^13.3.0"
93+
"update-notifier": "^4.1.0",
94+
verbosity: "^2.0.0",
95+
yargs: "^15.1.0"
9596
};
9697
const engines = {
97-
node: ">=8.0"
98+
node: ">=10.0"
9899
};
99100
const homepage = "https://github.com/thebespokepixel/truwrap";
100101
const keywords = [
@@ -124,6 +125,12 @@ const xo = {
124125
"test/coverage/**"
125126
]
126127
};
128+
const ava = {
129+
babel: true,
130+
files: [
131+
"test/*.js"
132+
]
133+
};
127134
const badges = {
128135
github: "thebespokepixel",
129136
npm: "thebespokepixel",
@@ -203,6 +210,7 @@ var pkg = {
203210
license: license,
204211
repository: repository,
205212
xo: xo,
213+
ava: ava,
206214
badges: badges
207215
};
208216

0 commit comments

Comments
 (0)