Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dove #6

Merged
merged 7 commits into from
Mar 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,11 @@
"mocha": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.eslint.json"
},
"plugins": [
"security",
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:security/recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
Expand All @@ -31,7 +26,6 @@
}, {
"enforceForRenamedProperties": false
}],
"security/detect-object-injection": "off",
"object-curly-spacing": ["warn", "always"],
"prefer-const": ["warn"],
"@typescript-eslint/require-await": ["error"],
Expand Down
26 changes: 0 additions & 26 deletions .github/stale.yml

This file was deleted.

19 changes: 16 additions & 3 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
node-version: [16.x, 18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand All @@ -21,7 +21,20 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm test
- run: npm run test

build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js 18.x
uses: actions/setup-node@v1
with:
node-version: 18.x
- run: npm ci
- run: npm run build

coverage:
needs: [ test ]
name: coverage
Expand All @@ -30,7 +43,7 @@ jobs:
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: '12'
node-version: '18'
- run: npm ci
- uses: paambaati/[email protected]
env:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,4 @@ $RECYCLE.BIN/
.cache
.temp
docs/.vitepress/dist
docs/.vuepress/dist
docs/.vitepress/cache
13 changes: 0 additions & 13 deletions .mocharc.js

This file was deleted.

27 changes: 0 additions & 27 deletions .nycrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 Frederik Schmatz
Copyright (c) 2023 Frederik Schmatz

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
<img src="https://feathers-trigger.netlify.app/img/logo.svg" width="200">
</p>

> NOTE: This is the version for Feathers v5. For Feathers v4 use [feathers-trigger v0](https://github.com/fratzinger/feathers-trigger/tree/crow)


[![npm](https://img.shields.io/npm/v/feathers-trigger)](https://www.npmjs.com/package/feathers-trigger)
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/fratzinger/feathers-trigger/Node.js%20CI)](https://github.com/fratzinger/feathers-trigger/actions/workflows/node.js.yml?query=branch%3Amain++)
[![GitHub Workflow Status](https://github.com/fratzinger/feathers-trigger/actions/workflows/node.js.yml/badge.svg)](https://github.com/fratzinger/feathers-trigger/actions)
[![Code Climate maintainability](https://img.shields.io/codeclimate/maintainability/fratzinger/feathers-trigger)](https://codeclimate.com/github/fratzinger/feathers-trigger)
[![Code Climate coverage](https://img.shields.io/codeclimate/coverage/fratzinger/feathers-trigger)](https://codeclimate.com/github/fratzinger/feathers-trigger)
[![libraries.io](https://img.shields.io/librariesio/release/npm/feathers-trigger)](https://libraries.io/npm/feathers-trigger)
Expand Down
15 changes: 15 additions & 0 deletions build.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { defineBuildConfig } from "unbuild";
import pkg from "./package.json";

export default defineBuildConfig({
entries: ["./src/index"],
outDir: "./dist",
declaration: true,
externals: [
...Object.keys(pkg.dependencies),
...Object.keys(pkg.devDependencies),
],
rollup: {
emitCJS: true,
},
});
45 changes: 45 additions & 0 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import { defineConfig } from "vitepress";

export default {
title: 'feathers-trigger',
description: 'Add triggers and actions to your feathers app.',
head: [['link', { rel: 'icon', href: '/favicon.ico' }]],
themeConfig: {
logo: '/img/logo.svg',
editLink: { pattern: 'https://github.com/fratzinger/feathers-trigger/edit/main/docs/:path', text: 'Edit this page on GitHub' },
lastUpdatedText: 'Last Updated',
socialLinks: [
{
icon: "twitter",
link: "https://twitter.com/feathersjs",
},
{
icon: "discord",
link: "https://discord.gg/qa8kez8QBx",
},
{ icon: 'github', link: 'https://github.com/fratzinger/feathers-trigger' }
],
nav: [

{
text: 'Ecosystem',
items: [
{
text: 'www.feathersjs.com',
link: 'https://feathersjs.com/'
}, {
text: "Feathers Github Repo",
link: "https://github.com/feathersjs/feathers"
}, {
text: 'Awesome Feathersjs',
link: 'https://github.com/feathersjs/awesome-feathersjs'
}
]
}
],
footer: {
message: 'Released under the MIT License.',
copyright: 'Copyright © 2021-present Frederik Schmatz'
},
}
}
5 changes: 5 additions & 0 deletions docs/.vitepress/theme/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
:root {
--vp-c-brand: #747c7c;
--vp-c-brand-light: #838d8d;
--vp-button-brand-hover-bg: #6e7373;
}
6 changes: 6 additions & 0 deletions docs/.vitepress/theme/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import DefaultTheme from 'vitepress/theme'
import './index.css'

export default {
...DefaultTheme
}
36 changes: 0 additions & 36 deletions docs/.vuepress/config.ts

This file was deleted.

Loading