Skip to content

Commit

Permalink
Squashed 'extensions/src/hello-someone/' changes from 5680aa4c..471569fe
Browse files Browse the repository at this point in the history
471569fe Add contributions folder for menus.json (#60)
12bb4523 Add contributions folder for menus.json
59dd379b npm updates (#59)

git-subtree-dir: extensions/src/hello-someone
git-subtree-split: 471569fe12242a2e2000cd4c3152242e5fc1db94
  • Loading branch information
lyonsil committed Feb 9, 2024
1 parent 7288534 commit 4583293
Show file tree
Hide file tree
Showing 9 changed files with 4,846 additions and 2,810 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ module.exports = {
},
],
parserOptions: {
ecmaVersion: 2020,
ecmaVersion: 2022,
sourceType: 'module',
project: './tsconfig.json',
project: './tsconfig.lint.json',
tsconfigRootDir: __dirname,
createDefaultProgram: true,
},
Expand Down
1 change: 0 additions & 1 deletion .stylelintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ module.exports = {
],
rules: {
'color-named': null,
'function-parentheses-space-inside': null,
'max-nesting-depth': 2,
'no-descending-specificity': null,
'selector-max-compound-selectors': 4,
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ The general file structure is as follows:
- `*.web-view.tsx` files will be treated as React WebViews
- `*.web-view.html` files are a conventional way to provide HTML WebViews (no special functionality)
- `assets/` contains asset files the extension and its WebViews can retrieve using the `papi-extension:` protocol. It is copied into the build folder
- `contributions/` contains JSON files the platform uses to extend data structures for things like menus and settings. The JSON files are referenced from the manifest
- `public/` contains other static files that are copied into the build folder
- `dist/` is a generated folder containing the built extension files
- `release/` is a generated folder containing a zip of the built extension files
Expand Down
17 changes: 17 additions & 0 deletions contributions/menus.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"mainMenu": {
"columns": {},
"groups": {},
"items": []
},
"defaultWebViewTopMenu": {
"columns": {},
"groups": {},
"items": []
},
"defaultWebViewContextMenu": {
"groups": {},
"items": []
},
"webViewMenus": {}
}
1 change: 1 addition & 0 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
"license": "MIT",
"main": "src/main.ts",
"types": "src/types/paranext-extension-template.d.ts",
"menus": "contributions/menus.json",
"activationEvents": []
}
Loading

0 comments on commit 4583293

Please sign in to comment.