Skip to content

Commit

Permalink
added web-ext packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
reedHam committed Apr 24, 2022
1 parent d4ca2ed commit 66cd045
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"start": "vite",
"dev": "vite",
"build": "vite build && cp -r ./build /mnt/e/extentions",
"build": "vite build && web-ext build -s ./build/dist -a ./build/",
"serve": "vite preview"
},
"license": "MIT",
Expand All @@ -17,6 +17,7 @@
},
"dependencies": {
"solid-js": "^1.3.13",
"web-ext": "^6.8.0",
"webext-bridge": "^5.0.4"
}
}
3 changes: 3 additions & 0 deletions src/background/background.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/**
* The background script for the extension is responsible for sending requests to the servers using fetch.
*/
3 changes: 3 additions & 0 deletions src/scripts/youtube.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/**
* Responsible for parsing youtube for specific data, e.g. urls, tags, comments, etc.
*/
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"jsx": "preserve",
"jsxImportSource": "solid-js",
"types": ["vite/client"],
"noEmit": true,
"isolatedModules": true
"noEmit": true
}
}
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default defineConfig({
}),
],
build: {
outDir: path.resolve(__dirname, "build"),
outDir: path.resolve(__dirname, "build/dist"),
target: 'esnext',
polyfillDynamicImport: false,
emptyOutDir: true,
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3510,7 +3510,7 @@ wcwidth@^1.0.0:
dependencies:
defaults "^1.0.3"

web-ext@^6.5.0:
web-ext@^6.5.0, web-ext@^6.8.0:
version "6.8.0"
resolved "https://registry.yarnpkg.com/web-ext/-/web-ext-6.8.0.tgz#bc8d1ee478a0a1444f48159e80d492f7bf2fb9fc"
integrity sha512-qZ3a4YVs0Vdqet44QRZEcNUQznkrfhsAkSOnZp57O4T4A9Bo3pamePSBeRqdPdJv9GF8ntKG84o3eV0MrEvLbw==
Expand Down

0 comments on commit 66cd045

Please sign in to comment.