Skip to content

Commit

Permalink
n8n-nodes-isis builds properly
Browse files Browse the repository at this point in the history
  • Loading branch information
evindunn committed Feb 16, 2021
1 parent 129ad1d commit 5390474
Show file tree
Hide file tree
Showing 5 changed files with 78 additions and 67 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"scripts": {
"bootstrap": "lerna bootstrap --hoist --no-ci",
"build": "lerna exec npm run build",
"build:isis": "lerna exec --scope n8n-nodes-isis npm run build",
"dev": "lerna exec npm run dev --parallel",
"clean:dist": "lerna exec -- rimraf ./dist",
"start": "run-script-os",
Expand Down
6 changes: 3 additions & 3 deletions packages/n8n-nodes-isis/nodes/Lowpass.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import {
INodeTypeDescription,
} from 'n8n-workflow';

export class ISISLowPass implements INodeType {
export class Lowpass implements INodeType {
description: INodeTypeDescription = {
displayName: 'Low Pass Filter',
name: 'lowpass',
name: 'Lowpass',
group: ['transform'],
version: 1,
description: 'Apply lowpass or blurring filter to a cube',
Expand All @@ -19,7 +19,7 @@ export class ISISLowPass implements INodeType {
};

async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
const item = Object.assign({}, this.getInputData());
const item = this.getInputData();
return this.prepareOutputData(item);
}
}
15 changes: 12 additions & 3 deletions packages/n8n-nodes-isis/nodes/UploadSingleFile.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
export class UploadSingleFile implements INodeType {
description: INodeTypeDescription = {
displayName: 'File Upload',
name: 'uploadSingleFile',
name: 'UploadSingleFile',
icon: 'fa:file-import',
group: ['input'],
version: 1,
Expand All @@ -19,11 +19,20 @@ export class UploadSingleFile implements INodeType {
},
inputs: ['main'],
outputs: ['main'],
properties: [],
properties: [
{
displayName: "File",
name: "file",
type: 'string',
default: "",
placeholder: "Upload...",
description: "File file to upload"
}
],
};

async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
const item = Object.assign({}, this.getInputData());
const item = this.getInputData();
return this.prepareOutputData(item);
}
}
122 changes: 61 additions & 61 deletions packages/n8n-nodes-isis/package.json
Original file line number Diff line number Diff line change
@@ -1,65 +1,65 @@
{
"name": "n8n-nodes-isis",
"version": "0.1.0",
"description": "ISIS command nodes for n8n",
"license": "SEE LICENSE IN LICENSE.md",
"homepage": "https://isis.astrogeology.usgs.gov",
"author": {
"name": "Team Osiris"
"name": "n8n-nodes-isis",
"version": "0.1.0",
"description": "ISIS command nodes for n8n",
"license": "SEE LICENSE IN LICENSE.md",
"homepage": "https://isis.astrogeology.usgs.gov",
"author": {
"name": "Team Osiris"
},
"repository": {
"type": "git",
"url": "git+https://github.com/OsirisCapstone2020/n8n.git"
},
"main": "index.js",
"scripts": {
"dev": "npm run watch",
"build": "tsc && gulp",
"tslint": "tslint -p tsconfig.json -c tslint.json",
"watch": "tsc --watch",
"test": "jest",
"prepublish": "npm run build"
},
"files": [
"dist"
],
"n8n": {
"credentials": [ ],
"nodes": [
"dist/nodes/UploadSingleFile.node.js",
"dist/nodes/Lowpass.node.js"
]
},
"devDependencies": {
"@types/express": "^4.17.6",
"@types/jest": "^26.0.13",
"@types/node": "14.0.27",
"@types/request-promise-native": "~1.0.15",
"gulp": "^4.0.0",
"jest": "^26.4.2",
"n8n-workflow": "^0.44.0",
"ts-jest": "^26.3.0",
"tslint": "^6.1.2",
"typescript": "~3.9.7"
},
"dependencies": {
"n8n-core": "~0.51.0"
},
"jest": {
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"repository": {
"type": "git",
"url": "git+https://github.com/OsirisCapstone2020/n8n.git"
},
"main": "index.js",
"scripts": {
"dev": "npm run watch",
"build": "tsc && gulp",
"tslint": "tslint -p tsconfig.json -c tslint.json",
"watch": "tsc --watch",
"test": "jest",
"prepublish": "npm run build"
},
"files": [
"dist"
"testURL": "http://localhost/",
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
"testPathIgnorePatterns": [
"/dist/",
"/node_modules/"
],
"n8n": {
"credentials": [],
"nodes": [
"dist/UploadSingleFile.node.js",
"dist/Lowpass.node.js"
]
},
"devDependencies": {
"@types/express": "^4.17.6",
"@types/jest": "^26.0.13",
"@types/node": "14.0.27",
"@types/request-promise-native": "~1.0.15",
"gulp": "^4.0.0",
"jest": "^26.4.2",
"n8n-workflow": "^0.44.0",
"ts-jest": "^26.3.0",
"tslint": "^6.1.2",
"typescript": "~3.9.7"
},
"dependencies": {
"n8n-core": "^0.48.0"
},
"jest": {
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"testURL": "http://localhost/",
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
"testPathIgnorePatterns": [
"/dist/",
"/node_modules/"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"json"
]
}
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"json"
]
}
}
1 change: 1 addition & 0 deletions packages/n8n-nodes-isis/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"node",
"jest"
],
"rootDir": "./",
"module": "commonjs",
"noImplicitAny": true,
"removeComments": true,
Expand Down

0 comments on commit 5390474

Please sign in to comment.