Skip to content

Commit

Permalink
Fix up readme
Browse files Browse the repository at this point in the history
  • Loading branch information
vpetersson committed Nov 8, 2024
1 parent 167c1f0 commit 43d2028
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
Develop
-------
# Develop

The extension is built using webpack.

```
docker-compose up
```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
----------
# Distribute

```
docker-compose build
docker run \
```bash
$ docker compose build
$ docker run \
--rm -ti \
-v $(pwd):/app:delegated \
-v /app/node_modules \
Expand All @@ -24,12 +22,11 @@ docker run \
(cd dist && zip -r ../screenly-chrome-extension-0.3.zip *)
```

Unit testing
------------
# Unit testing

```
docker-compose build
docker run \
```bash
$ docker compose build
$ docker run \
--rm -ti \
-v $(pwd):/app:delegated \
-v /app/node_modules \
Expand All @@ -40,4 +37,4 @@ docker run \

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.
3. Find the extension URL and then open `chrome-extension://extension-id/test/tests.html` in Chrome.

0 comments on commit 43d2028

Please sign in to comment.