File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11author-name = Aldwin Vlasblom
22repo-owner = fluture-js
33repo-name = fluture-node
4- module-type = esm
54source-files = index.js
5+ module-type = esm
66opening-delimiter = ```js
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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" ],
Original file line number Diff line number Diff line change 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 }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 771 . Create a branch named ` <yourgithubusername>/<yourfeature> `
881 . Make one or more atomic commits
991 . 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
Original file line number Diff line number Diff line change 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"
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}
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22set -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+
614npm run build
715
816sanctuary-prepublish " $@ "
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments