File tree 9 files changed +55
-15
lines changed
9 files changed +55
-15
lines changed Original file line number Diff line number Diff line change 1
1
author-name = Aldwin Vlasblom
2
2
repo-owner = fluture-js
3
3
repo-name = fluture-node
4
- module-type = esm
5
4
source-files = index.js
5
+ module-type = esm
6
6
opening-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 2
2
"root" : true ,
3
3
"extends" : [" ./node_modules/sanctuary-style/eslint-es6.json" ],
4
4
"parserOptions" : {"sourceType" : " module" },
5
- "env" : {"node" : true },
5
+ "env" : {"node" : true , "es6" : true },
6
6
"overrides" : [
7
7
{
8
8
"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 7
7
1 . Create a branch named ` <yourgithubusername>/<yourfeature> `
8
8
1 . Make one or more atomic commits
9
9
1 . Make sure the tests pass locally
10
- 1 . Create a pull- request on GitHub
10
+ 1 . Create a pull request on GitHub
11
11
12
12
## Publishing a new version
13
13
Original file line number Diff line number Diff line change 29
29
"url" : " git://github.com/fluture-js/fluture-node.git"
30
30
},
31
31
"files" : [
32
- " /index.js" ,
33
32
" /index.cjs" ,
33
+ " /index.js" ,
34
34
" /LICENSE" ,
35
35
" /package.json" ,
36
36
" /README.md"
42
42
"fluture" : " >=12.0.0 <13.0.0"
43
43
},
44
44
"devDependencies" : {
45
- "c8" : " ^6.0.1 " ,
45
+ "c8" : " ^7.1.0 " ,
46
46
"codecov" : " ^3.2.0" ,
47
47
"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 "
51
51
}
52
52
}
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
set -eufo pipefail
3
3
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
+
6
14
npm run build
7
15
8
16
sanctuary-prepublish " $@ "
Original file line number Diff line number Diff line change @@ -11,4 +11,4 @@ c8 --check-coverage \
11
11
--reporter lcov \
12
12
node --experimental-modules \
13
13
--no-warnings \
14
- -- ./node_modules/.bin/oletus
14
+ ./node_modules/.bin/oletus
You can’t perform that action at this time.
0 commit comments