Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial implementation of a browser extension to add puzzles. #2392

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
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
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
eslint/dist
extension/dist
node_modules
tests/node_modules
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ node_modules
npm-debug.log
jsconfig.json
.vscode/launch.json
extension/dist
extension/tmp
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
.meteor
eslint/dist
eslint/dist
26 changes: 26 additions & 0 deletions extension/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"overrides": [
{
"files": ["**"],
"parserOptions": {
"tsconfigRootDir": "extension",
"project": "./tsconfig.json"
},
"rules": {
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": [
// All webpack config dependencies are dev dependencies, even when imported.
"**/webpack.*.mjs"
]
}
],
// Disable rules which require "npm install" to be run.
// TODO: Enable these if possible once we align on project organization.
"@typescript-eslint/restrict-plus-operands": ["off", {}],
"import/no-unresolved": ["off"]
}
}
]
}
31 changes: 31 additions & 0 deletions extension/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Jolly Roger Browser Extension

## Project Structure

- src: TypeScript source files
- public: static files
- dist/chrome: output Chrome Extension directory
- dist/firefox: output Firefox Extension directory
- dist/{browser}/js: Generated JavaScript files

## Setup

```
npm install
```

## Build for production

```
npm run build
```

## Build for development (in watch mode)x

```
npm run watch
```

## Load extension to browser

Load manifest.json from the appropriate `dist` subdirectory (`chrome` or `firefox`)
Loading
Loading