Angelmaneuver/unit-converter

View on GitHub
package.json

Summary

Maintainability
Test Coverage
{
    "name": "unit-converter",
    "displayName": "Unit Converter",
    "description": "Convert and display size units.",
    "publisher": "Angelmaneuver",
    "version": "0.0.3",
    "homepage": "https://github.com/Angelmaneuver/unit-converter/blob/main/README.md#unit-converter",
    "repository": {
        "type": "git",
        "url": "https://github.com/Angelmaneuver/unit-converter.git"
    },
    "bugs": {
        "url": "https://github.com/Angelmaneuver/unit-converter/issues"
    },
    "engines": {
        "vscode": "^1.67.0"
    },
    "icon": "resource/AppIcon.png",
    "categories": [
        "Other"
    ],
    "keywords": [
        "convert",
        "px",
        "rem",
        "Mac"
    ],
    "activationEvents": [
        "onStartupFinished",
        "onCommand:unit-converter.guidance",
        "onCommand:unit-converter.p2r",
        "onCommand:unit-converter.r2p"
    ],
    "main": "./dist/extension.js",
    "contributes": {
        "commands": [
            { "command": "unit-converter.guidance", "title": "Unit Converter" },
            { "command": "unit-converter.p2r",      "title": "Unit Converter - p2r" },
            { "command": "unit-converter.r2p",      "title": "Unit Converter - r2p" }
        ],
        "configuration": {
            "title": "Unit Converter",
            "properties": {
                "unit-converter.basePx": {
                    "type": "number",
                    "default": 16,
                    "description": "Base value of px."
                },
                "unit-converter.sendClipboard": {
                    "type": "boolean",
                    "default": true,
                    "description": "Copy the conversion result to the clipbloard."
                }
            }
        }
    },
    "scripts": {
        "vscode:prepublish": "yarn run package",
        "compile": "webpack",
        "watch": "webpack --watch",
        "package": "webpack --mode production --devtool hidden-source-map",
        "compile-tests": "tsc -p . --outDir out",
        "watch-tests": "tsc -p . -w --outDir out",
        "pretest": "yarn run compile-tests && yarn run compile && yarn run lint",
        "lint": "eslint src --ext ts",
        "test": "node ./out/test/runTest.js"
    },
    "devDependencies": {
        "@types/copy-paste": "^1.1.30",
        "@types/glob": "^7.2.0",
        "@types/mocha": "^9.1.1",
        "@types/node": "17.x",
        "@types/vscode": "^1.67.0",
        "@typescript-eslint/eslint-plugin": "^5.26.0",
        "@typescript-eslint/parser": "^5.26.0",
        "@vscode/test-electron": "^2.1.3",
        "eslint": "^8.16.0",
        "glob": "^8.0.3",
        "mocha": "^10.0.0",
        "ts-loader": "^9.3.0",
        "typescript": "^4.7.2",
        "webpack": "^5.72.1",
        "webpack-cli": "^4.9.2"
    },
    "dependencies": {}
}