mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-30 11:26:24 +02:00
init
This commit is contained in:
parent
24f641347d
commit
63146aa9b7
86 changed files with 18766 additions and 0 deletions
70
extension/README.md
Normal file
70
extension/README.md
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
# Chrome Extension TypeScript Starter
|
||||
|
||||

|
||||
|
||||
Chrome Extension, TypeScript and Visual Studio Code
|
||||
|
||||
## Prerequisites
|
||||
|
||||
* [node + npm](https://nodejs.org/) (Current Version)
|
||||
|
||||
## Option
|
||||
|
||||
* [Visual Studio Code](https://code.visualstudio.com/)
|
||||
|
||||
## Includes the following
|
||||
|
||||
* TypeScript
|
||||
* Webpack
|
||||
* React
|
||||
* Jest
|
||||
* Example Code
|
||||
* Chrome Storage
|
||||
* Options Version 2
|
||||
* content script
|
||||
* count up badge number
|
||||
* background
|
||||
|
||||
## Project Structure
|
||||
|
||||
* src/typescript: TypeScript source files
|
||||
* src/assets: static files
|
||||
* dist: Chrome Extension directory
|
||||
* dist/js: Generated JavaScript files
|
||||
|
||||
## Setup
|
||||
|
||||
```
|
||||
npm install
|
||||
```
|
||||
|
||||
## Import as Visual Studio Code project
|
||||
|
||||
...
|
||||
|
||||
## Build
|
||||
|
||||
```
|
||||
npm run build
|
||||
```
|
||||
|
||||
## Build in watch mode
|
||||
|
||||
### terminal
|
||||
|
||||
```
|
||||
npm run watch
|
||||
```
|
||||
|
||||
### Visual Studio Code
|
||||
|
||||
Run watch mode.
|
||||
|
||||
type `Ctrl + Shift + B`
|
||||
|
||||
## Load extension to chrome
|
||||
|
||||
Load `dist` directory
|
||||
|
||||
## Test
|
||||
`npx jest` or `npm run test`
|
||||
Loading…
Add table
Add a link
Reference in a new issue