Skip to content

Commit 46a30ac

Browse files
committed
Merge fluture-template for increased consistency
2 parents 280f613 + 027292e commit 46a30ac

File tree

9 files changed

+55
-15
lines changed

9 files changed

+55
-15
lines changed

.config

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
author-name = Aldwin Vlasblom
22
repo-owner = fluture-js
33
repo-name = fluture-node
4-
module-type = esm
54
source-files = index.js
5+
module-type = esm
66
opening-delimiter = ```js

.editorconfig

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true

.eslintrc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"root": true,
33
"extends": ["./node_modules/sanctuary-style/eslint-es6.json"],
44
"parserOptions": {"sourceType": "module"},
5-
"env": {"node": true},
5+
"env": {"node": true, "es6": true},
66
"overrides": [
77
{
88
"files": ["README.md"],

.github/workflows/test.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
test:
11+
name: Automated Tests
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout Code
15+
uses: actions/checkout@v1
16+
- name: Install NodeJS
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: 12.x
20+
- name: Install Dependencies
21+
run: npm install
22+
- name: Execute Tests
23+
run: npm test
24+
- name: Upload Coverage Report
25+
run: npm run codecov
26+
env:
27+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.travis.yml

-4
This file was deleted.

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
1. Create a branch named `<yourgithubusername>/<yourfeature>`
88
1. Make one or more atomic commits
99
1. Make sure the tests pass locally
10-
1. Create a pull-request on GitHub
10+
1. Create a pull request on GitHub
1111

1212
## Publishing a new version
1313

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
"url": "git://github.com/fluture-js/fluture-node.git"
3030
},
3131
"files": [
32-
"/index.js",
3332
"/index.cjs",
33+
"/index.js",
3434
"/LICENSE",
3535
"/package.json",
3636
"/README.md"
@@ -42,11 +42,11 @@
4242
"fluture": ">=12.0.0 <13.0.0"
4343
},
4444
"devDependencies": {
45-
"c8": "^6.0.1",
45+
"c8": "^7.1.0",
4646
"codecov": "^3.2.0",
4747
"fluture": "^12.2.0",
48-
"oletus": "^2.0.0",
49-
"rollup": "^1.27.0",
50-
"sanctuary-scripts": "^3.1.1"
48+
"oletus": "^3.0.0",
49+
"rollup": "^2.0.0",
50+
"sanctuary-scripts": "^4.0.0"
5151
}
5252
}

scripts/prepublish

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
#!/usr/bin/env bash
22
set -eufo pipefail
33

4-
npm outdated --long
5-
npm whoami
4+
echo "Publishing as $(npm whoami)."
5+
6+
if ! npm outdated --long; then
7+
read -rp "Continue? [y/N] " choice
8+
if [[ "${choice-n}" != 'y' ]]; then
9+
echo 'Package distribution aborted.'
10+
exit 2
11+
fi
12+
fi
13+
614
npm run build
715

816
sanctuary-prepublish "$@"

scripts/test

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ c8 --check-coverage \
1111
--reporter lcov \
1212
node --experimental-modules \
1313
--no-warnings \
14-
-- ./node_modules/.bin/oletus
14+
./node_modules/.bin/oletus

0 commit comments

Comments
 (0)