wip: initial commit

This commit is contained in:
2025-02-24 00:30:26 +00:00
commit dcb8d20d88
12 changed files with 6309 additions and 0 deletions

64
package.json Normal file
View File

@@ -0,0 +1,64 @@
{
"name": "make-executable-if-script",
"displayName": "Make Executable If Script",
"description": "Mark file as executable (chmod +x) if it starts with `#!`.",
"version": "0.0.1",
"engines": {
"vscode": "^1.97.0"
},
"categories": [
"Other"
],
"activationEvents": [],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "make-executable-if-script.makeExecutable",
"title": "Make Executable If Script"
}
],
"configuration": {
"title": "Make Executable If Script",
"properties": {
"make-executable-if-script.autoMarkOnSave": {
"type": "boolean",
"default": true,
"description": "Automatically mark files as executable on save if they start with #! (hashbang)"
},
"make-executable-if-script.silent": {
"type": "boolean",
"default": false,
"description": "Suppress notifications when files are made executable"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "npm run check-types && npm run lint && node esbuild.js",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "node esbuild.js --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"package": "npm run check-types && npm run lint && node esbuild.js --production",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"check-types": "tsc --noEmit",
"lint": "eslint src",
"test": "vscode-test"
},
"devDependencies": {
"@types/vscode": "^1.97.0",
"@types/mocha": "^10.0.10",
"@types/node": "20.x",
"@typescript-eslint/eslint-plugin": "^8.22.0",
"@typescript-eslint/parser": "^8.22.0",
"eslint": "^9.19.0",
"esbuild": "^0.24.2",
"npm-run-all": "^4.1.5",
"typescript": "^5.7.3",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1"
}
}