Skip to content

Commit

Permalink
Vite rewrite (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
SavageCore authored Sep 23, 2023
1 parent af5e540 commit ad921cf
Show file tree
Hide file tree
Showing 86 changed files with 6,693 additions and 23,144 deletions.
1 change: 0 additions & 1 deletion .browserslistrc

This file was deleted.

9 changes: 3 additions & 6 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
# Editor configuration, see http://editorconfig.org
root = true

[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4

[{package.json,.travis.yml,.github/workflows/*.yml}]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

53 changes: 34 additions & 19 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,21 +1,36 @@
{
"parserOptions": {
"ecmaVersion": 2019,
"sourceType": "module"
},
"env": {
"es6": true,
"browser": true
},
"plugins": [
"svelte3",
"prettier"
],
"extends": ["prettier"],
"overrides": [
{
"files": ["**/*.svelte"],
"processor": "svelte3/svelte3"
}
]
"root": true,
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:svelte/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2020,
"extraFileExtensions": [
".svelte"
]
},
"env": {
"browser": true,
"es2017": true,
"node": true
},
"overrides": [
{
"files": [
"*.svelte"
],
"parser": "svelte-eslint-parser",
"parserOptions": {
"parser": "@typescript-eslint/parser"
}
}
]
}
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "npm" #
directory: "/"
schedule:
interval: "weekly"
19 changes: 3 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,14 @@ jobs:
- name: Setup Node.js 🛠️
uses: actions/setup-node@v3
with:
node-version: 18

- name: Update npm 📦
run: npm install -g npm@latest

- name: Update node-gyp 🔨
run: npm install -g node-gyp@latest

- name: Find and Replace
uses: jacobtomlinson/gha-find-replace@v3
with:
find: "#{GH_COMMIT_HASH}#"
replace: "${{ github.sha }}"
regex: false
node-version: 'lts/Hydrogen'

- name: Install and Build 🔧
run: |
npm ci
NODE_OPTIONS=--openssl-legacy-provider npm run build
npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: public
folder: dist
5 changes: 1 addition & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@ jobs:
- name: Setup Node.js 🛠️
uses: actions/setup-node@v3
with:
node-version: 18

- name: Update npm 📦
run: npm install -g npm@latest
node-version: 'lts/Hydrogen'

- name: Install dependencies 📦
run: |
Expand Down
74 changes: 19 additions & 55 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,61 +4,25 @@ logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
!.vscode/settings.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# webpack build directory
public

#history
.history
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"svelteSortOrder": "options-scripts-markup-styles",
"svelteStrictMode": true,
"svelteAllowShorthand": true,
"svelteIndentScriptAndStyle": true,
"singleQuote": true,
"plugins": ["prettier-plugin-svelte", "prettier-plugin-css-order"]
}
1 change: 0 additions & 1 deletion .test.env

This file was deleted.

9 changes: 9 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"recommendations": [
"svelte.svelte-vscode",
"esbenp.prettier-vscode",
"ZixuanChen.vitest-explorer",
"lokalise.i18n-ally",
"dbaeumer.vscode-eslint"
]
}
24 changes: 24 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"i18n-ally.localesPaths": [
"src/locales"
],
"typescript.tsdk": "node_modules\\typescript\\lib",
"i18n-ally.keystyle": "nested",
"editor.formatOnSave": true,
"eslint.enable": true,
"eslint.validate": [
"svelte"
],
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[svelte]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[scss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

12 changes: 0 additions & 12 deletions babel.config.js

This file was deleted.

15 changes: 15 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!doctype html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>PD3 Vault Cracker</title>
</head>

<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>

</html>
16 changes: 0 additions & 16 deletions jest.config.js

This file was deleted.

29 changes: 0 additions & 29 deletions jest.setup.js

This file was deleted.

Loading

0 comments on commit ad921cf

Please sign in to comment.