Skip to content

Commit

Permalink
less deps/strict for easier maintaining
Browse files Browse the repository at this point in the history
  • Loading branch information
lublak committed Jan 24, 2025
1 parent b9a4f9b commit 3093127
Show file tree
Hide file tree
Showing 22 changed files with 8,160 additions and 18,055 deletions.
48 changes: 45 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,45 @@
module.exports = {
extends: ['eslint-config-n8n-nodes-base']
};
/**
* @type {import('@types/eslint').ESLint.ConfigData}
*/
module.exports = {
root: true,

env: {
browser: true,
es6: true,
node: true,
},

parser: '@typescript-eslint/parser',

parserOptions: {
project: ['./tsconfig.json'],
sourceType: 'module',
extraFileExtensions: ['.json'],
},

ignorePatterns: ['.eslintrc.js', '**/*.js', '**/node_modules/**', '**/dist/**'],

overrides: [
{
files: ['package.json'],
plugins: ['eslint-plugin-n8n-nodes-base'],
extends: ['plugin:n8n-nodes-base/community'],
rules: {
'n8n-nodes-base/community-package-json-name-still-default': 'off',
},
},
{
files: ['./nodes/**/*.ts'],
plugins: ['eslint-plugin-n8n-nodes-base'],
extends: ['plugin:n8n-nodes-base/nodes'],
rules: {
'n8n-nodes-base/node-execute-block-missing-continue-on-fail': 'off',
'n8n-nodes-base/node-resource-description-filename-against-convention': 'off',
'n8n-nodes-base/node-param-fixed-collection-type-unsorted-items': 'off',
'n8n-nodes-base/node-class-description-inputs-wrong-regular-node': 'off',
'n8n-nodes-base/node-class-description-outputs-wrong': 'off',
},
},
],
};
132 changes: 66 additions & 66 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,66 +1,66 @@
name: Bug Report
description: Create a report to help us improve
labels: [bug]
assignees:
- lublak
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
Please always be sure to use the latest compatible version.
- type: textarea
id: bug-description
attributes:
label: Describe the bug
description: A clear and concise description of what the bug is.
placeholder: The description of the bug.
validations:
required: true
- type: textarea
id: expected-behavior
attributes:
label: Describe the expected behavior
description: A clear and concise description of what you expected to happen.
placeholder: The expected behavior.
validations:
required: true
- type: input
attributes:
label: What is your Node.js version?
placeholder: 14.X.X
validations:
required: true
- type: input
attributes:
label: What is your n8n version?
placeholder: 0.189.0
validations:
required: true
- type: input
attributes:
label: What is your n8n-nodes-text-manipulation version?
placeholder: 0.189.0
validations:
required: true
- type: dropdown
id: os
attributes:
label: What operating system are you seeing the problem on?
multiple: true
options:
- Linux
- Windows
- MacOS
- Other (enter below with the version)
- type: input
attributes:
label: Operating system version (or if other, then please fill in complete name and version)
validations:
required: true
- type: textarea
id: logs
attributes:
label: Relevant log output
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
render: shell
name: Bug Report
description: Create a report to help us improve
labels: [bug]
assignees:
- lublak
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
Please always be sure to use the latest compatible version.
- type: textarea
id: bug-description
attributes:
label: Describe the bug
description: A clear and concise description of what the bug is.
placeholder: The description of the bug.
validations:
required: true
- type: textarea
id: expected-behavior
attributes:
label: Describe the expected behavior
description: A clear and concise description of what you expected to happen.
placeholder: The expected behavior.
validations:
required: true
- type: input
attributes:
label: What is your Node.js version?
placeholder: 14.X.X
validations:
required: true
- type: input
attributes:
label: What is your n8n version?
placeholder: 0.189.0
validations:
required: true
- type: input
attributes:
label: What is your n8n-nodes-text-manipulation version?
placeholder: 0.189.0
validations:
required: true
- type: dropdown
id: os
attributes:
label: What operating system are you seeing the problem on?
multiple: true
options:
- Linux
- Windows
- MacOS
- Other (enter below with the version)
- type: input
attributes:
label: Operating system version (or if other, then please fill in complete name and version)
validations:
required: true
- type: textarea
id: logs
attributes:
label: Relevant log output
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
render: shell
48 changes: 24 additions & 24 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
name: Feature Request
description: Suggest an idea for this project
labels: [enhancement]
assignees:
- lublak
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this feature request!
- type: textarea
id: feature-description
attributes:
label: Describe the function you would like to have
description: A clear and concise description of what you want to happen.
placeholder: The description of the function.
validations:
required: true
- type: textarea
id: alternative-solution
attributes:
label: Describe your current alternative solution.
description: Your current solution that you use, if there is one.
placeholder: Your alternative solution.
name: Feature Request
description: Suggest an idea for this project
labels: [enhancement]
assignees:
- lublak
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this feature request!
- type: textarea
id: feature-description
attributes:
label: Describe the function you would like to have
description: A clear and concise description of what you want to happen.
placeholder: The description of the function.
validations:
required: true
- type: textarea
id: alternative-solution
attributes:
label: Describe your current alternative solution.
description: Your current solution that you use, if there is one.
placeholder: Your alternative solution.
60 changes: 30 additions & 30 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
name: Node.js CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 16.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Build
run: npm run build --if-present
name: Node.js CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Build
run: npm run build --if-present
70 changes: 35 additions & 35 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
name: Node.js Package

on:
release:
types: [created]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
- run: npm ci

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
if: ${{ !github.event.release.prerelease }}
- run: npm publish --access public --tag beta
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
if: ${{ github.event.release.prerelease }}
name: Node.js Package

on:
release:
types: [created]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18
- run: npm ci

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
if: ${{ !github.event.release.prerelease }}
- run: npm publish --access public --tag beta
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
if: ${{ github.event.release.prerelease }}
14 changes: 7 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
node_modules
.DS_Store
.tmp
tmp
dist
npm-debug.log*
yarn.lock
node_modules
.DS_Store
.tmp
tmp
dist
npm-debug.log*
yarn.lock
.vscode/launch.json
Loading

0 comments on commit 3093127

Please sign in to comment.