Skip to content

Commit d109d83

Browse files
committed
build: update build system
1 parent 927ebd2 commit d109d83

21 files changed

Lines changed: 35198 additions & 3623 deletions

.babelrc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"presets": [
3+
[
4+
"@babel/preset-env",
5+
{
6+
"targets": {
7+
"node": 10
8+
}
9+
}
10+
],
11+
[
12+
"minify",
13+
{
14+
"removeUndefined": false,
15+
"mangle": false
16+
}
17+
]
18+
]
19+
}

.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: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 4
6+
end_of_line = lf
7+
charset = utf-8
8+
quote_type = single
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[{package.json,*.yml,*.jade,*.pss,*.css,*.js,*.md,.*,*.ts}]
13+
indent_size = 2
14+
15+
[{changelog.md,.*}]
16+
insert_final_newline = false
17+
18+
[*.md]
19+
trim_trailing_whitespace = false

.eslintrc

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

.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 }}"

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,5 @@ node_modules
3838

3939

4040
# Custom
41-
/lib/*.js
41+
lib
42+
.vscode

.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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"{src,test}/**/*.js": "eslint",
3+
"*.md": "eslint"
4+
}

0 commit comments

Comments
 (0)