Skip to content

Commit 0209733

Browse files
authored
Merge pull request #20 from MODSetter/dev
feat: MonoRepo
2 parents e8d18d7 + 32ec581 commit 0209733

File tree

147 files changed

+43822
-9
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+43822
-9
lines changed

.gitmodules

Lines changed: 0 additions & 6 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ After filling in your SurfSense API key you should be able to use extension now.
214214
---
215215
### **FrontEnd**
216216

217-
- **Next.js 15.2.0**: React framework featuring App Router, server components, automatic code-splitting, and optimized rendering.
217+
- **Next.js 15.2.3**: React framework featuring App Router, server components, automatic code-splitting, and optimized rendering.
218218

219219
- **React 19.0.0**: JavaScript library for building user interfaces.
220220

ss-cross-browser-extension

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
PLASMO_PUBLIC_API_SECRET_KEY = "surfsense"
2+
PLASMO_PUBLIC_BACKEND_URL = "http://127.0.0.1:8000"
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# name: "Submit to Web Store"
2+
# on:
3+
# workflow_dispatch:
4+
5+
# jobs:
6+
# build:
7+
# runs-on: ubuntu-latest
8+
# steps:
9+
# - uses: actions/checkout@v3
10+
# - name: Cache pnpm modules
11+
# uses: actions/cache@v3
12+
# with:
13+
# path: ~/.pnpm-store
14+
# key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
15+
# restore-keys: |
16+
# ${{ runner.os }}-
17+
# - uses: pnpm/action-setup@v2.2.4
18+
# with:
19+
# version: latest
20+
# run_install: true
21+
# - name: Use Node.js 16.x
22+
# uses: actions/setup-node@v3.4.1
23+
# with:
24+
# node-version: 16.x
25+
# cache: "pnpm"
26+
# - name: Build the extension
27+
# run: pnpm build
28+
# - name: Package the extension into a zip artifact
29+
# run: pnpm package
30+
# - name: Browser Platform Publish
31+
# uses: PlasmoHQ/bpp@v3
32+
# with:
33+
# keys: ${{ secrets.SUBMIT_KEYS }}
34+
# artifact: build/chrome-mv3-prod.zip
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
2+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
3+
4+
# dependencies
5+
/node_modules
6+
/.pnp
7+
.pnp.js
8+
9+
# testing
10+
/coverage
11+
12+
# misc
13+
.DS_Store
14+
*.pem
15+
16+
# debug
17+
npm-debug.log*
18+
yarn-debug.log*
19+
yarn-error.log*
20+
.pnpm-debug.log*
21+
22+
# local env files
23+
.env*.local
24+
25+
out/
26+
build/
27+
dist/
28+
29+
# plasmo
30+
.plasmo
31+
32+
# typescript
33+
.tsbuildinfo
34+
35+
/trash
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/**
2+
* @type {import('prettier').Options}
3+
*/
4+
export default {
5+
printWidth: 80,
6+
tabWidth: 2,
7+
useTabs: false,
8+
semi: false,
9+
singleQuote: false,
10+
trailingComma: "none",
11+
bracketSpacing: true,
12+
bracketSameLine: true,
13+
plugins: ["@ianvs/prettier-plugin-sort-imports"],
14+
importOrder: [
15+
"<BUILTIN_MODULES>", // Node.js built-in modules
16+
"<THIRD_PARTY_MODULES>", // Imports not matched by other special words or groups.
17+
"", // Empty line
18+
"^@plasmo/(.*)$",
19+
"",
20+
"^@plasmohq/(.*)$",
21+
"",
22+
"^~(.*)$",
23+
"",
24+
"^[./]"
25+
]
26+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# SurfSense Cross Browser Extension
2+
3+
Use this guide to build for your browser https://docs.plasmo.com/framework/workflows/build
4+
5+
This is a [Plasmo extension](https://docs.plasmo.com/) project bootstrapped with [`plasmo init`](https://www.npmjs.com/package/plasmo).
6+
7+
## Getting Started
8+
9+
First, run the development server:
10+
11+
```bash
12+
pnpm dev
13+
# or
14+
npm run dev
15+
```
16+
17+
Open your browser and load the appropriate development build. For example, if you are developing for the chrome browser, using manifest v3, use: `build/chrome-mv3-dev`.
18+
19+
You can start editing the popup by modifying `popup.tsx`. It should auto-update as you make changes. To add an options page, simply add a `options.tsx` file to the root of the project, with a react component default exported. Likewise to add a content page, add a `content.ts` file to the root of the project, importing some module and do some logic, then reload the extension on your browser.
20+
21+
For further guidance, [visit our Documentation](https://docs.plasmo.com/)
22+
23+
## Making production build
24+
25+
Run the following:
26+
27+
```bash
28+
pnpm build
29+
# or
30+
npm run build
31+
```
32+
33+
This should create a production bundle for your extension, ready to be zipped and published to the stores.
34+
35+
## Submit to the webstores
36+
37+
The easiest way to deploy your Plasmo extension is to use the built-in [bpp](https://bpp.browser.market) GitHub action. Prior to using this action however, make sure to build your extension and upload the first version to the store to establish the basic credentials. Then, simply follow [this setup instruction](https://docs.plasmo.com/framework/workflows/submit) and you should be on your way for automated submission!
5.68 KB
Loading
5.55 KB
Loading

0 commit comments

Comments
 (0)