@kitschpatrol/create-project 1.0.3 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/index.js +18 -15
  2. package/package.json +9 -4
  3. package/readme.md +6 -0
  4. package/templates/cli/.npmrc +3 -0
  5. package/templates/cli/.remarkrc.js +4 -2
  6. package/templates/cli/.vscode/settings.json +2 -2
  7. package/templates/cli/mdat.config.ts +6 -1
  8. package/templates/cli/package.json +8 -6
  9. package/templates/cli/pnpm-lock.yaml +1512 -0
  10. package/templates/cli/src/index.ts +27 -5
  11. package/templates/cli+library/.npmrc +3 -0
  12. package/templates/cli+library/.remarkrc.js +5 -2
  13. package/templates/cli+library/.vscode/settings.json +2 -2
  14. package/templates/cli+library/mdat.config.ts +6 -1
  15. package/templates/cli+library/package.json +10 -8
  16. package/templates/cli+library/src/bin/cli.ts +19 -7
  17. package/templates/cli+library/src/lib/index.ts +6 -0
  18. package/templates/cli+library/src/lib/log.ts +16 -0
  19. package/templates/cli+library/tsconfig.build.json +0 -3
  20. package/templates/electron/.github/workflows/github-release.yml +81 -0
  21. package/templates/electron/.github/workflows/set-github-metadata.yml +21 -0
  22. package/templates/electron/.gitignore +24 -0
  23. package/templates/electron/.npmrc +16 -0
  24. package/templates/electron/.prettierignore +8 -0
  25. package/templates/electron/.remarkrc.js +8 -0
  26. package/templates/electron/.vscode/extensions.json +9 -0
  27. package/templates/electron/.vscode/settings.json +68 -0
  28. package/templates/electron/cspell.config.js +5 -0
  29. package/templates/electron/electron/electron-env.d.ts +29 -0
  30. package/templates/electron/electron/main.ts +50 -0
  31. package/templates/electron/electron/preload.ts +130 -0
  32. package/templates/electron/electron/resources/icons/mac/icon.icns +0 -0
  33. package/templates/electron/electron/resources/icons/png/1024x1024.png +0 -0
  34. package/templates/electron/electron/resources/icons/win/icon.ico +0 -0
  35. package/templates/electron/electron/resources/mac/entitlements.mac.plist +11 -0
  36. package/templates/electron/electron-builder.ts +40 -0
  37. package/templates/electron/eslint.config.ts +22 -0
  38. package/templates/electron/index.html +13 -0
  39. package/templates/electron/knip.config.ts +3 -0
  40. package/templates/electron/license.txt +21 -0
  41. package/templates/electron/mdat.config.ts +3 -0
  42. package/templates/electron/package.json +61 -0
  43. package/templates/electron/pnpm-workspace.yaml +4 -0
  44. package/templates/electron/prettier.config.js +3 -0
  45. package/templates/electron/public/vite.svg +35 -0
  46. package/templates/electron/readme.md +29 -0
  47. package/templates/electron/src/counter.ts +15 -0
  48. package/templates/electron/src/main.ts +27 -0
  49. package/templates/electron/src/style.css +102 -0
  50. package/templates/electron/src/typescript.svg +14 -0
  51. package/templates/electron/stylelint.config.js +3 -0
  52. package/templates/electron/tsconfig.json +9 -0
  53. package/templates/electron/vite.config.ts +15 -0
  54. package/templates/library/.npmrc +3 -0
  55. package/templates/library/.remarkrc.js +4 -2
  56. package/templates/library/.vscode/settings.json +2 -2
  57. package/templates/library/package.json +10 -11
  58. package/templates/library/src/index.ts +6 -0
  59. package/templates/library/src/log.ts +16 -0
  60. package/templates/library/tsconfig.build.json +0 -3
  61. package/templates/minimal/.npmrc +3 -0
  62. package/templates/minimal/.remarkrc.js +4 -2
  63. package/templates/minimal/.vscode/settings.json +2 -2
  64. package/templates/minimal/package.json +3 -5
  65. package/templates/minimal/tsconfig.build.json +0 -3
  66. package/templates/web/.npmrc +3 -0
  67. package/templates/web/.remarkrc.js +4 -2
  68. package/templates/web/.vscode/settings.json +2 -2
  69. package/templates/web/eslint.config.ts +16 -0
  70. package/templates/web/package.json +10 -10
  71. package/templates/web/tsconfig.json +3 -1
  72. package/templates/web/vite.config.ts +11 -0
  73. package/templates/web/tsconfig.build.json +0 -8
