Skip to content

Commit b270c28

Browse files
sttkphated
andauthored
chore!: Normalize repository, dropping node <10.13 support (#97)
chore: Remove arr-flatten, arr-map, collection-map, es6-weak-map, object.defaults, and object.reduce dependencies Co-authored-by: Blaine Bublitz <[email protected]>
1 parent 5066e4a commit b270c28

26 files changed

+222
-286
lines changed

.ci/.azure-pipelines-steps.yml

-38
This file was deleted.

.ci/.azure-pipelines.yml

-90
This file was deleted.

.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# http://editorconfig.org
1+
# https://editorconfig.org
22
root = true
33

44
[*]

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
coverage/
12
test/fixtures/out
23
test/fixtures/tmp

.github/support.yml

-2
This file was deleted.

.github/workflows/dev.yml

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
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: npm test
57+
58+
- name: Coveralls
59+
uses: coverallsapp/[email protected]
60+
with:
61+
github-token: ${{ secrets.GITHUB_TOKEN }}
62+
flag-name: ${{matrix.os}}-node-${{ matrix.node }}
63+
parallel: true
64+
65+
coveralls:
66+
needs: test
67+
name: Finish up
68+
69+
runs-on: ubuntu-latest
70+
steps:
71+
- name: Coveralls Finished
72+
uses: coverallsapp/[email protected]
73+
with:
74+
github-token: ${{ secrets.GITHUB_TOKEN }}
75+
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ coverage
2020
# nyc test coverage
2121
.nyc_output
2222

23-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
23+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
2424
.grunt
2525

2626
# Bower dependency directory (https://bower.io/)

.prettierignore

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

.travis.yml

-12
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, Eric Schoffstall and other contributors
3+
Copyright (c) 2014, 2016-2020, 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

+15-18
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
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
# undertaker
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]
10+
11+
Task registry that allows composition through series/parallel methods.
1012

1113
## Usage
1214

@@ -292,33 +294,28 @@ taker.task('default', taker.series('clean', 'build', 'serve', function(cb) {
292294

293295
MIT
294296

295-
[downloads-image]: https://img.shields.io/npm/dm/undertaker.svg
297+
<!-- prettier-ignore-start -->
298+
[downloads-image]: https://img.shields.io/npm/dm/undertaker.svg?style=flat-square
296299
[npm-url]: https://www.npmjs.com/package/undertaker
297-
[npm-image]: https://img.shields.io/npm/v/undertaker.svg
298-
299-
[azure-pipelines-url]: https://dev.azure.com/gulpjs/gulp/_build/latest?definitionId=$PROJECT_ID&branchName=master
300-
[azure-pipelines-image]: https://dev.azure.com/gulpjs/gulp/_apis/build/status/undertaker?branchName=master
300+
[npm-image]: https://img.shields.io/npm/v/undertaker.svg?style=flat-square
301301

302-
[travis-url]: https://travis-ci.org/gulpjs/undertaker
303-
[travis-image]: https://img.shields.io/travis/gulpjs/undertaker.svg?label=travis-ci
304-
305-
[appveyor-url]: https://ci.appveyor.com/project/gulpjs/undertaker
306-
[appveyor-image]: https://img.shields.io/appveyor/ci/gulpjs/undertaker.svg?label=appveyor
302+
[ci-url]: https://github.com/gulpjs/undertaker/actions?query=workflow:dev
303+
[ci-image]: https://img.shields.io/github/workflow/status/gulpjs/undertaker/dev?style=flat-square
307304

308305
[coveralls-url]: https://coveralls.io/r/gulpjs/undertaker
309-
[coveralls-image]: https://img.shields.io/coveralls/gulpjs/undertaker/master.svg
310-
311-
[gitter-url]: https://gitter.im/gulpjs/gulp
312-
[gitter-image]: https://badges.gitter.im/gulpjs/gulp.svg
306+
[coveralls-image]: https://img.shields.io/coveralls/gulpjs/undertaker/master.svg?style=flat-square
307+
<!-- prettier-ignore-end -->
313308

314-
[custom-registries]: #custom-registries
309+
<!-- prettier-ignore-start -->
315310
[async-resolution]: https://github.com/phated/async-done#completion-and-error-resolution
316-
[archy]: https://www.npmjs.org/package/archy
317311
[undertaker-registry]: https://github.com/gulpjs/undertaker-registry
312+
[custom-registries]: #custom-registries
313+
[archy]: https://www.npmjs.org/package/archy
318314
[undertaker-forward-reference]: https://github.com/gulpjs/undertaker-forward-reference
319315
[undertaker-task-metadata]: https://github.com/gulpjs/undertaker-task-metadata
320316
[undertaker-common-tasks]: https://github.com/gulpjs/undertaker-common-tasks
321317
[alchemist-gulp]: https://github.com/webdesserts/alchemist-gulp
322318
[gulp-hub]: https://github.com/frankwallis/gulp-hub/tree/registry-init
323319
[gulp-pipeline]: https://github.com/alienfast/gulp-pipeline
324320
[rails-registry]: https://github.com/alienfast/gulp-pipeline/blob/master/src/registry/railsRegistry.js
321+
<!-- prettier-ignore-end -->

appveyor.yml

-32
This file was deleted.

lib/helpers/buildTree.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
'use strict';
22

3-
var map = require('collection-map');
4-
53
var metadata = require('./metadata');
64

75
function buildTree(tasks) {
8-
return map(tasks, function(task) {
6+
return Object.values(tasks).map(function(task) {
97
var meta = metadata.get(task);
108
if (meta) {
119
return meta.tree;

lib/helpers/metadata.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
'use strict';
22

3-
// WeakMap for storing metadata
4-
var WM = require('es6-weak-map');
5-
var metadata = new WM();
3+
var metadata = new WeakMap();
64

75
module.exports = metadata;

0 commit comments

Comments
 (0)