Skip to content

Commit

Permalink
feat: ✨ initial commit with working polydock!
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jun 1, 2020
0 parents commit 7fee62e
Show file tree
Hide file tree
Showing 19 changed files with 229,636 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
module.exports = {
parser: "@typescript-eslint/parser", // Specifies the ESLint parser
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"prettier",
"prettier/@typescript-eslint",
"plugin:unicorn/recommended",
"plugin:promise/recommended",
],
env: {
node: true,
browser: false,
},
plugins: ["@typescript-eslint", "prettier", "import", "promise"],
parserOptions: {
ecmaVersion: 2019, // Allows for the parsing of modern ECMAScript features
sourceType: "module", // Allows for the use of imports
project: "./tsconfig.json",
impliedStrict: true,
createDefaultProgram: true,
},
rules: {
"array-callback-return": "error",
"prefer-template": "warn",
"prefer-promise-reject-errors": "error",
"require-unicode-regexp": "error",
yoda: "error",
"prefer-spread": "error",
"prettier/prettier": "warn",
"unicorn/prevent-abbreviations": "off",
"unicorn/explicit-length-check": "off",
"unicorn/no-reduce": "off",
"unicorn/consistent-function-scoping": "off",
"lines-between-class-members": [
"error",
"always",
{ exceptAfterSingleLine: true },
],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/restrict-plus-operands": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
},
}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
lib
.eslintcache
.ultra.cache.json
9 changes: 9 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"semi": false,
"singleQuote": false,
"tabWidth": 2,
"useTabs": false,
"printWidth": 80,
"trailingComma": "es5",
"proseWrap": "preserve"
}
2 changes: 2 additions & 0 deletions bin/polydock.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env node
void require("../lib")
37 changes: 37 additions & 0 deletions config/theme.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/* Reset CSS */
* {
background-color: transparent;
padding: 0;
margin: 0;
border-radius: 0;
box-shadow: none;
outline: none;
}

toolbar {
background-color: rgba(255, 255, 255, 0.1);
padding-left: 12px;
padding-right: 12px;
}

toolbutton button {
padding: 5px 6px;
border: none;
transition: 0.2s linear;
transition-property: all;
}

toolbutton image {
-gtk-icon-shadow: 1px 2px alpha(black, 0.2);
}

toolbutton button:hover {
background-color: rgba(255, 255, 255, 0.4);
border: none;
}

toolbutton.active-window button {
/* margin-bottom: -4px; */
border-bottom: 2px solid white;
padding-bottom: 2px;
}
66 changes: 66 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"name": "polydock",
"version": "1.0.0",
"description": "",
"main": "index.js",
"author": "",
"license": "ISC",
"bin": {
"polydock": "bin/polydock.js"
},
"engines": {
"node": ">=10.0.0"
},
"files": [
"lib",
"bin",
"*.md",
"config"
],
"husky": {
"hooks": {
"prepare-commit-msg": "npx --no-install devmoji -e --lint"
}
},
"scripts": {
"prebuild": "pnpm run lint",
"build": "npx tsc",
"clean": "npx rimraf lib coverage *.log build 0x",
"lint": "npx eslint bin/*.js src/*.ts --cache",
"lint:fix": "pnpm run lint:eslint --fix"
},
"ultra": {
"concurrent": [
"lint",
"prebuild",
"ultra"
]
},
"devDependencies": {
"@types/eslint": "^6.8.1",
"@types/eslint-plugin-prettier": "3.1.0",
"@types/node": "^14.0.6",
"@types/prettier": "^2.0.1",
"@types/rimraf": "^3.0.0",
"@typescript-eslint/eslint-plugin": "3.0.2",
"@typescript-eslint/parser": "3.0.2",
"devmoji": "^2.1.9",
"eslint": "^7.1.0",
"eslint-config-prettier": "6.11.0",
"eslint-plugin-import": "2.20.2",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-prettier": "3.1.3",
"eslint-plugin-promise": "4.2.1",
"eslint-plugin-unicorn": "20.1.0",
"husky": "4.2.5",
"node-gtk": "^0.4.0",
"prettier": "^2.0.5",
"rimraf": "^3.0.2",
"typescript": "^3.9.3",
"typesync": "^0.7.0"
},
"dependencies": {
"node-gtk": "^0.4.0",
"tslib": "^2.0.0"
}
}
Loading

0 comments on commit 7fee62e

Please sign in to comment.