@@ -0,0 +1,130 @@
1
+ /* eslint-disable ts/unbound-method */
2
+ /* eslint-disable unicorn/prefer-dom-node-remove */
3
+ /* eslint-disable unicorn/prefer-dom-node-append */
4
+ import { contextBridge, ipcRenderer } from 'electron'
5
+ import 'lognow/electron/preload'
6
+
7
+ // --------- Expose some API to the Renderer process ---------
8
+ contextBridge.exposeInMainWorld('ipcRenderer', {
9
+ async invoke(...args: Parameters<typeof ipcRenderer.invoke>) {
10
+ const [channel, ...omit] = args
11
+ // eslint-disable-next-line ts/no-unsafe-return, ts/no-unsafe-argument
12
+ return ipcRenderer.invoke(channel, ...omit)
13
+ },
14
+ off(...args: Parameters<typeof ipcRenderer.off>) {
15
+ const [channel, ...omit] = args
16
+ return ipcRenderer.off(channel, ...omit)
17
+ },
18
+ on(...args: Parameters<typeof ipcRenderer.on>) {
19
+ const [channel, listener] = args
20
+ return ipcRenderer.on(channel, (event, ...args) => {
21
+ // eslint-disable-next-line ts/no-unsafe-argument
22
+ listener(event, ...args)
23
+ })
24
+ },
25
+ send(...args: Parameters<typeof ipcRenderer.send>) {
26
+ const [channel, ...omit] = args
27
+ // eslint-disable-next-line ts/no-unsafe-argument
28
+ ipcRenderer.send(channel, ...omit)
29
+ },
30
+
31
+ // You can expose other APTs you need here.
32
+ // ...
33
+ })
34
+
35
+ // --------- Preload scripts loading ---------
36
+ async function domReady(condition: DocumentReadyState[] = ['complete', 'interactive']) {
37
+ return new Promise((resolve) => {
38
+ if (condition.includes(document.readyState)) {
39
+ resolve(true)
40
+ } else {
41
+ document.addEventListener('readystatechange', () => {
42
+ if (condition.includes(document.readyState)) {
43
+ resolve(true)
44
+ }
45
+ })
46
+ }
47
+ })
48
+ }
49
+
50
+ const safeDOM = {
51
+ append(parent: HTMLElement, child: HTMLElement) {
52
+ if (![...parent.children].includes(child)) {
53
+ return parent.appendChild(child)
54
+ }
55
+ },
56
+ remove(parent: HTMLElement, child: HTMLElement) {
57
+ if ([...parent.children].includes(child)) {
58
+ return parent.removeChild(child)
59
+ }
60
+ },
61
+ }
62
+
63
+ /**
64
+ * https://tobiasahlin.com/spinkit
65
+ * https://connoratherton.com/loaders
66
+ * https://projects.lukehaas.me/css-loaders
67
+ * https://matejkustec.github.io/SpinThatShit
68
+ */
69
+ function useLoading() {
70
+ const className = `loaders-css__square-spin`
71
+ const styleContent = `
72
+ @keyframes square-spin {
73
+ 25% { transform: perspective(100px) rotateX(180deg) rotateY(0); }
74
+ 50% { transform: perspective(100px) rotateX(180deg) rotateY(180deg); }
75
+ 75% { transform: perspective(100px) rotateX(0) rotateY(180deg); }
76
+ 100% { transform: perspective(100px) rotateX(0) rotateY(0); }
77
+ }
78
+ .${className} > div {
79
+ animation-fill-mode: both;
80
+ width: 50px;
81
+ height: 50px;
82
+ background: #fff;
83
+ animation: square-spin 3s 0s cubic-bezier(0.09, 0.57, 0.49, 0.9) infinite;
84
+ }
85
+ .app-loading-wrap {
86
+ position: fixed;
87
+ top: 0;
88
+ left: 0;
89
+ width: 100vw;
90
+ height: 100vh;
91
+ display: flex;
92
+ align-items: center;
93
+ justify-content: center;
94
+ background: #282c34;
95
+ z-index: 9;
96
+ }
97
+ `
98
+ const oStyle = document.createElement('style')
99
+ const oDiv = document.createElement('div')
100
+
101
+ oStyle.id = 'app-loading-style'
102
+ oStyle.innerHTML = styleContent
103
+ oDiv.className = 'app-loading-wrap'
104
+ oDiv.innerHTML = `<div class="${className}"><div></div></div>`
105
+
106
+ return {
107
+ appendLoading() {
108
+ safeDOM.append(document.head, oStyle)
109
+ safeDOM.append(document.body, oDiv)
110
+ },
111
+ removeLoading() {
112
+ safeDOM.remove(document.head, oStyle)
113
+ safeDOM.remove(document.body, oDiv)
114
+ },
115
+ }
116
+ }
117
+
118
+ // ----------------------------------------------------------------------
119
+
120
+ const { appendLoading, removeLoading } = useLoading()
121
+ // eslint-disable-next-line ts/no-floating-promises, unicorn/prefer-top-level-await
122
+ domReady().then(appendLoading)
123
+
124
+ // eslint-disable-next-line unicorn/prefer-add-event-listener
125
+ window.onmessage = (event) => {
126
+ // eslint-disable-next-line ts/no-unused-expressions, ts/no-unsafe-member-access
127
+ event.data.payload === 'removeLoading' && removeLoading()
128
+ }
129
+
130
+ setTimeout(removeLoading, 4999)
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
3
+ "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
4
+ <plist version="1.0">
5
+ <dict>
6
+ <key>com.apple.security.cs.allow-jit</key>
7
+ <true/>
8
+ <key>com.apple.security.files.user-selected.read-only</key>
9
+ <true/>
10
+ </dict>
11
+ </plist>
@@ -0,0 +1,40 @@
1
+ /* eslint-disable no-template-curly-in-string */
2
+ /* eslint-disable perfectionist/sort-objects */
3
+ import type { Configuration } from 'electron-builder'
4
+
5
+ const config: Configuration = {
6
+ appId: 'YourAppID',
7
+ artifactName: '${productName}_${version}-${os}-${arch}.${ext}',
8
+ copyright: 'Copyright © Someone',
9
+ extraMetadata: { name: 'App Name' },
10
+ linux: { icon: 'electron/resources/icons/png/1024x1024.png', target: 'tar.gz' },
11
+ files: ['dist', 'dist-electron'],
12
+ mac: {
13
+ category: 'public.app-category.education',
14
+ entitlements: 'electron/resources/mac/entitlements.mac.plist',
15
+ entitlementsInherit: 'electron/resources/mac/entitlements.mac.plist',
16
+ gatekeeperAssess: false,
17
+ hardenedRuntime: true,
18
+ icon: 'electron/resources/icons/mac/icon.icns',
19
+ target: 'zip',
20
+ },
21
+ nsis: {
22
+ allowToChangeInstallationDirectory: true,
23
+ deleteAppDataOnUninstall: false,
24
+ oneClick: false,
25
+ perMachine: false,
26
+ },
27
+ productName: 'YourAppName',
28
+ publish: { provider: 'github', releaseType: 'release', vPrefixedTagName: true },
29
+ win: {
30
+ icon: 'electron/resources/icons/win/icon.ico',
31
+ target: [
32
+ {
33
+ arch: ['x64'],
34
+ target: 'nsis',
35
+ },
36
+ ],
37
+ },
38
+ }
39
+
40
+ export default config
@@ -0,0 +1,22 @@
1
+ import { eslintConfig } from '@kitschpatrol/eslint-config'
2
+
3
+ export default eslintConfig({
4
+ ts: {
5
+ overrides: {
6
+ 'import/no-unresolved': [
7
+ 'error',
8
+ {
9
+ ignore: [
10
+ '^astro:',
11
+ '^@astrojs',
12
+ '^virtual:',
13
+ // Public Vite assets...
14
+ '^/',
15
+ ],
16
+ },
17
+ ],
18
+ 'unicorn/no-process-exit': 'off',
19
+ },
20
+ },
21
+ type: 'lib',
22
+ })
@@ -0,0 +1,13 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>Electron + Vite</title>
8
+ </head>
9
+ <body>
10
+ <div id="app"></div>
11
+ <script type="module" src="/src/main.ts"></script>
12
+ </body>
13
+ </html>
@@ -0,0 +1,3 @@
1
+ import { knipConfig } from '@kitschpatrol/knip-config'
2
+
3
+ export default knipConfig()
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 {{author-name}}
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,3 @@
1
+ import { mdatConfig } from '@kitschpatrol/mdat-config'
2
+
3
+ export default mdatConfig()
@@ -0,0 +1,61 @@
1
+ {
2
+ "name": "{{github-repository}}",
3
+ "version": "0.0.0",
4
+ "private": true,
5
+ "description": "An {{type}} project.",
6
+ "keywords": [
7
+ "{{type}}"
8
+ ],
9
+ "homepage": "https://github.com/{{github-owner}}/{{github-repository}}",
10
+ "bugs": "https://github.com/{{github-owner}}/{{github-repository}}/issues",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/{{github-owner}}/{{github-repository}}.git"
14
+ },
15
+ "license": "MIT",
16
+ "author": {
17
+ "name": "{{author-name}}",
18
+ "email": "{{author-email}}",
19
+ "url": "{{author-url}}"
20
+ },
21
+ "type": "module",
22
+ "main": "dist-electron/main.js",
23
+ "scripts": {
24
+ "build": "vite build && electron-builder",
25
+ "clean": "git rm -f pnpm-lock.yaml ; git clean -fdX",
26
+ "dev": "vite",
27
+ "fix": "ksc fix",
28
+ "lint": "ksc lint",
29
+ "release": "bumpp --commit 'Release: %s' && pnpm run build && electron-builder build --publish always",
30
+ "test": "echo \"Error: no test specified\" && exit 1"
31
+ },
32
+ "dependencies": {
33
+ "@types/node": "^20.19.24",
34
+ "lognow": "^0.2.1"
35
+ },
36
+ "devDependencies": {
37
+ "@kitschpatrol/shared-config": "^5.8.0",
38
+ "bumpp": "^10.3.1",
39
+ "electron": "^38.5.0",
40
+ "electron-builder": "^26.0.12",
41
+ "typescript": "~5.9.3",
42
+ "vite": "npm:rolldown-vite@7.1.17",
43
+ "vite-plugin-electron": "^0.29.0"
44
+ },
45
+ "packageManager": "pnpm@10.20.0",
46
+ "engines": {
47
+ "node": ">=22.18.0"
48
+ },
49
+ "pnpm": {
50
+ "onlyBuiltDependencies": [
51
+ "electron",
52
+ "electron-winstaller",
53
+ "esbuild",
54
+ "puppeteer",
55
+ "unrs-resolver"
56
+ ],
57
+ "overrides": {
58
+ "vite": "npm:rolldown-vite@7.1.17"
59
+ }
60
+ }
61
+ }
@@ -0,0 +1,4 @@
1
+ onlyBuiltDependencies:
2
+ - esbuild
3
+ - puppeteer
4
+ - unrs-resolver
@@ -0,0 +1,3 @@
1
+ import { prettierConfig } from '@kitschpatrol/prettier-config'
2
+
3
+ export default prettierConfig()
@@ -0,0 +1,35 @@
1
+ <svg
2
+ xmlns="http://www.w3.org/2000/svg"
3
+ xmlns:xlink="http://www.w3.org/1999/xlink"
4
+ aria-hidden="true"
5
+ role="img"
6
+ class="iconify iconify--logos"
7
+ width="31.88"
8
+ height="32"
9
+ preserveAspectRatio="xMidYMid meet"
10
+ viewBox="0 0 256 257"
11
+ ><defs><linearGradient
12
+ id="IconifyId1813088fe1fbc01fb466"
13
+ x1="-.828%"
14
+ x2="57.636%"
15
+ y1="7.652%"
16
+ y2="78.411%"
17
+ ><stop offset="0%" stop-color="#41D1FF" /><stop
18
+ offset="100%"
19
+ stop-color="#BD34FE"
20
+ /></linearGradient><linearGradient
21
+ id="IconifyId1813088fe1fbc01fb467"
22
+ x1="43.376%"
23
+ x2="50.316%"
24
+ y1="2.242%"
25
+ y2="89.03%"
26
+ ><stop offset="0%" stop-color="#FFEA83" /><stop offset="8.333%" stop-color="#FFDD35" /><stop
27
+ offset="100%"
28
+ stop-color="#FFA800"
29
+ /></linearGradient></defs><path
30
+ fill="url(#IconifyId1813088fe1fbc01fb466)"
31
+ d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"
32
+ /><path
33
+ fill="url(#IconifyId1813088fe1fbc01fb467)"
34
+ d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"
35
+ /></svg>
@@ -0,0 +1,29 @@
1
+ <!--+ Warning: Content inside HTML comment blocks was generated by mdat and may be overwritten. +-->
2
+
3
+ <!-- title -->
4
+
5
+ <!-- badges -->
6
+
7
+ <!-- short-description -->
8
+
9
+ ## Overview
10
+
11
+ Based on [electron-vite](https://github.com/caoxiemeihao/electron-vite-samples/tree/main/quick-start).
12
+
13
+ ## Getting started
14
+
15
+ ### Dependencies
16
+
17
+ ### Deployment
18
+
19
+ ## Maintainers
20
+
21
+ _List maintainer(s) for a repository, along with one way of contacting them (e.g. GitHub link or email)._
22
+
23
+ ## Acknowledgments
24
+
25
+ _State anyone or anything that significantly helped with the development of your project. State public contact hyper-links if applicable._
26
+
27
+ <!-- contributing -->
28
+
29
+ <!-- license -->
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Setup the counter on the button element
3
+ * @param element - The button element to setup the counter on
4
+ */
5
+ export function setupCounter(element: HTMLButtonElement) {
6
+ let counter = 0
7
+ const setCounter = (count: number) => {
8
+ counter = count
9
+ element.innerHTML = `count is ${counter}`
10
+ }
11
+ element.addEventListener('click', () => {
12
+ setCounter(counter + 1)
13
+ })
14
+ setCounter(0)
15
+ }
@@ -0,0 +1,27 @@
1
+ import './style.css'
2
+ import { log } from 'lognow/electron'
3
+ import { setupCounter } from './counter.ts'
4
+ import typescriptLogo from './typescript.svg'
5
+ import viteLogo from '/vite.svg'
6
+
7
+ log.info('Hello from Renderer!')
8
+
9
+ document.querySelector<HTMLDivElement>('#app')!.innerHTML = `
10
+ <div>
11
+ <a href="https://vite.dev" target="_blank">
12
+ <img src="${viteLogo}" class="logo" alt="Vite logo" />
13
+ </a>
14
+ <a href="https://www.typescriptlang.org/" target="_blank">
15
+ <img src="${typescriptLogo}" class="logo vanilla" alt="TypeScript logo" />
16
+ </a>
17
+ <h1>Vite + TypeScript</h1>
18
+ <div class="card">
19
+ <button id="counter" type="button"></button>
20
+ </div>
21
+ <p class="read-the-docs">
22
+ Click on the Vite and TypeScript logos to learn more
23
+ </p>
24
+ </div>
25
+ `
26
+
27
+ setupCounter(document.querySelector<HTMLButtonElement>('#counter')!)
@@ -0,0 +1,102 @@
1
+ :root {
2
+ font-family: system-ui, Helvetica, Arial, sans-serif;
3
+ font-weight: 400;
4
+ -webkit-font-smoothing: antialiased;
5
+ -moz-osx-font-smoothing: grayscale;
6
+ line-height: 1.5;
7
+ color: rgb(255 255 255 / 87%);
8
+ text-rendering: optimizelegibility;
9
+ color-scheme: light dark;
10
+ background-color: #242424;
11
+
12
+ font-synthesis: none;
13
+ }
14
+
15
+ a {
16
+ font-weight: 500;
17
+ color: #646cff;
18
+ text-decoration: inherit;
19
+ }
20
+
21
+ a:hover {
22
+ color: #535bf2;
23
+ }
24
+
25
+ body {
26
+ display: flex;
27
+ place-items: center;
28
+ min-width: 320px;
29
+ min-height: 100vh;
30
+ margin: 0;
31
+ }
32
+
33
+ h1 {
34
+ font-size: 3.2em;
35
+ line-height: 1.1;
36
+ }
37
+
38
+ #app {
39
+ max-width: 1280px;
40
+ margin: 0 auto;
41
+ padding: 2rem;
42
+ text-align: center;
43
+ }
44
+
45
+ .logo {
46
+ will-change: filter;
47
+ height: 6em;
48
+ padding: 1.5em;
49
+ transition: filter 300ms;
50
+ }
51
+
52
+ .logo:hover {
53
+ filter: drop-shadow(0 0 2em #646cffaa);
54
+ }
55
+
56
+ .logo.vanilla:hover {
57
+ filter: drop-shadow(0 0 2em #3178c6aa);
58
+ }
59
+
60
+ .card {
61
+ padding: 2em;
62
+ }
63
+
64
+ .read-the-docs {
65
+ color: #888;
66
+ }
67
+
68
+ button {
69
+ cursor: pointer;
70
+ padding: 0.6em 1.2em;
71
+ border: 1px solid transparent;
72
+ border-radius: 8px;
73
+ font-family: inherit;
74
+ font-size: 1em;
75
+ font-weight: 500;
76
+ background-color: #1a1a1a;
77
+ transition: border-color 0.25s;
78
+ }
79
+
80
+ button:hover {
81
+ border-color: #646cff;
82
+ }
83
+
84
+ button:focus,
85
+ button:focus-visible {
86
+ outline: 4px auto -webkit-focus-ring-color;
87
+ }
88
+
89
+ @media (prefers-color-scheme: light) {
90
+ :root {
91
+ color: #213547;
92
+ background-color: #ffffff;
93
+ }
94
+
95
+ a:hover {
96
+ color: #747bff;
97
+ }
98
+
99
+ button {
100
+ background-color: #f9f9f9;
101
+ }
102
+ }
@@ -0,0 +1,14 @@
1
+ <svg
2
+ xmlns="http://www.w3.org/2000/svg"
3
+ xmlns:xlink="http://www.w3.org/1999/xlink"
4
+ aria-hidden="true"
5
+ role="img"
6
+ class="iconify iconify--logos"
7
+ width="32"
8
+ height="32"
9
+ preserveAspectRatio="xMidYMid meet"
10
+ viewBox="0 0 256 256"
11
+ ><path fill="#007ACC" d="M0 128v128h256V0H0z" /><path
12
+ fill="#FFF"
13
+ d="m56.612 128.85l-.081 10.483h33.32v94.68h23.568v-94.68h33.321v-10.28c0-5.69-.122-10.444-.284-10.566c-.122-.162-20.4-.244-44.983-.203l-44.74.122l-.121 10.443Zm149.955-10.742c6.501 1.625 11.459 4.51 16.01 9.224c2.357 2.52 5.851 7.111 6.136 8.208c.08.325-11.053 7.802-17.798 11.988c-.244.162-1.22-.894-2.317-2.52c-3.291-4.795-6.745-6.867-12.028-7.233c-7.76-.528-12.759 3.535-12.718 10.321c0 1.992.284 3.17 1.097 4.795c1.707 3.536 4.876 5.649 14.832 9.956c18.326 7.883 26.168 13.084 31.045 20.48c5.445 8.249 6.664 21.415 2.966 31.208c-4.063 10.646-14.14 17.879-28.323 20.276c-4.388.772-14.79.65-19.504-.203c-10.28-1.828-20.033-6.908-26.047-13.572c-2.357-2.6-6.949-9.387-6.664-9.874c.122-.163 1.178-.813 2.356-1.504c1.138-.65 5.446-3.129 9.509-5.485l7.355-4.267l1.544 2.276c2.154 3.29 6.867 7.801 9.712 9.305c8.167 4.307 19.383 3.698 24.909-1.26c2.357-2.153 3.332-4.388 3.332-7.68c0-2.966-.366-4.266-1.91-6.501c-1.99-2.845-6.054-5.242-17.595-10.24c-13.206-5.69-18.895-9.224-24.096-14.832c-3.007-3.25-5.852-8.452-7.03-12.8c-.975-3.617-1.22-12.678-.447-16.335c2.723-12.76 12.353-21.659 26.25-24.3c4.51-.853 14.994-.528 19.424.569Z"
14
+ /></svg>
@@ -0,0 +1,3 @@
1
+ import { stylelintConfig } from '@kitschpatrol/stylelint-config'
2
+
3
+ export default stylelintConfig()
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "@kitschpatrol/typescript-config",
3
+ "compilerOptions": {
4
+ "types": ["vite/client", "vite-plugin-electron/electron-env.d.ts"]
5
+ },
6
+ // Includes project dot-files files for typescript-eslint integration
7
+ "include": ["**/*", "**/**.*"],
8
+ "exclude": ["**/dist/", "**/bin/"]
9
+ }
@@ -0,0 +1,15 @@
1
+ import { defineConfig } from 'vite'
2
+ import electron from 'vite-plugin-electron/simple'
3
+
4
+ export default defineConfig({
5
+ plugins: [
6
+ electron({
7
+ main: {
8
+ entry: 'electron/main.ts',
9
+ },
10
+ preload: {
11
+ input: 'electron/preload.ts',
12
+ },
13
+ }),
14
+ ],
15
+ })
@@ -11,3 +11,6 @@ public-hoist-pattern[]=*mdat*
11
11
  public-hoist-pattern[]=*prettier*
12
12
  public-hoist-pattern[]=*remark*
13
13
  public-hoist-pattern[]=*stylelint*
14
+
15
+ # Required for automated local publishing
16
+ //registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}
@@ -1,6 +1,8 @@
1
1
  import { remarkConfig } from '@kitschpatrol/remark-config'
2
2
 
3
3
  export default remarkConfig({
4
- // Useful if the repository is not yet pushed to a remote.
5
- rules: [['remarkValidateLinks', { repository: false }]],
4
+ rules: [
5
+ // Useful if the repository is not yet pushed to a remote.
6
+ ['remarkValidateLinks', { repository: false }],
7
+ ],
6
8
  })
@@ -2,8 +2,8 @@
2
2
  "explorer.fileNesting.enabled": true,
3
3
  "explorer.fileNesting.expand": false,
4
4
  "explorer.fileNesting.patterns": {
5
- "*.js": "*.ts.map, *.js.map, *.d.ts, *.d.ts.map, *.d.js.map",
6
- "*.ts": "*.ts.map, *.d.ts, *.d.ts.map",
5
+ "*.js": "${basename}.ts.map, ${basename}.js.map, ${basename}.d.ts, ${basename}.d.ts.map, ${basename}.d.js.map",
6
+ "*.ts": "${basename}.ts.map, ${basename}.d.ts, ${basename}.d.ts.map",
7
7
  ".env": ".env.*",
8
8
  "package.json": ".*ignore, .*rc, .*.js, .*.mjs, .*.cjs, .*.ts, .*.mts, .*.cts, .*.json, .*.jsonc, .*.json5, .*.yml, .*.yaml, *config.js, *config.mjs, *config.cjs, *config.ts, *config.mts, *config.cts, *config.json, *config.jsonc, *config.json5, *config.yml, *config.yaml, pnpm*, workspace*, yarn*, lerna.json, netlify.toml, package-lock.json, turbo.json, vercel.json, wrangler.toml, yarn.lock",
9
9
  "readme.md": "authors*, backers*, changelog*, citation*, code_of_conduct*, contributing*, contributors*, copying*, credits*, governance*, history*, license*, maintainers*, release_notes*, security*, sponsors*"
@@ -20,12 +20,12 @@
20
20
  "type": "module",
21
21
  "exports": {
22
22
  ".": {
23
- "import": "./dist/lib/index.js",
24
- "types": "./dist/lib/index.d.ts"
23
+ "types": "./dist/index.d.ts",
24
+ "import": "./dist/index.js"
25
25
  }
26
26
  },
27
- "main": "./dist/lib/index.js",
28
- "module": "./dist/lib/index.js",
27
+ "main": "./dist/index.js",
28
+ "module": "./dist/index.js",
29
29
  "files": [
30
30
  "dist/*"
31
31
  ],
@@ -34,21 +34,20 @@
34
34
  "clean": "git rm -f pnpm-lock.yaml ; git clean -fdX",
35
35
  "fix": "ksc fix",
36
36
  "lint": "ksc lint",
37
- "release": "bumpp --commit 'Release: %s' && pnpm run build && pnpm publish --otp $({{npm-otp-command}})",
37
+ "release": "bumpp --commit 'Release: %s' && pnpm run build && NPM_AUTH_TOKEN=$({{npm-auth-command}}) && pnpm publish",
38
38
  "test": "echo \"Error: no test specified\" && exit 1"
39
39
  },
40
40
  "dependencies": {
41
- "@types/node": "^20.19.21",
42
- "@types/yargs": "^17.0.33",
43
- "yargs": "^17.7.2"
41
+ "@types/node": "^20.19.24",
42
+ "lognow": "^0.2.1"
44
43
  },
45
44
  "devDependencies": {
46
- "@kitschpatrol/shared-config": "^5.7.2",
45
+ "@kitschpatrol/shared-config": "^5.8.0",
47
46
  "bumpp": "^10.3.1",
48
- "tsdown": "^0.15.7",
47
+ "tsdown": "^0.15.12",
49
48
  "typescript": "~5.9.3"
50
49
  },
51
- "packageManager": "pnpm@10.18.3",
50
+ "packageManager": "pnpm@10.20.0",
52
51
  "engines": {
53
52
  "node": ">=20.19.0"
54
53
  },