Skip to content
This repository was archived by the owner on Jan 19, 2022. It is now read-only.

Commit ea795fb

Browse files
committedFeb 26, 2020
chore: basic project updates
- Update dependencies - Use GitHub Actions instead of travis/appveyor
1 parent aa629b4 commit ea795fb

File tree

9 files changed

+4001
-4315
lines changed

9 files changed

+4001
-4315
lines changed
 

‎.github/settings.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
_extends: 'open-source-project-boilerplate'

‎.github/workflows/ci.yml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
################################################################################
3+
# Template - Node CI
4+
#
5+
# Description:
6+
# This contains the basic information to: install dependencies, run tests,
7+
# get coverage, and run linting on a nodejs project. This template will run
8+
# over the MxN matrix of all operating systems, and all current LTS versions
9+
# of NodeJS.
10+
#
11+
# Dependencies:
12+
# This template assumes that your project is using the `tap` module for
13+
# testing. If you're not using this module, then the step that runs your
14+
# coverage will need to be adjusted.
15+
#
16+
################################################################################
17+
name: Node CI
18+
19+
on: [push, pull_request]
20+
21+
jobs:
22+
build:
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
node-version: [10.x, 12.x, 13.x]
27+
os: [ubuntu-latest, windows-latest, macOS-latest]
28+
29+
runs-on: ${{ matrix.os }}
30+
31+
steps:
32+
# Checkout the repository
33+
- uses: actions/checkout@v2
34+
# Installs the specific version of Node.js
35+
- name: Use Node.js ${{ matrix.node-version }}
36+
uses: actions/setup-node@v1
37+
with:
38+
node-version: ${{ matrix.node-version }}
39+
40+
################################################################################
41+
# Install Dependencies
42+
#
43+
# ASSUMPTIONS:
44+
# - The project has a package-lock.json file
45+
#
46+
# Simply run the tests for the project.
47+
################################################################################
48+
- name: Install dependencies
49+
run: npm ci
50+
51+
################################################################################
52+
# Run Testing
53+
#
54+
# ASSUMPTIONS:
55+
# - The project has `tap` as a devDependency
56+
# - There is a script called "test" in the package.json
57+
#
58+
# Simply run the tests for the project.
59+
################################################################################
60+
- name: Run tests
61+
run: npm test

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/node_modules
22
/.nyc_output
33
/test/cache
4+
coverage/

‎.travis.yml

-6
This file was deleted.

‎README.md

-19
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
[![npm version](https://img.shields.io/npm/v/libnpmhook.svg)](https://npm.im/libnpmhook)
44
[![license](https://img.shields.io/npm/l/libnpmhook.svg)](https://npm.im/libnpmhook)
5-
[![Travis](https://img.shields.io/travis/npm/libnpmhook.svg)](https://travis-ci.org/npm/libnpmhook)
65
[![Coverage Status](https://coveralls.io/repos/github/npm/libnpmhook/badge.svg?branch=latest)](https://coveralls.io/github/npm/libnpmhook?branch=latest)
76

87
[`libnpmhook`](https://github.com/npm/libnpmhook) is a Node.js library for
@@ -37,23 +36,6 @@ console.log(await hooks.ls('mypkg', {token: 'deadbeef'}))
3736

3837
`$ npm install libnpmhook`
3938

40-
### Contributing
41-
42-
The npm team enthusiastically welcomes contributions and project participation!
43-
There's a bunch of things you can do if you want to contribute! The
44-
[Contributor Guide](https://github.com/npm/cli/blob/latest/CONTRIBUTING.md)
45-
outlines the process for community interaction and contribution. Please don't
46-
hesitate to jump in if you'd like to, or even ask us questions if something
47-
isn't clear.
48-
49-
All participants and maintainers in this project are expected to follow the
50-
[npm Code of Conduct](https://www.npmjs.com/policies/conduct), and just
51-
generally be excellent to each other.
52-
53-
Please refer to the [Changelog](CHANGELOG.md) for project history details, too.
54-
55-
Happy hacking!
56-
5739
### API
5840

5941
#### <a name="opts"></a> `opts` for `libnpmhook` commands
@@ -68,7 +50,6 @@ A couple of options of note for those in a hurry:
6850

6951
* `opts.token` - can be passed in and will be used as the authentication token for the registry. For other ways to pass in auth details, see the n-r-f docs.
7052
* `opts.otp` - certain operations will require an OTP token to be passed in. If a `libnpmhook` command fails with `err.code === EOTP`, please retry the request with `{otp: <2fa token>}`
71-
* `opts.Promise` - If you pass this in, the Promises returned by `libnpmhook` commands will use this Promise class instead. For example: `{Promise: require('bluebird')}`
7253

7354
#### <a name="add"></a> `> hooks.add(name, endpoint, secret, [opts]) -> Promise`
7455

‎appveyor.yml

-21
This file was deleted.

‎package-lock.json

+3,928-4,260
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+9-8
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
"postrelease": "npm publish && git push --follow-tags",
1313
"pretest": "standard",
1414
"release": "standard-version -s",
15-
"test": "tap -J --100 --coverage test/*.js",
16-
"update-coc": "weallbehave -o . && git add CODE_OF_CONDUCT.md && git commit -m 'docs(coc): updated CODE_OF_CONDUCT.md'",
17-
"update-contrib": "weallcontribute -o . && git add CONTRIBUTING.md && git commit -m 'docs(contributing): updated CONTRIBUTING.md'"
15+
"test": "tap"
16+
},
17+
"tap": {
18+
"check-coverage": true
1819
},
1920
"repository": "https://github.com/npm/libnpmhook",
2021
"keywords": [
@@ -27,15 +28,15 @@
2728
"license": "ISC",
2829
"dependencies": {
2930
"aproba": "^2.0.0",
30-
"get-stream": "^4.0.0",
31-
"npm-registry-fetch": "^3.8.0"
31+
"npm-registry-fetch": "^8.0.0"
3232
},
3333
"devDependencies": {
3434
"nock": "^9.6.1",
3535
"standard": "^11.0.1",
3636
"standard-version": "^4.4.0",
37-
"tap": "^12.0.1",
38-
"weallbehave": "^1.2.0",
39-
"weallcontribute": "^1.0.8"
37+
"tap": "^14.10.6"
38+
},
39+
"engines": {
40+
"node": ">=10"
4041
}
4142
}

‎test/index.js

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

3-
// const figgyPudding = require('figgy-pudding')
43
const test = require('tap').test
54
const tnock = require('./fixtures/tnock.js')
65

0 commit comments

Comments
 (0)
This repository has been archived.