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

Commit def53c9

Browse files
author
Ruben Schmidmeister
authored
Merge pull request #8 from bash/tooling
Tooling
2 parents a9b7150 + b53e9ad commit def53c9

File tree

10 files changed

+63
-32
lines changed

10 files changed

+63
-32
lines changed

.github/workflows/test.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Test
2+
3+
on: ["push", "pull_request"]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@master
11+
12+
- name: Use Node.js 10.x
13+
uses: actions/setup-node@v1
14+
with:
15+
version: 10.x
16+
- run: npm install -g yarn
17+
18+
- name: Install Dependencies
19+
run: yarn install
20+
- name: Test
21+
run: yarn test
22+
- name: Check Code Style
23+
run: yarn lint
24+
25+
- name: Report Coverage
26+
uses: coverallsapp/github-action@master
27+
with:
28+
github-token: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
/npm-debug.log
22
/node_modules/
33
/yarn.lock
4+
/.nyc_output/
5+
/coverage/

.npmignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
.travis.yml
1+
/node_modules/
2+
/.nyc_output/
3+
/coverage/
4+
/yarn.lock
5+
/.github/
6+
/.editorconfig

.travis.yml

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

.travis/deploy.sh

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

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
environment:
2-
nodejs_version: "7"
2+
nodejs_version: "10"
33

44
init:
55
- git config --global core.autocrlf true

changelog.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## 0.1.0
2+
Initial release
3+
4+
## 1.0.0
5+
No changes
6+
7+
## 1.0.1
8+
- Updated development dependencies
9+
10+
## Unreleased
11+
- Added typescript type definitions
12+
-

index.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
declare module '@rschmidmeister/random.js' {
2+
// chosen by fair dice roll. guaranteed to be random.
3+
function random(): number;
4+
export = random;
5+
}

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
"version": "1.0.1",
44
"description": "A deterministic random number generator for node",
55
"main": "index.js",
6+
"types": "index.d.ts",
67
"scripts": {
7-
"test": "standard index.js && mocha"
8+
"test": "nyc --reporter=lcov mocha",
9+
"lint": "standard index.js"
810
},
911
"repository": {
1012
"type": "git",
@@ -20,8 +22,9 @@
2022
},
2123
"homepage": "https://github.com/bash/random.js#readme",
2224
"devDependencies": {
25+
"coveralls": "^3.0.9",
2326
"mocha": "^6.2.2",
24-
"standard": "^14.3.1",
25-
"istanbul": "^0.4.5"
27+
"nyc": "^15.0.0",
28+
"standard": "^14.3.1"
2629
}
2730
}

readme.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
# 🎲 random.js
22

3-
[![Build Status](https://travis-ci.org/bash/random.js.svg?branch=master)](https://travis-ci.org/bash/random.js)
3+
[![Build Status](https://github.com/bash/random.js/workflows/Test/badge.svg)](https://github.com/bash/node-uname/actions)
44
[![Build status](https://ci.appveyor.com/api/projects/status/luxy1c20asdk08at?svg=true)](https://ci.appveyor.com/project/rschmidmeister/random-js)
5-
[![codecov](https://codecov.io/gh/bash/random.js/branch/master/graph/badge.svg)](https://codecov.io/gh/bash/random.js)
5+
[![Coverage Status](https://coveralls.io/repos/github/bash/random.js/badge.svg?branch=tooling)](https://coveralls.io/github/bash/random.js?branch=tooling)
66
[![Code Climate](https://codeclimate.com/github/bash/random.js/badges/gpa.svg)](https://codeclimate.com/github/bash/random.js)
77
[![Standard - JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](http://standardjs.com/)
88
[![NPM](https://img.shields.io/npm/v/@rschmidmeister/random.js.svg)](https://www.npmjs.com/package/@rschmidmeister/random.js)
99
[![dependencies Status](https://david-dm.org/bash/random.js/status.svg)](https://david-dm.org/bash/random.js)
1010
[![devDependencies Status](https://david-dm.org/bash/random.js/dev-status.svg)](https://david-dm.org/bash/random.js?type=dev)
11-
[![Bitcoin](https://img.shields.io/badge/bitcoin-donate-yellow.svg)](https://www.coinbase.com/rschmidmeister)
12-
![gluten-free](https://img.shields.io/badge/gluten-free-green.svg)
11+
![gluten free](https://img.shields.io/badge/gluten-free-green.svg)
1312

1413

1514
A [deterministic random number](https://www.xkcd.com/221/) generator for node.

0 commit comments

Comments
 (0)