Skip to content

Commit

Permalink
chore: update vite dev and build process
Browse files Browse the repository at this point in the history
  • Loading branch information
quoid committed May 1, 2023
1 parent 7b49515 commit 58d6530
Show file tree
Hide file tree
Showing 18 changed files with 1,253 additions and 1,189 deletions.
9 changes: 6 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,13 @@ ehthumbs.db
Thumbs.db

# xcode
xcuserdata/
*.xcuserstate
*.dev.xcconfig
*.xcuserstate
**/Safari-Extension/Resources/*.html
**/Safari-Extension/Resources/*.js
**/Safari-Extension/Resources/assets/**/*
XCBuildData
xcode/**/build/
xcode/**/dist/
# xcode/Userscripts-iOS/Base.lproj/Main.html
xcuserdata/
# xcode/Userscripts-iOS/Base.lproj/Main.html
14 changes: 0 additions & 14 deletions entry-page.html

This file was deleted.

14 changes: 0 additions & 14 deletions entry-popup.html

This file was deleted.

26 changes: 0 additions & 26 deletions index.html

This file was deleted.

11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,15 @@
"private": true,
"type": "module",
"scripts": {
"build:content": "VITE_ENTRY=content vite build",
"build": "vite build && VITE_ENTRY=content vite build",
"dev:page": "VITE_ENTRY=page vite",
"dev:popup": "VITE_ENTRY=popup vite",
"dev": "vite",
"build": "vite build",
"lint-js": "eslint ./",
"lint-css": "stylelint '**/*.{css,svelte}'"
"format": "prettier --write '**/*.{js,ts,css,svelte}'",
"lint:css": "stylelint '**/*.{css,svelte}'",
"lint:js": "eslint ./ --max-warnings 10",
"preview": "vite preview"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^2.0.3",
Expand Down
37 changes: 0 additions & 37 deletions src/App.svelte

This file was deleted.

82 changes: 0 additions & 82 deletions src/app.css

This file was deleted.

8 changes: 0 additions & 8 deletions src/main.js

This file was deleted.

14 changes: 14 additions & 0 deletions src/page/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="color-scheme" content="dark" />
<title>Userscripts page</title>
</head>
<body>
<noscript>Please enable Javascript to use this app</noscript>
<div id="app"></div>
<script type="module" src="./main.js"></script>
</body>
</html>
14 changes: 14 additions & 0 deletions src/popup/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="color-scheme" content="dark" />
<title>Userscripts popup</title>
</head>
<body>
<noscript>Please enable Javascript to use this app</noscript>
<div id="app"></div>
<script type="module" src="./main.js"></script>
</body>
</html>
Loading

0 comments on commit 58d6530

Please sign in to comment.