8000 Breaking: Update scaffold, dropping node <10 support · gulpjs/lead@74e611a · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 74e611a

Browse files
committed
Breaking: Update scaffold, dropping node <10 support
1 parent e82a4a3 commit 74e611a

File tree

11 files changed

+152
-76
lines changed

11 files changed

+152
-76
lines changed

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
test/fixtures/
2+
coverage/
3+
.nyc_output/

.github/workflows/dev.yml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: dev
2+
on: [push, pull_request]
3+
env:
4+
CI: true
5+
6+
jobs:
7+
prettier:
8+
name: Formatter
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
with:
15+
# Make sure the actual branch is checked out when running on pull requests
16+
ref: ${{ github.head_ref }}
17+
18+
- name: Prettier
19+
uses: gulpjs/prettier_action@v2.2
20+
with:
21+
# Push back to the same branch that was checked out
22+
branch: ${{ github.head_ref }}
23+
# This part is also where you can pass other options, for example:
24+
commit_message: 'Build: Run prettier'
25+
prettier_options: '--write .'
26+
27+
test:
28+
needs: prettier
29+
name: Tests for Node ${{ matrix.node }} on ${{ matrix.os }}
30+
runs-on: ${{ matrix.os }}
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
node: [10, 12, 14]
36+
os: [ubuntu-latest, windows-latest, macos-latest]
37+
38+
steps:
39+
- name: Clone repository
40+
uses: actions/checkout@v2
41+
42+
- name: Set Node.js version
43+
uses: actions/setup-node@v1
44+
with:
45+
node-version: ${{ matrix.node }}
46+
47+
- run: node --version
48+
- run: npm --version
49+
50+
- name: Install npm dependencies
51+
run: npm install
52+
53+
- name: Run lint
54+
run: npm run lint
55+
56+
- name: Run tests
57+
run: npm test
58+
59+
- name: Coveralls
60+
uses: coverallsapp/github-action@v1.1.0
61+
with:
62+
github-token: ${{ secrets.GITHUB_TOKEN }}
63+
flag-name: ${{matrix.os}}-node-${{ matrix.node }}
64+
parallel: true
65+
66+
coveralls:
67+
needs: test
68+
name: Finish up
69+
70+
runs-on: ubuntu-latest
71+
steps:
72+
- name: Coveralls Finished
73+
uses: coverallsapp/github-action@v1.1.0
74+
with:
75+
github-token: ${{ secrets.github_token }}
76+
parallel-finished: true

.gitignore

Lines changed: 42 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +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
3265

33-
# Generated by integration tests
34-
test/fixtures/tmp
35-
test/fixtures/out
66+
# Test results
67+
test.xunit

.jscsrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=false

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
coverage/
2+
.nyc_output/

.travis.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2017 Blaine Bublitz <blaine.bublitz@gmail.com>, Eric Schoffstall <yo@contra.io> and other contributors
3+
Copyright (c) 2017, 2020 Blaine Bublitz <blaine.bublitz@gmail.com>, Eric Schoffstall <yo@contra.io> and other contributors
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

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# lead
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
Sink your streams.
1212

@@ -38,18 +38,14 @@ Takes a `stream` to sink and returns the same stream. Sets up event listeners to
3838

3939
MIT
4040

41-
[downloads-image]: http://img.shields.io/npm/dm/lead.svg
42-
[npm-url]: https://npmjs.com/package/lead
43-
[npm-image]: http://img.shields.io/npm/v/lead.svg
41+
<!-- prettier-ignore-start -->
42+
[downloads-image]: https://img.shields.io/npm/dm/lead.svg?style=flat-square
43+
[npm-url]: https://www.npmjs.com/package/lead
44+
[npm-image]: https://img.shields.io/npm/v/lead.svg?style=flat-square
4445

45-
[travis-url]: https://travis-ci.org/gulpjs/lead
46-
[travis-image]: http://img.shields.io/travis/gulpjs/lead.svg?label=travis-ci
47-
48-
[appveyor-url]: https://ci.appveyor.com/project/gulpjs/lead
49-
[appveyor-image]: https://img.shields.io/appveyor/ci/gulpjs/lead.svg?label=appveyor
46+
[ci-url]: https://github.com/gulpjs/lead/actions?query=workflow:dev
47+
[ci-image]: https://img.shields.io/github/workflow/status/gulpjs/lead/dev?style=flat-square
5048

5149
[coveralls-url]: https://coveralls.io/r/gulpjs/lead
52-
[coveralls-image]: http://img.shields.io/coveralls/gulpjs/lead/master.svg
53-
54-
[gitter-url]: https://gitter.im/gulpjs/gulp
55-
[gitter-image]: https://badges.gitter.im/gulpjs/gulp.png
50+
[coveralls-image]: https://img.shields.io/coveralls/gulpjs/lead/master.svg?style=flat-square
51+
<!-- prettier-ignore-end -->

appveyor.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

package.json

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,44 @@
22
"name": "lead",
33
"version": "1.0.0",
44
"description": "Sink your streams.",
5-
"author": "Gulp Team <team@gulpjs.com> (http://gulpjs.com/)",
5+
"author": "Gulp Team <team@gulpjs.com> (https://gulpjs.com/)",
66
"contributors": [
77
"Blaine Bublitz <blaine.bublitz@gmail.com>"
88
],
99
"repository": "gulpjs/lead",
1010
"license": "MIT",
1111
"engines": {
12-
"node": ">= 0.10"
12+
"node": ">= 10"
1313
},
1414
"main": "index.js",
1515
"files": [
1616
"LICENSE",
1717
"index.js"
1818
],
1919
"scripts": {
20-
"lint": "eslint index.js test/ && jscs index.js test/",
20+
"lint": "eslint .",
2121
"pretest": "npm run lint",
22-
"test": "mocha --async-only",
23-
"cover": "istanbul cover _mocha --report lcovonly",
24-
"coveralls": "npm run cover && istanbul-coveralls"
22+
"test": "nyc mocha --async-only"
2523
},
2624
"dependencies": {
2725
"flush-write-stream": "^1.0.2"
2826
},
2927
"devDependencies": {
30-
"eslint": "^1.10.3",
31-
"eslint-config-gulp": "^2.0.0",
32-
"expect": "^1.20.2",
33-
"istanbul": "^0.4.3",
34-
"istanbul-coveralls": "^1.0.3",
35-
"jscs": "^2.4.0",
36-
"jscs-preset-gulp": "^1.0.0",
28+
"eslint": "^6.8.0",
29+
"eslint-config-gulp": "^4.0.0",
30+
"expect": "^25.4.0",
3731
"mississippi": "^1.3.0",
38-
"mocha": "^3.2.0"
32+
"mocha": "^7.1.2",
33+
"nyc": "^15.0.1"
34+
},
35+
"nyc": {
36+
"reporter": [
37+
"lcov",
38+
"text-summary"
39+
]
40+
},
41+
"prettier": {
42+
"singleQuote": true
3943
},
4044
"keywords": [
4145
"streams",

0 commit comments

Comments
 (0)
0