Skip to content

Commit e5fc06a

Browse files
committed
chore: Modernise the development environment
* Replace Travis with Github Actions * Replace Coveralls with Codecov * Replace Istanbul with C8 * Replace tap with tehanu and teru * Replace eslint with denolint * Replace badges from david-dm.org with img.shields.io * Replace NPM package lock with PNPM
1 parent a022667 commit e5fc06a

File tree

20 files changed

+1303
-4887
lines changed

20 files changed

+1303
-4887
lines changed

.denolint.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"rules": {
3+
"tags": ["recommended"]
4+
}
5+
}

.eslintrc

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Test or Release
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
test-or-release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout Sources
12+
uses: actions/checkout@v2
13+
- name: Install Node
14+
uses: actions/setup-node@v2
15+
with:
16+
node-version: 'lts/*'
17+
registry-url: 'https://registry.npmjs.org'
18+
- name: Install PNPM
19+
uses: pnpm/action-setup@v2
20+
with:
21+
version: '>=6'
22+
run_install: |
23+
- args: [--frozen-lockfile, --no-verify-store-integrity]
24+
- name: Test
25+
run: npm test
26+
- name: Coverage
27+
uses: codecov/codecov-action@v2
28+
- name: Publish
29+
uses: cycjimmy/semantic-release-action@v2
30+
with:
31+
semantic_version: 18
32+
branches: master
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.npmignore

Lines changed: 0 additions & 12 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.vscode/launch.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
// Pro informace o možných atributech použijte technologii IntelliSense.
3+
// Umístěním ukazatele myši zobrazíte popisy existujících atributů.
4+
// Další informace najdete tady: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "test",
9+
"type": "pwa-node",
10+
"request": "launch",
11+
"program": "${workspaceFolder}/test/test.js",
12+
"skipFiles": [
13+
"<node_internals>/**"
14+
]
15+
}
16+
]
17+
}

.vscode/settings.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
// Place your settings in this file to overwrite default and user settings.
22
{
33
"files.exclude": {
4-
".nyc_output": true,
4+
".DS-Store": true,
55
"coverage": true,
6-
"node_modules": true,
7-
"npm-debug.log": true
6+
"node_modules": true
87
}
98
}

CHANGELOG.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
## 3.1.0 (2018-05-14)
2+
3+
Allow cutting the same initial part of the path from tested HTML files for displaying purposes
4+
5+
## 3.0.0 (2018-04-27)
6+
7+
Dropped support of Node.js 4
8+
9+
## 2.2.0 (2018-03-05)
10+
11+
Allow generating page titles from file names without directory
12+
13+
## 2.1.0 (2018-03-04)
14+
15+
Add filtering and accessibility to the reports
16+
17+
## 2.0.0 (2018-03-01)
18+
19+
Change the HTML format to look like Koa11y reports
20+
21+
## 1.0.0 (2018-03-01)
22+
23+
Release a stable version using a simple HTML format
24+
25+
## 0.2.4 (2018-02-28)
26+
27+
Add \<meta charset="utf-8"\> to the HTML page
28+
29+
## 0.2.2 (2018-01-27)
30+
31+
Do not report unknown message types as notices
32+
33+
## 0.2.1 (2017-11-25)
34+
35+
Support Node.js < 7
36+
37+
## 0.2.0 (2017-11-24)
38+
39+
Fix recognition of warnings, say "notices" instead of "notes"
40+
41+
## 0.0.1 (2017-11-24)
42+
43+
Initial release

README.md

Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
11
# grunt-html-html-reporter
22

