Skip to content

Commit

Permalink
chore!: Normalize repository, dropping node <10.13 support
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Aug 26, 2022
1 parent a221369 commit 88a6aa2
Show file tree
Hide file tree
Showing 10 changed files with 196 additions and 20 deletions.
75 changes: 75 additions & 0 deletions .github/workflows/dev.yml
@@ -0,0 +1,75 @@
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]
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: npm test

- name: Coveralls
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: ${{matrix.os}}-node-${{ matrix.node }}
parallel: true

coveralls:
needs: test
name: Finish up

runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
16 changes: 16 additions & 0 deletions .github/workflows/release.yml
@@ -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
50 changes: 43 additions & 7 deletions .gitignore
@@ -1,31 +1,67 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Compiled binary addons (http://nodejs.org/api/addons.html)
# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directory
# Commenting this out is preferred by some people, see
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
node_modules
# Dependency directories
node_modules/
jspm_packages/

# Users Environment Variables
.lock-wscript
# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# next.js build output
.next

# Garbage files
.DS_Store

# Test results
test.xunit
1 change: 1 addition & 0 deletions .npmrc
@@ -0,0 +1 @@
package-lock=false
3 changes: 3 additions & 0 deletions .prettierignore
@@ -0,0 +1,3 @@
coverage/
.nyc_output/
CHANGELOG.md
6 changes: 0 additions & 6 deletions .travis.yml

This file was deleted.

3 changes: 1 addition & 2 deletions LICENSE
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015 gulp
Copyright (c) 2015, 2017, 2022 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 All @@ -19,4 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

43 changes: 42 additions & 1 deletion README.md
@@ -1,2 +1,43 @@
<p align="center">
<a href="http://gulpjs.com">
<img height="257" width="114" src="https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png">
</a>
</p>

# has-gulplog
Check if gulplog is available before attempting to use it

[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coveralls Status][coveralls-image]][coveralls-url]

Check if gulplog is available before attempting to use it.

## Usage

```js
const hasGulplog = require('has-gulplog');

hasGulplog() // true if gulplog is available
```

## API

### `hasGulplog()`

Checks if gulplog is available.

Returns `true` if gulplog is installed and available or `false` if it is not available.

## License

MIT

<!-- prettier-ignore-start -->
[downloads-image]: https://img.shields.io/npm/dm/has-gulplog.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/has-gulplog
[npm-image]: https://img.shields.io/npm/v/has-gulplog.svg?style=flat-square

[ci-url]: https://github.com/gulpjs/has-gulplog/actions?query=workflow:dev
[ci-image]: https://img.shields.io/github/workflow/status/gulpjs/has-gulplog/dev?style=flat-square

[coveralls-url]: https://coveralls.io/r/gulpjs/has-gulplog
[coveralls-image]: https://img.shields.io/coveralls/gulpjs/has-gulplog/master.svg?style=flat-square
<!-- prettier-ignore-end -->
19 changes: 15 additions & 4 deletions package.json
Expand Up @@ -2,26 +2,37 @@
"name": "has-gulplog",
"version": "0.1.0",
"description": "Check if gulplog is available before attempting to use it",
"author": "Blaine Bublitz <blaine@iceddev.com> (http://iceddev.com)",
"author": "Gulp Team <team@gulpjs.com> (https://gulpjs.com/)",
"contributors": [],
"repository": "gulpjs/has-gulplog",
"license": "MIT",
"engines": {
"node": ">= 0.10"
"node": ">=10.13.0"
},
"main": "index.js",
"files": [
"index.js",
"LICENSE"
],
"scripts": {
"test": "eslint *.js"
"test": "nyc mocha --async-only"
},
"dependencies": {
"sparkles": "^1.0.0"
},
"devDependencies": {
"eslint": "^1.3.1"
"eslint": "^7.0.0",
"eslint-plugin-node": "^11.1.0",
"nyc": "^15.0.0"
},
"nyc": {
"reporter": [
"lcov",
"text-summary"
]
},
"prettier": {
"singleQuote": true
},
"keywords": [
"gulp-util",
Expand Down
Empty file added test/.gitkeep
Empty file.

0 comments on commit 88a6aa2

Please sign in to comment.