Skip to content

Commit c166cf6

Browse files
committed
Migrate to github actions, upgrade min es version and remove bower
1 parent 457ab67 commit c166cf6

File tree

16 files changed

+156
-155
lines changed

16 files changed

+156
-155
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
22

3-
var commons = require('js-project-commons');
3+
const commons = require('js-project-commons');
44

55
module.exports = commons.lint.eslint.web;

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Fixed a bug or just want to provided additional functionality?<br>
1212
Simply fork this repository, implement your changes and create a pull request.<br>
1313
Few guidelines regarding pull requests:
1414

15-
* This repository is integrated with travis.ci for continuous integration.<br>
15+
* This repository is integrated with github actions for continuous integration.<br>
1616

1717
Your pull request build must pass (the build will run automatically).<br>
1818
You can run the following command locally to ensure the build will pass:

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
on: [push, pull_request]
3+
env:
4+
CLICOLOR_FORCE: 1
5+
jobs:
6+
ci:
7+
name: CI
8+
runs-on: ubuntu-latest
9+
strategy:
10+
fail-fast: false
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
- name: Install
15+
uses: ianwalter/puppeteer@v2.0.0
16+
with:
17+
args: npm install
18+
- name: Run CI
19+
uses: ianwalter/puppeteer@v2.0.0
20+
with:
21+
args: npm test
22+
- name: Coveralls
23+
uses: coverallsapp/github-action@master
24+
with:
25+
github-token: ${{ secrets.GITHUB_TOKEN }}
26+
path-to-lcov: './target/coverage/report/lcov.info'

.travis.yml

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

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# simple-web-notification
22