3-
[![NPM version](https://badge.fury.io/js/grunt-html-html-reporter.png)](http://badge.fury.io/js/grunt-html-html-reporter)
4-
[![Build Status](https://travis-ci.org/prantlf/grunt-html-html-reporter.svg?branch=master)](https://travis-ci.org/prantlf/grunt-html-html-reporter)
5-
[![Dependency Status](https://david-dm.org/prantlf/grunt-html-html-reporter.svg)](https://david-dm.org/prantlf/grunt-html-html-reporter)
6-
[![devDependency Status](https://david-dm.org/prantlf/grunt-html-html-reporter/dev-status.svg)](https://david-dm.org/prantlf/grunt-html-html-reporter#info=devDependencies)
7-
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
8-
9-
[![NPM Downloads](https://nodei.co/npm/grunt-html-html-reporter.png?downloads=true&stars=true)](https://www.npmjs.com/package/grunt-html-html-reporter)
3+
[![Latest version](https://img.shields.io/npm/v/grunt-html-html-reporter)
4+
![Dependency status](https://img.shields.io/librariesio/release/npm/grunt-html-html-reporter)
5+
](https://www.npmjs.com/package/grunt-html-html-reporter)
6+
[![Coverage](https://codecov.io/gh/prantlf/grunt-html-html-reporter/branch/master/graph/badge.svg)](https://codecov.io/gh/prantlf/grunt-html-html-reporter)
107

118
A custom reporter for [grunt-html] - the HTML validation task - which formats the validation results to HTML. There is a [Grunt] task available for converting already written report files, which uses this reporter - [grunt-html-html-report-converter].
129

1310
## Installation
1411

1512
You can use the reporter programmatically. In that case you do not need [Grunt] as stated below. You can also use the reporter directly with the [grunt-html] task. The reporter is usually installed and used together with other development tasks.
1613

17-
You need [node >= 6][node], [npm] and [grunt >= 0.4][Grunt] installed and your project build managed by a [Gruntfile] with the necessary modules listed in [package.json], including [grunt-html]. If you haven't used Grunt before, be sure to check out the [Getting Started] guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
14+
You need [node >= 6][node] and [grunt >= 0.4][Grunt] installed and your project build managed by a [Gruntfile] with the necessary modules listed in [package.json], including [grunt-html]. If you haven't used Grunt before, be sure to check out the [Getting Started] guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with your favourite package manager:
1815

1916
```sh
20-
$ npm install grunt-html-html-reporter --save-dev
17+
npm i -D grunt-html-html-reporter
18+
pnpm i -D grunt-html-html-reporter
19+
yarn add -D grunt-html-html-reporter
2120
```
2221

2322
## Programmatic Usage
@@ -69,29 +68,13 @@ htmllint: {
6968

7069
In lieu of a formal styleguide, take care to maintain the existing coding style.
7170

72-
## Release History
73-
74-
* 2018-05-14 v3.1.0 Allow cutting the same initial part of the path from tested HTML files for displaying purposes
75-
* 2018-04-27 v3.0.0 Dropped support of Node.js 4
76-
* 2018-03-05 v2.2.0 Allow generating page titles from file names without directory
77-
* 2018-03-04 v2.1.0 Add filtering and accessibility to the reports
78-
* 2018-03-01 v2.0.0 Change the HTML format to look like Koa11y reports
79-
* 2018-03-01 v1.0.0 Release a stable version using a simple HTML format
80-
* 2018-02-28 v0.2.4 Add \<meta charset="utf-8"\> to the HTML page
81-
* 2018-01-27 v0.2.2 Do not report unknown messqge types as notices
82-
* 2017-11-25 v0.2.1 Support Node.js < 7
83-
* 2017-11-24 v0.2.0 Fix recognition of warnings,
84-
say "notices" instead of "notes"
85-
* 2017-11-24 v0.0.1 Initial release
86-
8771
## License
8872

8973
Copyright (c) 2017-2022 Ferdinand Prantl
9074

9175
Licensed under the MIT license.
9276

9377
[node]: http://nodejs.org
94-
[npm]: http://npmjs.org
9578
[package.json]: https://docs.npmjs.com/files/package.json
9679
[Grunt]: https://gruntjs.com
9780
[Gruntfile]: http://gruntjs.com/sample-gruntfile

0 commit comments

Comments
 (0)