Skip to content

Commit 3544dc6

Browse files
authored
chore!: Normalize repository, dropping node <10.13 support (#239)
chore: Remove gulp-test-tool dependency chore: Replace ansi-colors and color-support with chalk chore: Remove array-sort dependency chore: Remove isobject dependency chore: Upgrade yargs dependency chore: Upgrade liftoff dependency chore!: Replace `--require` flag with `--preload` chore: Upgrade expect devDependency chore: Upgrade marked-man devDependency chore: Remove dependency on concat-stream chore: Remove archy dependency chore: Remove pretty-hrtime dependency chore: Remove matchdep
1 parent f0c6730 commit 3544dc6

File tree

119 files changed

+2425
-1968
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+2425
-1968
lines changed

.editorconfig

+4-9
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
1-
# EditorConfig is Awesome: http://editorconfig.org
2-
3-
# Top-most EditorConfig file.
1+
# https://editorconfig.org
42
root = true
53

6-
# Unix-style newlines with a newline ending every file.
74
[*]
8-
end_of_line = lf
9-
insert_final_newline = true
10-
charset = utf-8
115
indent_style = space
126
indent_size = 2
7+
charset = utf-8
138
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
end_of_line = lf
1411

15-
# Don't trim whitespace in Markdown in order to be able
16-
# to do two spaces for line breaks.
1712
[*.md]
1813
trim_trailing_whitespace = false

.eslintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "gulp",
33
"rules": {
4-
"max-len": [1, 90],
4+
"max-len": [1, 130],
55
"max-statements": [1, 40],
66
"no-console": "off"
77
}

.github/support.yml

-2
This file was deleted.

.github/workflows/dev.yml

+86
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
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, 18]
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 test without coverage because a behavior about esm is different with nyc or not
57+
run: npm test
58+
59+
coveralls:
60+
needs: test
61+
name: Finish up
62+
63+
runs-on: ubuntu-latest
64+
steps:
65+
- name: Clone repository
66+
uses: actions/checkout@v2
67+
68+
- name: Set Node.js version
69+
uses: actions/setup-node@v2
70+
with:
71+
# Coverage with LTS version
72+
node-version: 18
73+
74+
- run: node --version
75+
- run: npm --version
76+
77+
- name: Install npm dependencies
78+
run: npm install
79+
80+
- name: Run coverage
81+
run: npm run cover
82+
83+
- name: Coveralls
84+
uses: coverallsapp/[email protected]
85+
with:
86+
github-token: ${{ secrets.GITHUB_TOKEN }}

.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

.prettierignore

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

.travis.yml

-21
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, Eric Schoffstall and other contributors
3+
Copyright (c) 2015, 2017-2020, 2022-2023 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

+17-20
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<p align="center">
2-
<a href="http://gulpjs.com">
2+
<a href="https://gulpjs.com">
33
<img height="257" width="114" src="https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png">
44
</a>
55
</p>
66

77
# gulp-cli
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
Command Line Utility for Gulp
1212

@@ -91,15 +91,15 @@ Add `gulp --completion=fish | source` to `~/.config/fish/config.fish`.
9191

9292
## Compilers
9393

94-
You can find a list of supported languages at https://github.com/js-cli/js-interpret. If you would like to add support for a new language, send pull requests/open issues on that project.
94+
You can find a list of supported languages at https://github.com/gulpjs/interpret. If you would like to add support for a new language, send pull requests/open issues on that project.
9595

9696
## Environment
9797

98-
The CLI adds process.env.INIT_CWD which is the original cwd it was launched from.
98+
The CLI adds `process.env.INIT_CWD` which is the original cwd it was launched from.
9999

100100
## Configuration
101101

102-
Configuration is supported through the use of a `.gulp.*` file (e.g. `.gulp.json`, `.gulp.yml`). You can find a list of supported languages at https://github.com/js-cli/js-interpret.
102+
Configuration is supported through the use of a `.gulp.*` file (e.g. `.gulp.json`, `.gulp.yml`). You can find a list of supported languages at https://github.com/gulpjs/interpret.
103103

