https://github.com/ducdhm/chrome-extension-typescript-starter
https://github.com/ducdhm/chrome-extension-typescript-starter
chrome typescript
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ducdhm/chrome-extension-typescript-starter
- Owner: ducdhm
- License: mit
- Created: 2020-11-28T05:18:36.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-01T15:58:37.000Z (over 5 years ago)
- Last Synced: 2025-04-25T21:02:38.314Z (about 1 year ago)
- Topics: chrome, typescript
- Language: JavaScript
- Homepage:
- Size: 33.2 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Chrome Extension TypeScript Starter
Chrome Extension, TypeScript
## Prerequisites
* [node + npm](https://nodejs.org/) (Current Version)
## Includes the following
* TypeScript
* Webpack
* Moment.js
* jQuery
* 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
```
...
## Build
```
npm run build
```
## Build in watch mode
### terminal
```
npm run watch
```
## Load extension to chrome
Load `dist` directory
## Test
`npx jest` or `npm run test`