Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore!: Normalize repository, dropping node <10.13 support #239

Merged
merged 35 commits into from
Jan 7, 2024
Merged
Show file tree
Hide file tree
Changes from 30 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
3bd501d
chore: Normalize repository, dropping node <10.13 support
sttk Nov 13, 2022
c1b50cf
test: stop using gulp-test-tool
sttk Nov 17, 2022
4868529
update: replace ansi-colors and color-support to chalk
sttk Nov 20, 2022
da59456
update: remove array-sort from dependencies
sttk Nov 20, 2022
3a03cff
update: remove isobject from dependencies
sttk Nov 20, 2022
9db1f81
update: upgrade yargs to 16.2.0
sttk Nov 26, 2022
4b75988
update: upgrade liftoff to 4.0.0
sttk Nov 26, 2022
76d0581
doc: modify README.md
sttk Nov 26, 2022
40b487e
update: modify for coverage
sttk Sep 10, 2023
52e568a
fix: suppress error on CI
sttk Sep 10, 2023
6170167
test: upgrade expect to 27.5.1
sttk Nov 27, 2022
5e80a3f
chore: upgrade marked-man to 0.7.0
sttk Sep 10, 2023
8afc851
fix: modify Liftoff.configFiles and change normalize-config to merge-…
sttk Sep 10, 2023
f3fa77c
Update LICENSE
sttk Sep 10, 2023
fa088eb
Update README.md
sttk Sep 10, 2023
225beb0
chore: modify ci badge url in README.md
sttk Sep 10, 2023
002d0fa
Update LICENSE
sttk Oct 7, 2023
18d348b
Update package.json
sttk Oct 7, 2023
95f93c2
Update test/config-flags-preload.js
sttk Oct 7, 2023
f46d7cd
fix: remove dependency on concat-stream and change getting blacklist
sttk Oct 7, 2023
1f93514
fix: modify that project config overrides userHome config
sttk Oct 7, 2023
bb25f48
fix: modify mistakes of descriptions in test fixtures and expected
sttk Oct 7, 2023
4ce1c2a
fix: remove `if` conditions for mjs-stub in preload:before and preloa…
sttk Oct 7, 2023
7414f32
fix: change gulp execution by using helper function
sttk Oct 8, 2023
64e381b
fix: change expect.stringContaining to use toMatch in test/sync-taks.js
sttk Oct 8, 2023
7242a8e
fix: remove extra not.toMatch in test/flags-preload.js
sttk Oct 8, 2023
ccf2770
update: remove archy and remake logTasks
sttk Oct 15, 2023
1439453
update: remove pretty-hrtime
sttk Oct 29, 2023
0ac2821
update: remove matchdep and modify skip conditions of esm.js
sttk Nov 4, 2023
3319411
update: make env the sole object determining the behavior of gulp
sttk Nov 19, 2023
83c1603
Update lib/shared/log/tasks.js
sttk Dec 30, 2023
9b78b55
fix: modify sorting task flag entries
sttk Jan 6, 2024
ccb2652
update: remove cd in tool/gulp-cmd.js and use cwd option of exec instead
sttk Jan 6, 2024
ff6fad2
fix: modify test cases for flags.gulpfile config
sttk Jan 6, 2024
e66899b
update: remove micromatch
sttk Jan 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 4 additions & 9 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
# EditorConfig is Awesome: http://editorconfig.org

# Top-most EditorConfig file.
# https://editorconfig.org
root = true

# Unix-style newlines with a newline ending every file.
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = lf

# Don't trim whitespace in Markdown in order to be able
# to do two spaces for line breaks.
[*.md]
trim_trailing_whitespace = false
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "gulp",
"rules": {
"max-len": [1, 90],
"max-len": [1, 130],
"max-statements": [1, 40],
"no-console": "off"
}
Expand Down
2 changes: 0 additions & 2 deletions .github/support.yml

This file was deleted.

86 changes: 86 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
name: dev
on:
pull_request:
push:
branches:
- master
- main
env:
CI: true

jobs:
prettier:
name: Format code
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' }}

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Prettier
uses: gulpjs/prettier_action@v3.0
with:
commit_message: 'chore: Run prettier'
prettier_options: '--write .'

test:
name: Tests for Node ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
node: [10, 12, 14, 16, 18]
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- name: Clone repository
uses: actions/checkout@v2

- name: Set Node.js version
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}

- run: node --version
- run: npm --version

- name: Install npm dependencies
run: npm install

- name: Run lint
run: npm run lint

- name: Run tests
# Run test without coverage because a behavior about esm is different with nyc or not
run: npm test

coveralls:
needs: test
name: Finish up

runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v2

- name: Set Node.js version
uses: actions/setup-node@v2
with:
# Coverage with LTS version
node-version: 18

- run: node --version
- run: npm --version

- name: Install npm dependencies
run: npm install

- name: Run coverage
run: npm run cover

- name: Coveralls
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
16 changes: 16 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: release
on:
push:
branches:
- master
- main

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: GoogleCloudPlatform/release-please-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
package-name: release-please-action
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
coverage/
.nyc_output/
CHANGELOG.md
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015 Blaine Bublitz, Eric Schoffstall and other contributors
Copyright (c) 2015, 2017-2020, 2022-2023 Blaine Bublitz <blaine.bublitz@gmail.com> and Eric Schoffstall <yo@contra.io>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
37 changes: 17 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<p align="center">
<a href="http://gulpjs.com">
<a href="https://gulpjs.com">
<img height="257" width="114" src="https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png">
</a>
</p>

# gulp-cli

[![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]
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coveralls Status][coveralls-image]][coveralls-url]

Command Line Utility for Gulp

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

## Compilers

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.
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.

## Environment

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

## Configuration

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.
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.

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

Expand All @@ -114,7 +114,7 @@ Supported configurations properties:
| flags.gulpfile | Set a default gulpfile |
| flags.silent | Silence logging by default |
| flags.series | Run tasks given on the CLI in series (the default is parallel) |
| 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) |
| 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) |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to self: Include this rename in the conventional commits so it shows in changelog

| 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 |

## Flags
Expand Down Expand Up @@ -143,9 +143,9 @@ __Some flags only work with gulp 4 and will be ignored when invoked against gulp
<td>Print the global and local gulp versions.</td>
</tr>
<tr>
<td>--require [path]</td>
<td>--preload [path]</td>
<td></td>
<td>Will require a module before running the gulpfile. This is useful for transpilers but also has other applications.</td>
<td>Will preload a module before running the gulpfile. This is useful for transpilers but also has other applications.</td>
</tr>
<tr>
<td>--gulpfile [path]</td>
Expand All @@ -155,7 +155,7 @@ __Some flags only work with gulp 4 and will be ignored when invoked against gulp
<tr>
<td>--cwd [path]</td>
<td></td>
<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>
<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>
</tr>
<tr>
<td>--verify [path (optional)]</td>
Expand Down Expand Up @@ -229,18 +229,15 @@ __Some flags only work with gulp 4 and will be ignored when invoked against gulp

MIT

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

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

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

[coveralls-url]: https://coveralls.io/r/gulpjs/gulp-cli
[coveralls-image]: http://img.shields.io/coveralls/gulpjs/gulp-cli/master.svg

[gitter-url]: https://gitter.im/gulpjs/gulp
[gitter-image]: https://badges.gitter.im/gulpjs/gulp.svg
[coveralls-image]: https://img.shields.io/coveralls/gulpjs/gulp-cli.svg?style=flat-square
<!-- prettier-ignore-end -->
29 changes: 0 additions & 29 deletions appveyor.yml

This file was deleted.