https://github.com/screenly/chrome-extension
Chrome Extension for Screenly.
https://github.com/screenly/chrome-extension
chrome-extension
Last synced: 5 months ago
JSON representation
Chrome Extension for Screenly.
- Host: GitHub
- URL: https://github.com/screenly/chrome-extension
- Owner: Screenly
- License: apache-2.0
- Created: 2024-11-08T10:15:31.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2024-11-11T19:15:02.000Z (6 months ago)
- Last Synced: 2024-11-11T19:27:33.971Z (6 months ago)
- Topics: chrome-extension
- Language: JavaScript
- Homepage: https://screenly.io
- Size: 786 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/Screenly/Chrome-Extension/actions/workflows/build.yaml)
[](https://app.sbomify.com/component/NwxGnn8u8K)# Develop
The extension is built using webpack.```bash
$ docker compose up
```Now load the content of the `dist/` folder as an unpacked extension in Chrome. As you make changes to the code, dist is automatically rebuilt.
# Distribute
```bash
$ docker compose build
$ docker run \
--rm -ti \
-v $(pwd):/app:delegated \
-v /app/node_modules \
sce_webpack:latest \
/bin/bash -c "npx webpack --config webpack.prod.js"(cd dist && zip -r ../screenly-chrome-extension-0.3.zip *)
```# Unit testing
```bash
$ docker compose build
$ docker run \
--rm -ti \
-v $(pwd):/app:delegated \
-v /app/node_modules \
sce_webpack:latest \
/bin/bash -c "npx webpack --config webpack.dev.js && npm test"```
1. Build the extension in dev mode.
2. Load the extension as an unpacked extension from the `dist` folder.
3. Find the extension URL and then open `chrome-extension://extension-id/test/tests.html` in Chrome.