104104
Configuration from the home directory (`~`) and current working directory (`cwd`) are merged with `cwd` taking precedence.
105105

@@ -114,7 +114,7 @@ Supported configurations properties:
114114
| flags.gulpfile | Set a default gulpfile |
115115
| flags.silent | Silence logging by default |
116116
| flags.series | Run tasks given on the CLI in series (the default is parallel) |
117-
| flags.require | An array of modules to require before running the gulpfile. Any relative paths will be resolved against the `--cwd` directory (if you don't want that behavior, use absolute paths) |
117+
| flags.preload | An array of modules to preload before running the gulpfile. Any relative paths will be resolved against the `--cwd` directory (if you don't want that behavior, use absolute paths) |
118118
| flags.nodeFlags | An array of flags used to forcibly respawn the process upon startup. For example, if you always want your gulpfiles to run in node's harmony mode, you can set `--harmony` here |
119119

120120
## Flags
@@ -143,9 +143,9 @@ __Some flags only work with gulp 4 and will be ignored when invoked against gulp
143143
<td>Print the global and local gulp versions.</td>
144144
</tr>
145145
<tr>
146-
<td>--require [path]</td>
146+
<td>--preload [path]</td>
147147
<td></td>
148-
<td>Will require a module before running the gulpfile. This is useful for transpilers but also has other applications.</td>
148+
<td>Will preload a module before running the gulpfile. This is useful for transpilers but also has other applications.</td>
149149
</tr>
150150
<tr>
151151
<td>--gulpfile [path]</td>
@@ -155,7 +155,7 @@ __Some flags only work with gulp 4 and will be ignored when invoked against gulp
155155
<tr>
156156
<td>--cwd [path]</td>
157157
<td></td>
158-
<td>Manually set the CWD. The search for the gulpfile, as well as the relativity of all requires (including the `--require` flag) will be from here.</td>
158+
<td>Manually set the CWD. The search for the gulpfile, as well as the relativity of all preloads (with the `--preload` flag) will be from here.</td>
159159
</tr>
160160
<tr>
161161
<td>--verify [path (optional)]</td>
@@ -229,18 +229,15 @@ __Some flags only work with gulp 4 and will be ignored when invoked against gulp
229229

230230
MIT
231231

232-
[downloads-image]: http://img.shields.io/npm/dm/gulp-cli.svg
233-
[npm-url]: https://www.npmjs.com/package/gulp-cli
234-
[npm-image]: http://img.shields.io/npm/v/gulp-cli.svg
235232

236-
[travis-url]: https://travis-ci.org/gulpjs/gulp-cli
237-
[travis-image]: http://img.shields.io/travis/gulpjs/gulp-cli.svg?label=travis-ci
233+
<!-- prettier-ignore-start -->
234+
[downloads-image]: https://img.shields.io/npm/dm/gulp-cli.svg?style=flat-square
235+
[npm-url]: https://www.npmjs.com/package/gulp-cli
236+
[npm-image]: https://img.shields.io/npm/v/gulp-cli.svg?style=flat-square
238237

239-
[appveyor-url]: https://ci.appveyor.com/project/gulpjs/gulp-cli
240-
[appveyor-image]: https://img.shields.io/appveyor/ci/gulpjs/gulp-cli.svg?label=appveyor
238+
[ci-url]: https://github.com/gulpjs/gulp-cli/actions?query=workflow:dev
239+
[ci-image]: https://img.shields.io/github/actions/workflow/status/gulpjs/gulp-cli/dev.yml?branch=master&style=flat-square
241240

242241
[coveralls-url]: https://coveralls.io/r/gulpjs/gulp-cli
243-
[coveralls-image]: http://img.shields.io/coveralls/gulpjs/gulp-cli/master.svg
244-
245-
[gitter-url]: https://gitter.im/gulpjs/gulp
246-
[gitter-image]: https://badges.gitter.im/gulpjs/gulp.svg
242+
[coveralls-image]: https://img.shields.io/coveralls/gulpjs/gulp-cli.svg?style=flat-square
243+
<!-- prettier-ignore-end -->

appveyor.yml

-29
This file was deleted.

0 commit comments

Comments
 (0)