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

Commit b25d703

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

File tree

9 files changed

+5022
-5134
lines changed

9 files changed

+5022
-5134
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

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
node_modules
2-
.nyc_output
1+
/node_modules
2+
/.nyc_output
3+
/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/libnpmorg.svg)](https://npm.im/libnpmorg)
44
[![license](https://img.shields.io/npm/l/libnpmorg.svg)](https://npm.im/libnpmorg)
5-
[![Travis](https://img.shields.io/travis/npm/libnpmorg.svg)](https://travis-ci.org/npm/libnpmorg)
65
[![Coverage Status](https://coveralls.io/repos/github/npm/libnpmorg/badge.svg?branch=latest)](https://coveralls.io/github/npm/libnpmorg?branch=latest)
76

87
[`libnpmorg`](https://github.com/npm/libnpmorg) is a Node.js library for
@@ -39,23 +38,6 @@ Roster {
3938

4039
`$ npm install libnpmorg`
4140

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

6143
#### <a name="opts"></a> `opts` for `libnpmorg` commands
@@ -70,7 +52,6 @@ A couple of options of note for those in a hurry:
7052

7153
* `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.
7254
* `opts.otp` - certain operations will require an OTP token to be passed in. If a `libnpmorg` command fails with `err.code === EOTP`, please retry the request with `{otp: <2fa token>}`
73-
* `opts.Promise` - If you pass this in, the Promises returned by `libnpmorg` commands will use this Promise class instead. For example: `{Promise: require('bluebird')}`
7455

7556
#### <a name="set"></a> `> org.set(org, user, [role], [opts]) -> Promise`
7657

‎appveyor.yml

-22
This file was deleted.

0 commit comments

Comments
 (0)
This repository has been archived.