Skip to content

Commit 8fe9c64

Browse files
authored
chore!: Normalize repository, dropping node <10.13 support (#22)
chore: Run type tests in CI fix!: Allow to be constructed without new fix: Remove defaulting name since it is always set chore: Improve test coverage
1 parent 1d51476 commit 8fe9c64

15 files changed

+290
-149
lines changed

.github/workflows/dev.yml

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: dev
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- master
7+
- main
8+
env:
9+
CI: true
10+
11+
jobs:
12+
prettier:
13+
name: Format code
14+
runs-on: ubuntu-latest
15+
if: ${{ github.event_name == 'push' }}
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
21+
- name: Prettier
22+
uses: gulpjs/[email protected]
23+
with:
24+
commit_message: 'chore: Run prettier'
25+
prettier_options: '--write .'
26+
27+
test:
28+
name: Tests for Node ${{ matrix.node }} on ${{ matrix.os }}
29+
runs-on: ${{ matrix.os }}
30+
31+
strategy:
32+
fail-fast: false
33+
matrix:
34+
node: [10, 12, 14, 16]
35+
os: [ubuntu-latest, windows-latest, macos-latest]
36+
37+
steps:
38+
- name: Clone repository
39+
uses: actions/checkout@v2
40+
41+
- name: Set Node.js version
42+
uses: actions/setup-node@v2
43+
with:
44+
node-version: ${{ matrix.node }}
45+
46+
- run: node --version
47+
- run: npm --version
48+
49+
- name: Install npm dependencies
50+
run: npm install
51+
52+
- name: Run lint
53+
run: npm run lint
54+
55+
- name: Run tests
56+
run: |
57+
npm test
58+
npm run test-types
59+
60+
- name: Coveralls
61+
uses: coverallsapp/[email protected]
62+
with:
63+
github-token: ${{ secrets.GITHUB_TOKEN }}
64+
flag-name: ${{matrix.os}}-node-${{ matrix.node }}
65+
parallel: true
66+
67+
coveralls:
68+
needs: test
69+
name: Finish up
70+
71+
runs-on: ubuntu-latest
72+
steps:
73+
- name: Coveralls Finished
74+
uses: coverallsapp/[email protected]
75+
with:
76+
github-token: ${{ secrets.GITHUB_TOKEN }}
77+
parallel-finished: true

.github/workflows/release.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: release
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- main
7+
8+
jobs:
9+
release-please:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: GoogleCloudPlatform/release-please-action@v2
13+
with:
14+
token: ${{ secrets.GITHUB_TOKEN }}
15+
release-type: node
16+
package-name: release-please-action

.gitignore

+43-7
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,67 @@
11
# Logs
22
logs
33
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
47

58
# Runtime data
69
pids
710
*.pid
811
*.seed
12+
*.pid.lock
913

1014
# Directory for instrumented libs generated by jscoverage/JSCover
1115
lib-cov
1216

1317
# Coverage directory used by tools like istanbul
1418
coverage
1519

20+
# nyc test coverage
21+
.nyc_output
22+
1623
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
1724
.grunt
1825

19-
# Compiled binary addons (http://nodejs.org/api/addons.html)
26+
# Bower dependency directory (https://bower.io/)
27+
bower_components
28+
29+
# node-waf configuration
30+
.lock-wscript
31+
32+
# Compiled binary addons (https://nodejs.org/api/addons.html)
2033
build/Release
2134

22-
# Dependency directory
23-
# Commenting this out is preferred by some people, see
24-
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
25-
node_modules
35+
# Dependency directories
36+
node_modules/
37+
jspm_packages/
2638

27-
# Users Environment Variables
28-
.lock-wscript
39+
# TypeScript v1 declaration files
40+
typings/
41+
42+
# Optional npm cache directory
43+
.npm
44+
45+
# Optional eslint cache
46+
.eslintcache
47+
48+
# Optional REPL history
49+
.node_repl_history
50+
51+
# Output of 'npm pack'
52+
*.tgz
53+
54+
# Yarn Integrity file
55+
.yarn-integrity
56+
57+
# dotenv environment variables file
58+
.env
59+
60+
# next.js build output
61+
.next
2962

3063
# Garbage files
3164
.DS_Store
65+
66+
# Test results
67+
test.xunit

.jscsrc

-3
This file was deleted.

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=false

.prettierignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
coverage/
2+
.nyc_output/
3+
CHANGELOG.md

.travis.yml

-10
This file was deleted.

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2015 Blaine Bublitz <[email protected]>, Eric Schoffstall <[email protected]> and other contributors
3+
Copyright (c) 2015, 2017-2018, 2022 Blaine Bublitz <[email protected]> and Eric Schoffstall <[email protected]>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+8-12
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# plugin-error
88

9-
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url]
9+
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coveralls Status][coveralls-image]][coveralls-url]
1010

1111
Error handling for Vinyl plugins.
1212

@@ -52,18 +52,14 @@ Error constructor that takes:
5252

5353
MIT
5454

55-
[downloads-image]: http://img.shields.io/npm/dm/plugin-error.svg
55+
<!-- prettier-ignore-start -->
56+
[downloads-image]: https://img.shields.io/npm/dm/plugin-error.svg?style=flat-square
5657
[npm-url]: https://www.npmjs.com/package/plugin-error
57-
[npm-image]: http://img.shields.io/npm/v/plugin-error.svg
58+
[npm-image]: https://img.shields.io/npm/v/plugin-error.svg?style=flat-square
5859

59-
[travis-url]: https://travis-ci.org/gulpjs/plugin-error
60-
[travis-image]: http://img.shields.io/travis/gulpjs/plugin-error.svg?label=travis-ci
61-
62-
[appveyor-url]: https://ci.appveyor.com/project/gulpjs/plugin-error
63-
[appveyor-image]: https://img.shields.io/appveyor/ci/gulpjs/plugin-error.svg?label=appveyor
60+
[ci-url]: https://github.com/gulpjs/plugin-error/actions?query=workflow:dev
61+
[ci-image]: https://img.shields.io/github/workflow/status/gulpjs/plugin-error/dev?style=flat-square
6462

6563
[coveralls-url]: https://coveralls.io/r/gulpjs/plugin-error
66-
[coveralls-image]: http://img.shields.io/coveralls/gulpjs/plugin-error/master.svg
67-
68-
[gitter-url]: https://gitter.im/gulpjs/gulp
69-
[gitter-image]: https://badges.gitter.im/gulpjs/gulp.svg
64+
[coveralls-image]: https://img.shields.io/coveralls/gulpjs/plugin-error/master.svg?style=flat-square
65+
<!-- prettier-ignore-end -->

appveyor.yml

-25
This file was deleted.

0 commit comments

Comments
 (0)