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

Commit b413aae

Browse files
committedFeb 25, 2020
chore: basic project updates
- Update dependencies - Use GitHub Actions instead of travis/appveyor
1 parent 45f4db1 commit b413aae

File tree

8 files changed

+3570
-4084
lines changed

8 files changed

+3570
-4084
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,2 +1,3 @@
11
node_modules
22
.nyc_output
3+
coverage/

‎.travis.yml

-7
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/libnpmsearch.svg)](https://npm.im/libnpmsearch)
44
[![license](https://img.shields.io/npm/l/libnpmsearch.svg)](https://npm.im/libnpmsearch)
5-
[![Travis](https://img.shields.io/travis/npm/libnpmsearch.svg)](https://travis-ci.org/npm/libnpmsearch)
65
[![Coverage Status](https://coveralls.io/repos/github/npm/libnpmsearch/badge.svg?branch=latest)](https://coveralls.io/github/npm/libnpmsearch?branch=latest)
76

87
[`libnpmsearch`](https://github.com/npm/libnpmsearch) is a Node.js library for
@@ -45,23 +44,6 @@ console.log(await search('libnpm'))
4544

4645
`$ npm install libnpmsearch`
4746

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

6749
#### <a name="opts"></a> `opts` for `libnpmsearch` commands
@@ -85,7 +67,6 @@ for options that can be passed in.
8567
A couple of options of note for those in a hurry:
8668

8769
* `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.
88-
* `opts.Promise` - If you pass this in, the Promises returned by `libnpmsearch` commands will use this Promise class instead. For example: `{Promise: require('bluebird')}`
8970

9071
#### <a name="search"></a> `> search(query, [opts]) -> Promise`
9172

‎appveyor.yml

-22
This file was deleted.

0 commit comments

Comments
 (0)
This repository has been archived.