Skip to content

Commit 5de9bf2

Browse files
committed
Breaking: Upgrade scaffold, dropping node <10 support
1 parent 2c67ddd commit 5de9bf2

11 files changed

+115
-213
lines changed

.ci/.azure-pipelines-steps.yml

-43
This file was deleted.

.ci/.azure-pipelines.yml

-90
This file was deleted.

.eslintignore

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
test/fixtures/
12
coverage/
3+
.nyc_output/

.github/SECURITY.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
| Version | Supported |
66
| ------- | ------------------ |
7+
| 2.x.x | :white_check_mark: |
78
| 1.x.x | :white_check_mark: |
89
| < 1.0 | :x: |
910

.github/workflows/dev.yml

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

.prettierignore

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

.travis.yml

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

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

77
# replace-ext
88

9-
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Azure Pipelines Build Status][azure-pipelines-image]][azure-pipelines-url] [![Travis 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
Replaces a file extension with another one.
1212

@@ -29,34 +29,26 @@ Replaces the extension from `path` with `extension` and returns the updated path
2929

3030
Does not replace the extension if `path` is not a string or is empty.
3131

32+
## `replace-ext` for enterprise
3233

33-
## replace-ext for enterprise
34-
35-
Available as part of the Tidelift Subscription
36-
37-
The maintainers of replace-ext and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-replace-ext?utm_source=npm-replace-ext&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
34+
Available as part of the Tidelift Subscription.
3835

36+
The maintainers of `replace-ext` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.][tidelift-url]
3937

4038
## License
4139

4240
MIT
4341

44-
[downloads-image]: http://img.shields.io/npm/dm/replace-ext.svg
42+
<!-- prettier-ignore-start -->
43+
[downloads-image]: https://img.shields.io/npm/dm/replace-ext.svg?style=flat-square
4544
[npm-url]: https://www.npmjs.com/package/replace-ext
46-
[npm-image]: http://img.shields.io/npm/v/replace-ext.svg
47-
48-
[azure-pipelines-url]: https://dev.azure.com/gulpjs/replace-ext/_build/latest?branchName=master
49-
[azure-pipelines-image]: https://dev.azure.com/gulpjs/replace-ext/_apis/build/status/replace-ext?branchName=master
45+
[npm-image]: https://img.shields.io/npm/v/replace-ext.svg?style=flat-square
5046

51-
[travis-url]: https://travis-ci.org/gulpjs/replace-ext
52-
[travis-image]: http://img.shields.io/travis/gulpjs/replace-ext.svg?label=travis-ci
53-
54-
[appveyor-url]: https://ci.appveyor.com/project/gulpjs/replace-ext
55-
[appveyor-image]: https://img.shields.io/appveyor/ci/gulpjs/replace-ext.svg?label=appveyor
47+
[ci-url]: https://github.com/gulpjs/replace-ext/actions?query=workflow:dev
48+
[ci-image]: https://img.shields.io/github/workflow/status/gulpjs/replace-ext/dev?style=flat-square
5649

5750
[coveralls-url]: https://coveralls.io/r/gulpjs/replace-ext
58-
[coveralls-image]: http://img.shields.io/coveralls/gulpjs/replace-ext/master.svg
59-
60-
[gitter-url]: https://gitter.im/gulpjs/gulp
61-
[gitter-image]: https://badges.gitter.im/gulpjs/gulp.svg
51+
[coveralls-image]: https://img.shields.io/coveralls/gulpjs/replace-ext/master.svg?style=flat-square
6252

53+
[tidelift-url]: https://tidelift.com/subscription/pkg/npm-replace-ext?utm_source=npm-replace-ext&utm_medium=referral&utm_campaign=enterprise&utm_term=repo
54+
<!-- prettier-ignore-end -->

appveyor.yml

-31
This file was deleted.

package.json

+17-13
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "replace-ext",
33
"version": "1.0.1",
4-
"description": "Replaces a file extension with another one",
4+
"description": "Replaces a file extension with another one.",
55
"author": "Gulp Team <team@gulpjs.com> (http://gulpjs.com/)",
66
"contributors": [
77
"Eric Schoffstall <yo@contra.io>",
@@ -10,7 +10,7 @@
1010
"repository": "gulpjs/replace-ext",
1111
"license": "MIT",
1212
"engines": {
13-
"node": ">= 0.10"
13+
"node": ">= 10"
1414
},
1515
"main": "index.js",
1616
"files": [
@@ -20,19 +20,23 @@
2020
"scripts": {
2121
"lint": "eslint .",
2222
"pretest": "npm run lint",
23-
"test": "nyc mocha --async-only",
24-
"cover": "nyc --reporter=lcov --reporter=text-summary npm test",
25-
"azure-pipelines": "nyc mocha --async-only --reporter xunit -O output=test.xunit",
26-
"coveralls": "nyc report --reporter=text-lcov | coveralls"
23+
"test": "nyc mocha --async-only"
2724
},
28-
"dependencies": {},
2925
"devDependencies": {
30-
"coveralls": "github:phated/node-coveralls#2.x",
31-
"eslint": "^2.13.1",
32-
"eslint-config-gulp": "^3.0.1",
33-
"expect": "^1.20.2",
34-
"mocha": "^3.0.0",
35-
"nyc": "^10.3.2"
26+
"eslint": "^6.8.0",
27+
"eslint-config-gulp": "^4.0.0",
28+
"expect": "^25.4.0",
29+
"mocha": "^7.1.2",
30+
"nyc": "^15.0.1"
31+
},
32+
"nyc": {
33+
"reporter": [
34+
"lcov",
35+
"text-summary"
36+
]
37+
},
38+
"prettier": {
39+
"singleQuote": true
3640
},
3741
"keywords": [
3842
"gulp",

0 commit comments

Comments
 (0)