Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
-v $(pwd)/artifacts:/app/artifacts:delegated \
-v /app/artifacts/node_modules \
screenly-browser-extension:latest \
/bin/bash -c "npm run build && cp -r dist/ artifacts/"
/bin/bash -c "bun run build && cp -r dist/ artifacts/"

Comment on lines 49 to 53
- name: Compress
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ jobs:
-v $(pwd):/app:delegated \
-v /app/node_modules \
screenly-browser-extension:latest \
/bin/bash -c "npx webpack --config webpack.dev.js && npm run test"
/bin/bash -c "bunx webpack --config webpack.dev.js && bun run test"
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM node:22
FROM oven/bun:1.4.0

WORKDIR /app
RUN mkdir -p /output
RUN chmod -R 777 /output

ADD package.json /app/package.json
ADD package-lock.json /app/package-lock.json
RUN npm install --quiet
ADD bun.lock /app/bun.lock
RUN bun install

ADD . /app
2 changes: 1 addition & 1 deletion bin/package_extension.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ docker run \
-v $(pwd):/app:delegated \
-v /app/node_modules \
screenly-browser-extension:latest \
/bin/bash -c "npx webpack --config webpack.prod.js"
/bin/bash -c "bunx webpack --config webpack.prod.js"

(cd dist && zip -r ../screenly-$PLATFORM-extension-$VERSION.zip *)
2 changes: 1 addition & 1 deletion bin/run_eslint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ docker run \
-v $(pwd):/app:delegated \
-v /app/node_modules \
screenly-browser-extension:latest \
npm run lint:check
bun run lint:check
2 changes: 1 addition & 1 deletion bin/run_formatter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ docker run \
-v $(pwd):/app:delegated \
-v /app/node_modules \
screenly-browser-extension:latest \
npm run format:${MODE}
bun run format:${MODE}
2 changes: 1 addition & 1 deletion bin/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ docker run \
-v $(pwd):/app:delegated \
-v /app/node_modules \
screenly-browser-extension:latest \
/bin/bash -c "npm test"
/bin/bash -c "bun run test"

1,703 changes: 1,703 additions & 0 deletions bun.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
services:
browser-extension:
build: .
command: npx webpack --watch --config webpack.dev.js
command: bunx webpack --watch --config webpack.dev.js
image: screenly-browser-extension:latest
volumes:
- .:/app:delegated
Expand Down
13 changes: 8 additions & 5 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@ const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
allConfig: js.configs.all,
});

export default [
...compat.extends(
'eslint:recommended',
'plugin:react/recommended',
'plugin:jasmine/recommended',
'plugin:@typescript-eslint/recommended'
),
...tseslint.configs['flat/recommended'],
{
ignores: [
'src/lib/vendor/',
'node_modules/',
'dist/',
'src/test/environment.js'
'src/test/environment.js',
],
},
{
Expand Down Expand Up @@ -66,8 +66,11 @@ export default [
rules: {
'react/prop-types': 'off',
'@typescript-eslint/explicit-function-return-type': 'error',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'@typescript-eslint/no-unused-vars': [
'error',
{ argsIgnorePattern: '^_' },
],
'no-undef': 'error',
},
}
},
];
Loading