mirror of
https://github.com/n8n-io/n8n-nodes-starter.git
synced 2025-10-29 14:22:26 -05:00
parent
0b4d09b62e
commit
9d4183364a
4 changed files with 44 additions and 14 deletions
|
|
@ -1,8 +1,11 @@
|
||||||
const { src, dest } = require('gulp');
|
const { src, dest } = require('gulp');
|
||||||
|
|
||||||
function copyIcons() {
|
function copyIcons() {
|
||||||
return src('nodes/**/*.png')
|
src('nodes/**/*.{png,svg}')
|
||||||
.pipe(dest('dist/nodes'));
|
.pipe(dest('dist/nodes'))
|
||||||
|
|
||||||
|
return src('credentials/**/*.{png,svg}')
|
||||||
|
.pipe(dest('dist/credentials'));
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.default = copyIcons;
|
exports.default = copyIcons;
|
||||||
19
package.json
19
package.json
|
|
@ -16,7 +16,9 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "npm run watch",
|
"dev": "npm run watch",
|
||||||
"build": "tsc && gulp",
|
"build": "tsc && gulp",
|
||||||
"tslint": "tslint -p tsconfig.json -c tslint.json",
|
"lint": "tslint -p tsconfig.json -c tslint.json",
|
||||||
|
"lintfix": "tslint --fix -p tsconfig.json -c tslint.json",
|
||||||
|
"nodelinter": "nodelinter",
|
||||||
"watch": "tsc --watch",
|
"watch": "tsc --watch",
|
||||||
"test": "jest"
|
"test": "jest"
|
||||||
},
|
},
|
||||||
|
|
@ -35,16 +37,17 @@
|
||||||
"@types/express": "^4.17.6",
|
"@types/express": "^4.17.6",
|
||||||
"@types/jest": "^24.0.18",
|
"@types/jest": "^24.0.18",
|
||||||
"@types/node": "^10.10.1",
|
"@types/node": "^10.10.1",
|
||||||
"@types/request-promise-native": "^1.0.17",
|
"@types/request-promise-native": "~1.0.15",
|
||||||
"gulp": "^4.0.0",
|
"gulp": "^4.0.0",
|
||||||
"jest": "^24.9.0",
|
"jest": "^26.4.2",
|
||||||
"n8n-workflow": "^0.11.0",
|
"n8n-workflow": "~0.75.0",
|
||||||
"ts-jest": "^24.0.2",
|
"nodelinter": "^0.1.9",
|
||||||
"tslint": "^5.17.0",
|
"ts-jest": "^26.3.0",
|
||||||
"typescript": "~3.5.2"
|
"tslint": "^6.1.2",
|
||||||
|
"typescript": "~4.3.5"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"n8n-core": "^0.10.0"
|
"n8n-core": "~0.92.0"
|
||||||
},
|
},
|
||||||
"jest": {
|
"jest": {
|
||||||
"transform": {
|
"transform": {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,8 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"lib": [
|
"lib": [
|
||||||
"es2017"
|
"es2017",
|
||||||
|
"es2019.array"
|
||||||
],
|
],
|
||||||
"types": [
|
"types": [
|
||||||
"node",
|
"node",
|
||||||
|
|
@ -13,6 +14,7 @@
|
||||||
"strictNullChecks": true,
|
"strictNullChecks": true,
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"preserveConstEnums": true,
|
"preserveConstEnums": true,
|
||||||
|
"resolveJsonModule": true,
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"outDir": "./dist/",
|
"outDir": "./dist/",
|
||||||
"target": "es2017",
|
"target": "es2017",
|
||||||
|
|
@ -22,9 +24,10 @@
|
||||||
"credentials/**/*",
|
"credentials/**/*",
|
||||||
"src/**/*",
|
"src/**/*",
|
||||||
"nodes/**/*",
|
"nodes/**/*",
|
||||||
|
"nodes/**/*.json",
|
||||||
"test/**/*"
|
"test/**/*"
|
||||||
],
|
],
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"**/*.spec.ts"
|
"**/*.spec.ts"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
23
tslint.json
23
tslint.json
|
|
@ -46,6 +46,7 @@
|
||||||
"forin": true,
|
"forin": true,
|
||||||
"jsdoc-format": true,
|
"jsdoc-format": true,
|
||||||
"label-position": true,
|
"label-position": true,
|
||||||
|
"indent": [true, "tabs", 2],
|
||||||
"member-access": [
|
"member-access": [
|
||||||
true,
|
true,
|
||||||
"no-public"
|
"no-public"
|
||||||
|
|
@ -60,6 +61,10 @@
|
||||||
"no-default-export": true,
|
"no-default-export": true,
|
||||||
"no-duplicate-variable": true,
|
"no-duplicate-variable": true,
|
||||||
"no-inferrable-types": true,
|
"no-inferrable-types": true,
|
||||||
|
"ordered-imports": [true, {
|
||||||
|
"import-sources-order": "any",
|
||||||
|
"named-imports-order": "case-insensitive"
|
||||||
|
}],
|
||||||
"no-namespace": [
|
"no-namespace": [
|
||||||
true,
|
true,
|
||||||
"allow-declarations"
|
"allow-declarations"
|
||||||
|
|
@ -82,11 +87,27 @@
|
||||||
"ignore-bound-class-methods"
|
"ignore-bound-class-methods"
|
||||||
],
|
],
|
||||||
"switch-default": true,
|
"switch-default": true,
|
||||||
|
"trailing-comma": [
|
||||||
|
true,
|
||||||
|
{
|
||||||
|
"multiline": {
|
||||||
|
"objects": "always",
|
||||||
|
"arrays": "always",
|
||||||
|
"functions": "always",
|
||||||
|
"typeLiterals": "ignore"
|
||||||
|
},
|
||||||
|
"esSpecCompliant": true
|
||||||
|
}
|
||||||
|
],
|
||||||
"triple-equals": [
|
"triple-equals": [
|
||||||
true,
|
true,
|
||||||
"allow-null-check"
|
"allow-null-check"
|
||||||
],
|
],
|
||||||
"use-isnan": true,
|
"use-isnan": true,
|
||||||
|
"quotemark": [
|
||||||
|
true,
|
||||||
|
"single"
|
||||||
|
],
|
||||||
"quotes": [
|
"quotes": [
|
||||||
"error",
|
"error",
|
||||||
"single"
|
"single"
|
||||||
|
|
@ -100,4 +121,4 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"rulesDirectory": []
|
"rulesDirectory": []
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue