muuvmuuv/vscode-sundial

View on GitHub
package.json

Summary

Maintainability
Test Coverage
{
  "name": "vscode-sundial",
  "displayName": "Sundial – Automatic night mode and settings switch",
  "version": "3.4.1",
  "description": "Automatically change your theme and settings based on your sunset, sunrise, system appearance or other preferences!",
  "icon": "assets/icon.png",
  "publisher": "muuvmuuv",
  "qna": "https://github.com/muuvmuuv/vscode-sundial/issues/new/choose",
  "categories": [
    "Other"
  ],
  "keywords": [
    "auto",
    "day",
    "night",
    "switch",
    "settings"
  ],
  "homepage": "https://github.com/muuvmuuv/vscode-sundial",
  "bugs": {
    "url": "https://github.com/muuvmuuv/vscode-sundial/issues"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/muuvmuuv/vscode-sundial.git"
  },
  "license": "GPLv3",
  "author": {
    "name": "Marvin Heilemann",
    "email": "bloggt.raschelt.0m@icloud.com",
    "url": "https://marvin.digital/"
  },
  "main": "dist/extension.js",
  "scripts": {
    "dev": "sh compile.sh --watch",
    "compile": "sh compile.sh",
    "package": "sh compile.sh --minify",
    "lint": "eslint --cache --ext js,ts .",
    "format": "prettier --ignore-path=.gitignore --write **/*.{js,ts,json,md}",
    "vscode:prepublish": "npm run package"
  },
  "dependencies": {
    "dayjs": "^1.10.7",
    "got": "^13.0.0",
    "is-online": "^10.0.0",
    "suncalc": "^1.8.0"
  },
  "devDependencies": {
    "@commitlint/cli": "^17.6.1",
    "@commitlint/config-conventional": "^17.6.1",
    "@release-it/conventional-changelog": "^6.0.0",
    "@types/node": "16.x",
    "@types/suncalc": "^1.8.1",
    "@types/vscode": "^1.74.3",
    "@typescript-eslint/eslint-plugin": "^5.13.0",
    "@typescript-eslint/parser": "^5.13.0",
    "esbuild": "^0.18.11",
    "eslint": "^8.10.0",
    "eslint-config-prettier": "^8.3.0",
    "eslint-plugin-prettier": "^4.0.0",
    "eslint-plugin-simple-import-sort": "^10.0.0",
    "eslint-plugin-unicorn": "^47.0.0",
    "lefthook": "^1.3.10",
    "npm-run-all": "^4.1.5",
    "ovsx": "^0.8.0",
    "prettier": "^3.0.0",
    "release-it": "^15.0.0",
    "typescript": "^5.0.0"
  },
  "engines": {
    "vscode": "^1.74.3"
  },
  "activationEvents": [
    "onStartupFinished"
  ],
  "contributes": {
    "commands": [
      {
        "command": "sundial.switchToNightTheme",
        "title": "Sundial: Switch to night theme 🌑"
      },
      {
        "command": "sundial.switchToDayTheme",
        "title": "Sundial: Switch to day theme 🌕"
      },
      {
        "command": "sundial.toggleDayNightTheme",
        "title": "Sundial: Toggle Day/Night Theme"
      },
      {
        "command": "sundial.enableExtension",
        "title": "Sundial: Enable extension"
      },
      {
        "command": "sundial.disableExtension",
        "title": "Sundial: Disable extension"
      },
      {
        "command": "sundial.pauseUntilNextCircle",
        "title": "Sundial: Pause until next circle"
      }
    ],
    "keybindings": [
      {
        "command": "sundial.toggleDayNightTheme",
        "key": "ctrl+alt+t",
        "mac": "ctrl+cmd+t"
      }
    ],
    "configuration": {
      "type": "object",
      "title": "Sundial Configurations",
      "properties": {
        "sundial.sunrise": {
          "type": "string",
          "default": "07:00",
          "description": "Set the sunrise time. (24 hour format)"
        },
        "sundial.sunset": {
          "type": "string",
          "default": "19:00",
          "description": "Set the sunset time. (24 hour format)"
        },
        "sundial.latitude": {
          "type": "string",
          "description": "Latitude of your location to get sunset and sunrise."
        },
        "sundial.longitude": {
          "type": "string",
          "description": "Latitude of your location to get sunset and sunrise."
        },
        "sundial.autoLocale": {
          "type": "boolean",
          "default": false,
          "description": "Automatically set your sunset and sunrise based on your public ip location."
        },
        "sundial.dayVariable": {
          "type": "number",
          "default": 0,
          "description": "Set a variable to change the theme X minutes before or after sunrise."
        },
        "sundial.nightVariable": {
          "type": "number",
          "default": 0,
          "description": "Set a variable to change the theme X minutes before or after sunset."
        },
        "sundial.daySettings": {
          "type": "object",
          "default": {},
          "description": "Set some VSCode settings you would like to override during the day."
        },
        "sundial.nightSettings": {
          "type": "object",
          "default": {},
          "description": "Set some VSCode settings you would like to override during the night."
        },
        "sundial.statusBarItemPriority": {
          "type": "number",
          "default": 100,
          "description": "Set the position of the status bar item (higher mean more on the left)."
        },
        "sundial.interval": {
          "type": "number",
          "default": 5,
          "description": "Set in which interval Sundial should check the time. (in minutes)"
        },
        "sundial.debug": {
          "type": "number",
          "default": 1,
          "description": "Set debug level: silent = 0, info = 1, error = 2, debug = 3"
        }
      }
    }
  },
  "badges": [
    {
      "description": "Language grade",
      "url": "https://img.shields.io/lgtm/grade/javascript/g/muuvmuuv/vscode-sundial.svg?logo=lgtm&logoWidth=18",
      "href": "https://lgtm.com/projects/g/muuvmuuv/vscode-sundial/context:javascript"
    },
    {
      "description": "Maintainability",
      "url": "https://api.codeclimate.com/v1/badges/52f93dc5f852410ef448/maintainability",
      "href": "https://codeclimate.com/github/muuvmuuv/vscode-sundial/maintainability"
    }
  ],
  "commitlint": {
    "extends": [
      "@commitlint/config-conventional"
    ]
  }
}