Skip to content

Commit b63ec4e

Browse files
committed
reaftor: build sustem
1 parent 00927c3 commit b63ec4e

File tree

15 files changed

+117
-39
lines changed

15 files changed

+117
-39
lines changed

.c8rc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"reporter": ["lcov", "text"]
3+
}

.clintonrc.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"ignores": [
3+
"test/**",
4+
"tmp/**",
5+
"lib/**",
6+
".idea/**",
7+
"*.{html,jpg}"
8+
],
9+
"rules": {
10+
"pkg-main": "off",
11+
"cli": "off",
12+
"xo": "off",
13+
"ava": "off",
14+
"use-travis": "off"
15+
}
16+
}

.editorconfig

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
# This file is for unifying the coding style for different editors and IDEs
2-
# More information at http://EditorConfig.org
3-
4-
# No .editorconfig files above the root directory
51
root = true
62

73
[*]
8-
charset = utf-8
9-
indent_size = 2
10-
end_of_line = lf
114
indent_style = space
5+
indent_size = 4
6+
end_of_line = lf
7+
charset = utf-8
8+
quote_type = single
129
trim_trailing_whitespace = true
1310
insert_final_newline = true
1411

15-
[{bower,package}.json]
12+
[{package.json,*.yml,*.jade,*.pss,*.css,*.js,*.md,.*,*.ts}]
1613
indent_size = 2
1714

15+
[{render.md,changelog.md,.*}]
16+
insert_final_newline = false
17+
1818
[*.md]
1919
trim_trailing_whitespace = false

.github/funding.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# These are supported funding model platforms
2+
3+
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: posthtml
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/workflows/nodejs.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Actions Status
2+
on:
3+
pull_request:
4+
types: [opened, synchronize]
5+
branches:
6+
- master
7+
env:
8+
CI: true
9+
10+
jobs:
11+
run:
12+
name: Node ${{ matrix.node }} on ${{ matrix.os }}
13+
runs-on: ${{ matrix.os }}
14+
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
node: [10, 12, 14]
19+
os: [ubuntu-latest, windows-latest]
20+
21+
steps:
22+
- name: Clone repository
23+
uses: actions/checkout@v2
24+
25+
- name: Set Node.js version
26+
uses: actions/setup-node@v1
27+
with:
28+
node-version: ${{ matrix.node }}
29+
30+
- name: Install npm dependencies
31+
run: npm ci
32+
33+
- name: Run tests
34+
run: npm run test
35+
36+
- name: Run Coveralls
37+
uses: coverallsapp/github-action@master
38+
with:
39+
github-token: "${{ secrets.GITHUB_TOKEN }}"

.huskyrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"hooks": {
3+
"pre-push": "npm t",
4+
"pre-commit": "clinton && lint-staged",
5+
"commit-msg": "commitlint --extends=@commitlint/config-angular -e"
6+
}
7+
}

.lintstagedrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"*.js": "xo"
3+
}

.travis.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.
File renamed without changes.

LICENSE renamed to license

File renamed without changes.

0 commit comments

Comments
 (0)