Skip to content

Commit

Permalink
build: recaftor build/lint/coverage system
Browse files Browse the repository at this point in the history
  • Loading branch information
Scrum committed Nov 12, 2020
1 parent f82c05b commit 9173ab9
Show file tree
Hide file tree
Showing 13 changed files with 27,868 additions and 4,228 deletions.
3 changes: 3 additions & 0 deletions .c8rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"reporter": ["lcov", "text"]
}
15 changes: 15 additions & 0 deletions .clintonrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"ignores": [
"test/**",
"tmp/**",
"lib/**",
".idea/**",
"*.{html,jpg}"
],
"rules": {
"cli": "off",
"xo": "off",
"ava": "off",
"use-travis": "off"
}
}
17 changes: 7 additions & 10 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
# This file is for unifying the coding style for different editors and IDEs.
# More information at http://EditorConfig.org

# No .editorconfig files above the root directory
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 4
end_of_line = lf
indent_style = space
charset = utf-8
quote_type = single
trim_trailing_whitespace = true
insert_final_newline = true

[*.{bemjson.js,deps.js}]
indent_size = 4

[{bower,package}.json]
[{package.json,*.yml,*.jade,*.pss,*.css,*.js,*.md,.*,*.ts}]
indent_size = 2

[{changelog.md,.*}]
insert_final_newline = false

[*.md]
trim_trailing_whitespace = false
12 changes: 12 additions & 0 deletions .github/funding.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# These are supported funding model platforms

github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: posthtml
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
39 changes: 39 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Actions Status
on:
pull_request:
types: [opened, synchronize]
branches:
- master
env:
CI: true

jobs:
run:
name: Node ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
node: [10, 12, 14]
os: [ubuntu-latest]

steps:
- name: Clone repository
uses: actions/checkout@v2

- name: Set Node.js version
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- name: Install npm dependencies
run: npm ci

- name: Run tests
run: npm run test

- name: Run Coveralls
uses: coverallsapp/github-action@master
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
7 changes: 7 additions & 0 deletions .huskyrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hooks": {
"pre-push": "npm t",
"pre-commit": "clinton && lint-staged",
"commit-msg": "commitlint --extends=@commitlint/config-angular -e"
}
}
4 changes: 4 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"{src,test}/**/*.js": "eslint",
"*.md": "eslint"
}
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

File renamed without changes.
Loading

0 comments on commit 9173ab9

Please sign in to comment.