-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 00d5b2b
Showing
96 changed files
with
23,160 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# EditorConfig is awesome: http://EditorConfig.org | ||
|
||
# https://github.com/jokeyrhyme/standard-editorconfig | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
# defaults | ||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
indent_size = 2 | ||
indent_style = space | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/** | ||
* TODO: Rewrite this config to ESM | ||
* But currently electron-builder doesn't support ESM configs | ||
* @see https://github.com/develar/read-config-file/issues/10 | ||
*/ | ||
|
||
/** | ||
* @type {() => import('electron-builder').Configuration} | ||
* @see https://www.electron.build/configuration/configuration | ||
*/ | ||
module.exports = async function () { | ||
const {getVersion} = await import('./version/getVersion.mjs'); | ||
|
||
return { | ||
directories: { | ||
output: 'dist', | ||
buildResources: 'buildResources', | ||
}, | ||
files: ['packages/**/dist/**'], | ||
extraMetadata: { | ||
version: getVersion(), | ||
}, | ||
|
||
// Specify linux target just for disabling snap compilation | ||
linux: { | ||
target: 'deb', | ||
}, | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.DS_Store | ||
node_modules | ||
/build | ||
dist | ||
/.svelte-kit | ||
/package | ||
.env | ||
.env.* | ||
!.env.example | ||
|
||
# Ignore files for PNPM, NPM and YARN | ||
pnpm-lock.yaml | ||
package-lock.json | ||
yarn.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
module.exports = { | ||
root: true, | ||
parser: '@typescript-eslint/parser', | ||
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'], | ||
plugins: ['svelte3', '@typescript-eslint'], | ||
ignorePatterns: ['*.cjs'], | ||
overrides: [{files: ['*.svelte'], processor: 'svelte3/svelte3'}], | ||
rules: { | ||
'@typescript-eslint/no-unused-vars': ['error', {argsIgnorePattern: '^_'}], | ||
}, | ||
settings: { | ||
'svelte3/typescript': () => require('typescript'), | ||
}, | ||
parserOptions: { | ||
sourceType: 'module', | ||
ecmaVersion: 2020, | ||
}, | ||
env: { | ||
browser: true, | ||
es2017: true, | ||
node: true, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"root": true, | ||
"env": { | ||
"es2021": true, | ||
"node": true, | ||
"browser": false | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
/** @see https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin#recommended-configs */ | ||
"plugin:@typescript-eslint/recommended" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 12, | ||
"sourceType": "module" | ||
}, | ||
"plugins": ["@typescript-eslint"], | ||
"ignorePatterns": ["node_modules/**", "**/dist/**"], | ||
"rules": { | ||
"@typescript-eslint/no-unused-vars": [ | ||
"error", | ||
{ | ||
"argsIgnorePattern": "^_", | ||
"varsIgnorePattern": "^_" | ||
} | ||
], | ||
"@typescript-eslint/no-var-requires": "off", | ||
"@typescript-eslint/consistent-type-imports": "error", | ||
/** | ||
* Having a semicolon helps the optimizer interpret your code correctly. | ||
* This avoids rare errors in optimized code. | ||
* @see https://twitter.com/alex_kozack/status/1364210394328408066 | ||
*/ | ||
"semi": ["error", "always"], | ||
/** | ||
* This will make the history of changes in the hit a little cleaner | ||
*/ | ||
"comma-dangle": ["warn", "always-multiline"], | ||
/** | ||
* Just for beauty | ||
*/ | ||
"quotes": [ | ||
"warn", | ||
"single", | ||
{ | ||
"avoidEscape": true | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.github/actions/**/*.js linguist-detectable=false | ||
scripts/*.js linguist-detectable=false | ||
*.config.js linguist-detectable=false | ||
* text=auto eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# These are supported funding model platforms | ||
|
||
custom: ["https://www.buymeacoffee.com/kozack/", "https://send.monobank.ua/6SmojkkR9i"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: bug | ||
assignees: cawa-93 | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
|
||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Questions & Discussions | ||
url: https://github.com/cawa-93/vite-electron-builder/discussions/categories/q-a | ||
about: Use GitHub discussions for message-board style questions and discussions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: enhancement | ||
assignees: cawa-93 | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"extends": [ | ||
"config:base", | ||
":semanticCommits", | ||
":semanticCommitTypeAll(deps)", | ||
":semanticCommitScopeDisabled", | ||
":automergeAll", | ||
":automergeBranch", | ||
":disableDependencyDashboard", | ||
":pinVersions", | ||
":onlyNpm", | ||
":label(dependencies)" | ||
], | ||
"packageRules": [ | ||
{ | ||
"groupName": "Vite packages", | ||
"matchUpdateTypes": "major", | ||
"matchSourceUrlPrefixes": [ | ||
"https://github.com/vitejs/" | ||
] | ||
} | ||
], | ||
"gitNoVerify": [ | ||
"commit", | ||
"push" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# This workflow is the entry point for all CI processes. | ||
# It is from here that all other workflows are launched. | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
- 'renovate/**' | ||
paths-ignore: | ||
- '.github/**' | ||
- '!.github/workflows/ci.yml' | ||
- '!.github/workflows/typechecking.yml' | ||
- '!.github/workflows/tests.yml' | ||
- '!.github/workflows/release.yml' | ||
- '**.md' | ||
- .editorconfig | ||
- .gitignore | ||
- '.idea/**' | ||
- '.vscode/**' | ||
pull_request: | ||
paths-ignore: | ||
- '.github/**' | ||
- '!.github/workflows/ci.yml' | ||
- '!.github/workflows/typechecking.yml' | ||
- '!.github/workflows/tests.yml' | ||
- '!.github/workflows/release.yml' | ||
- '**.md' | ||
- .editorconfig | ||
- .gitignore | ||
- '.idea/**' | ||
- '.vscode/**' | ||
|
||
concurrency: | ||
group: ci-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
typechecking: | ||
uses: ./.github/workflows/typechecking.yml | ||
tests: | ||
uses: ./.github/workflows/tests.yml | ||
draft_release: | ||
with: | ||
dry-run: ${{ github.event_name != 'push' || github.ref_name != 'main' }} | ||
needs: [ typechecking, tests ] | ||
uses: ./.github/workflows/release.yml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
on: | ||
workflow_dispatch: | ||
push: | ||
paths: | ||
- '**.js' | ||
- '**.mjs' | ||
- '**.cjs' | ||
- '**.jsx' | ||
- '**.ts' | ||
- '**.mts' | ||
- '**.cts' | ||
- '**.tsx' | ||
- '**.svelte' | ||
- '**.json' | ||
pull_request: | ||
paths: | ||
- '**.js' | ||
- '**.mjs' | ||
- '**.cjs' | ||
- '**.jsx' | ||
- '**.ts' | ||
- '**.mts' | ||
- '**.cts' | ||
- '**.tsx' | ||
- '**.svelte' | ||
- '**.json' | ||
|
||
concurrency: | ||
group: lint-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
defaults: | ||
run: | ||
shell: 'bash' | ||
|
||
jobs: | ||
eslint: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 # Need for npm >=7.7 | ||
cache: 'npm' | ||
|
||
- run: npm ci | ||
env: | ||
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1 | ||
|
||
- run: npm run lint --if-present | ||
|
||
# This job just check code style for in-template contributions. | ||
code-style: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 # Need for npm >=7.7 | ||
cache: 'npm' | ||
|
||
- run: npm i prettier | ||
- run: npx prettier --check "**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,svelte,json}" |
Oops, something went wrong.