1
0
mirror of https://github.com/Minionguyjpro/Inno-Setup-Action synced 2026-02-18 17:41:18 +01:00

Add eslint

This commit is contained in:
Minionguyjpro
2023-07-08 11:32:07 +00:00
parent 62fa3fc82f
commit 08c14b708e
6 changed files with 2190 additions and 2 deletions

13
.eslintrc.json Normal file
View File

@@ -0,0 +1,13 @@
{
"env": {
"es2021": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
}
}

View File

@@ -6,9 +6,12 @@ branding:
description: 'GitHub action to compile .iss (Inno Setup Script) files.' description: 'GitHub action to compile .iss (Inno Setup Script) files.'
inputs: inputs:
path: # id of input path:
description: 'Path to input .iss script file' description: 'Path to input .iss script file'
required: true required: true
options:
description: 'Extra arguments/options to include. Include the slashes for them.'
required: false
runs: runs:
using: 'node16' using: 'node16'

2
dist/index.js vendored
View File

@@ -7,7 +7,7 @@ const path = core.getInput('path');
var exec = require('child_process').exec; var exec = require('child_process').exec;
if (process.platform === 'win32') { if (process.platform === 'win32') {
exec(`\"%PROGRAMFILES(X86)%\\Inno Setup 6\\iscc.exe\" \"${path}\"`, exec(`"%PROGRAMFILES(X86)%\\Inno Setup 6\\iscc.exe" "${path}"`,
function (error, stdout, stderr) { function (error, stdout, stderr) {
console.log(stdout); console.log(stdout);
console.log(stderr); console.log(stderr);

1083
node_modules/.package-lock.json generated vendored

File diff suppressed because it is too large Load Diff

1086
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -13,5 +13,8 @@
"@actions/core": "^1.10.0", "@actions/core": "^1.10.0",
"@actions/github": "^5.1.1", "@actions/github": "^5.1.1",
"node-cmd": "^5.0.0" "node-cmd": "^5.0.0"
},
"devDependencies": {
"eslint": "^8.44.0"
} }
} }