Skip to content

Commit

Permalink
fix: add bree v9 support (closes #4)
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Jun 13, 2022
1 parent 2e7230e commit e1857fb
Show file tree
Hide file tree
Showing 21 changed files with 113 additions and 8,136 deletions.
3 changes: 3 additions & 0 deletions .commitlintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional']
};
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!.*.js
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* text=auto
* text=auto eol=lf
42 changes: 0 additions & 42 deletions .github/ISSUE_TEMPLATE/---bug-report.md

This file was deleted.

22 changes: 0 additions & 22 deletions .github/ISSUE_TEMPLATE/--feature-request.md

This file was deleted.

16 changes: 0 additions & 16 deletions .github/ISSUE_TEMPLATE/--question.md

This file was deleted.

35 changes: 12 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,29 @@
name: CI

on: [push, pull_request]

on:
- push
- pull_request
jobs:
test-coverage:
test:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
# TODO: re-enable windows
#- windows-latest
node_version:
- 12
- 14
- 16

- 18
name: Node ${{ matrix.node_version }} on ${{ matrix.os }}

steps:
- name: Checkout repo
uses: actions/checkout@v2

- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}

- name: Install yarn
run: npm install -g yarn

- name: Install dependencies
run: yarn --frozen-lockfile

run: npm install
- name: Run tests
run: yarn test-coverage

- name: Uninstall yarn
if: always()
run: npm uninstall -g yarn
run: npm run test-coverage
27 changes: 9 additions & 18 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,24 +1,15 @@
# OS #
###################
.DS_Store
*.log
.idea
Thumbs.db
tmp/
temp/


# Node.js #
###################
node_modules


# NYC #
###################
coverage
*.lcov
.nyc_output
locales/
package-lock.json
yarn.lock


# Files #
###################
*.log
Thumbs.db
tmp/
temp/
*.lcov
.env
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn commitlint --edit $1
npx --no-install commitlint --edit $1
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged
npx --no-install lint-staged && npm test
4 changes: 1 addition & 3 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
module.exports = {
"*.md,!test/**/*.md": [
filenames => filenames.map(filename => `remark ${filename} -qfo`)
],
'*.md': (filenames) => filenames.map((filename) => `remark ${filename} -qfo`),
'package.json': 'fixpack',
'*.js': 'xo --fix'
};
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
5 changes: 5 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
singleQuote: true,
bracketSpacing: true,
trailingComma: 'none'
};
3 changes: 3 additions & 0 deletions .remarkrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
plugins: ['preset-github']
};
20 changes: 20 additions & 0 deletions .xo-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
prettier: true,
space: true,
extends: ['xo-lass'],
overrides: [
{
files: ['*.ts', '*/**.ts'],
parserOptions: {
project: 'types/tsconfig.json'
},
rules: {
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-call': 'off'
}
}
],
parser: '@typescript-eslint/parser'
};
11 changes: 1 addition & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# @breejs/ts-worker

[![build status](https://github.com/breejs/ts-worker/actions/workflows/ci.yml/badge.svg)](https://github.com/breejs/ts-worker/actions/workflows/ci.yml)
[![code coverage](https://img.shields.io/codecov/c/github/breejs/ts-worker.svg)](https://codecov.io/gh/breejs/ts-worker)
[![code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
[![made with lass](https://img.shields.io/badge/made_with-lass-95CC28.svg)](https://lass.js.org)
Expand All @@ -27,16 +26,10 @@
npm install @breejs/ts-worker
```

[yarn][]:

```sh
yarn add @breejs/ts-worker
```


## Usage

> **Note:** You must be using Bree v6.5.0 or greater!
> **Note:** You must be using Bree v9.0.0 or greater!
Extend bree with the plugin:

Expand All @@ -62,5 +55,3 @@ const bree = new Bree(config);
##

[npm]: https://www.npmjs.com/

[yarn]: https://yarnpkg.com/
4 changes: 4 additions & 0 deletions ava.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
files: ['test/*.js', 'test/**/*.js', '!test/jobs'],
verbose: true
};
Loading

0 comments on commit e1857fb

Please sign in to comment.