3-
[![NPM Version](http://img.shields.io/npm/v/simple-web-notification.svg?style=flat)](https://www.npmjs.org/package/simple-web-notification) [![Build Status](https://travis-ci.org/sagiegurari/simple-web-notification.svg)](http://travis-ci.org/sagiegurari/simple-web-notification) [![Coverage Status](https://coveralls.io/repos/sagiegurari/simple-web-notification/badge.svg)](https://coveralls.io/r/sagiegurari/simple-web-notification) [![Known Vulnerabilities](https://snyk.io/test/github/sagiegurari/simple-web-notification/badge.svg)](https://snyk.io/test/github/sagiegurari/simple-web-notification) [![Inline docs](http://inch-ci.org/github/sagiegurari/simple-web-notification.svg?branch=master)](http://inch-ci.org/github/sagiegurari/simple-web-notification) [![License](https://img.shields.io/npm/l/simple-web-notification.svg?style=flat)](https://github.com/sagiegurari/simple-web-notification/blob/master/LICENSE)
3+
[![NPM Version](http://img.shields.io/npm/v/simple-web-notification.svg?style=flat)](https://www.npmjs.org/package/simple-web-notification) [![CI](https://github.com/sagiegurari/simple-web-notification/workflows/CI/badge.svg?branch=master)](https://github.com/sagiegurari/simple-web-notification/actions) [![Coverage Status](https://coveralls.io/repos/sagiegurari/simple-web-notification/badge.svg)](https://coveralls.io/r/sagiegurari/simple-web-notification) [![Known Vulnerabilities](https://snyk.io/test/github/sagiegurari/simple-web-notification/badge.svg)](https://snyk.io/test/github/sagiegurari/simple-web-notification) [![Inline docs](http://inch-ci.org/github/sagiegurari/simple-web-notification.svg?branch=master)](http://inch-ci.org/github/sagiegurari/simple-web-notification) [![License](https://img.shields.io/npm/l/simple-web-notification.svg?style=flat)](https://github.com/sagiegurari/simple-web-notification/blob/master/LICENSE)
44

55
> Web Notifications made easy
66
@@ -142,6 +142,7 @@ See [contributing guide](.github/CONTRIBUTING.md)
142142

143143
| Date | Version | Description |
144144
| ----------- | ------- | ----------- |
145+
| 2020-05-11 | v2.0.0 | Migrate to github actions, upgrade minimal node version and remove bower |
145146
| 2019-02-08 | v1.0.32 | Maintenance |
146147
| 2018-06-25 | v1.0.28 | Expose webNotification.requestPermission #5 |
147148
| 2018-06-14 | v1.0.26 | Better error detection on chrome mobile #4 |

bower.json

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

docs/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
| Date | Version | Description |
22
| ----------- | ------- | ----------- |
3+
| 2020-05-11 | v2.0.0 | Migrate to github actions, upgrade minimal node version and remove bower |
34
| 2019-02-08 | v1.0.32 | Maintenance |
45
| 2018-06-25 | v1.0.28 | Expose webNotification.requestPermission #5 |
56
| 2018-06-14 | v1.0.26 | Better error detection on chrome mobile #4 |

docs/example/example.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
/*global console: false */
22

33
document.addEventListener('DOMContentLoaded', function onLoad() {
4-
var serviceWorkerRegistration;
4+
let serviceWorkerRegistration;
55

66
if (navigator.serviceWorker) {
77
navigator.serviceWorker.register('service-worker.js').then(function (registration) {
88
serviceWorkerRegistration = registration;
99
});
1010
}
1111

12-
var titleElement = document.getElementById('title');
13-
var messageElement = document.getElementById('message');
14-
var buttonElement = document.querySelector('.btn');
12+
const titleElement = document.getElementById('title');
13+
const messageElement = document.getElementById('message');
14+
const buttonElement = document.querySelector('.btn');
1515

1616
titleElement.value = 'Example Notification';
1717
messageElement.value = 'This is some notification text.';

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "simple-web-notification",
3-
"version": "1.0.32",
3+
"version": "2.0.0",
44
"description": "Web Notifications made easy.",
55
"author": {
66
"name": "Sagie Gur-Ari",

project/config/README-template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# {"gitdown": "gitinfo", "name": "name"}
22

3-
[![NPM Version](http://img.shields.io/npm/v/{"gitdown": "gitinfo", "name": "name"}.svg?style=flat)](https://www.npmjs.org/package/{"gitdown": "gitinfo", "name": "name"}) [![Build Status](https://travis-ci.org/{"gitdown": "gitinfo", "name": "username"}/{"gitdown": "gitinfo", "name": "name"}.svg)](http://travis-ci.org/{"gitdown": "gitinfo", "name": "username"}/{"gitdown": "gitinfo", "name": "name"}) [![Coverage Status](https://coveralls.io/repos/{"gitdown": "gitinfo", "name": "username"}/{"gitdown": "gitinfo", "name": "name"}/badge.svg)](https://coveralls.io/r/{"gitdown": "gitinfo", "name": "username"}/{"gitdown": "gitinfo", "name": "name"}) [![Known Vulnerabilities](https://snyk.io/test/github/{"gitdown": "gitinfo", "name": "username"}/{"gitdown": "gitinfo", "name": "name"}/badge.svg)](https://snyk.io/test/github/{"gitdown": "gitinfo", "name": "username"}/{"gitdown": "gitinfo", "name": "name"}) [![Inline docs](http://inch-ci.org/github/{"gitdown": "gitinfo", "name": "username"}/{"gitdown": "gitinfo", "name": "name"}.svg?branch=master)](http://inch-ci.org/github/{"gitdown": "gitinfo", "name": "username"}/{"gitdown": "gitinfo", "name": "name"}) [![License](https://img.shields.io/npm/l/{"gitdown": "gitinfo", "name": "name"}.svg?style=flat)](https://github.com/{"gitdown": "gitinfo", "name": "username"}/{"gitdown": "gitinfo", "name": "name"}/blob/master/LICENSE)
3+
[![NPM Version](http://img.shields.io/npm/v/{"gitdown": "gitinfo", "name": "name"}.svg?style=flat)](https://www.npmjs.org/package/{"gitdown": "gitinfo", "name": "name"}) [![CI](https://github.com/{"gitdown": "gitinfo", "name": "username"}/{"gitdown": "gitinfo", "name": "name"}/workflows/CI/badge.svg?branch=master)](https://github.com/{"gitdown": "gitinfo", "name": "username"}/{"gitdown": "gitinfo", "name": "name"}/actions) [![Coverage Status](https://coveralls.io/repos/{"gitdown": "gitinfo", "name": "username"}/{"gitdown": "gitinfo", "name": "name"}/badge.svg)](https://coveralls.io/r/{"gitdown": "gitinfo", "name": "username"}/{"gitdown": "gitinfo", "name": "name"}) [![Known Vulnerabilities](https://snyk.io/test/github/{"gitdown": "gitinfo", "name": "username"}/{"gitdown": "gitinfo", "name": "name"}/badge.svg)](https://snyk.io/test/github/{"gitdown": "gitinfo", "name": "username"}/{"gitdown": "gitinfo", "name": "name"}) [![Inline docs](http://inch-ci.org/github/{"gitdown": "gitinfo", "name": "username"}/{"gitdown": "gitinfo", "name": "name"}.svg?branch=master)](http://inch-ci.org/github/{"gitdown": "gitinfo", "name": "username"}/{"gitdown": "gitinfo", "name": "name"}) [![License](https://img.shields.io/npm/l/{"gitdown": "gitinfo", "name": "name"}.svg?style=flat)](https://github.com/{"gitdown": "gitinfo", "name": "username"}/{"gitdown": "gitinfo", "name": "name"}/blob/master/LICENSE)
44

55
> Web Notifications made easy
66

0 commit comments

Comments
 (0)