Skip to content

Commit

Permalink
Adding extension dev-kit building files and also doc placeholder #743
Browse files Browse the repository at this point in the history
  • Loading branch information
bpatrik committed Nov 25, 2023
1 parent 4fe7f31 commit 70eec1a
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ test.*
/db/
/test/cypress/screenshots/
/extensions/
/extension/lib/
1 change: 1 addition & 0 deletions extension/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.tsconfig.json
3 changes: 3 additions & 0 deletions extension/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# @pigallery2/extension-kit

TODO.
11 changes: 11 additions & 0 deletions extension/ext-enums.tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "./../tsconfig.json",
"compilerOptions": {
"outDir": "./lib",
"sourceMap": false
},
"include": [
"./../src/common/entities/**/*",
"./../src/common/config/**/*"
]
}
12 changes: 12 additions & 0 deletions extension/ext-interface.tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "./../tsconfig.json",
"compilerOptions": {
"declaration": true,
"emitDeclarationOnly": true,
"sourceMap": false,
"outDir": "./lib"
},
"include": [
"./../src/**/*"
]
}
2 changes: 2 additions & 0 deletions extension/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export {IServerExtension,IExtensionObject} from './lib/backend/model/extension/IExtension';

Check failure on line 1 in extension/index.ts

View workflow job for this annotation

GitHub Actions / test (18.x)

Cannot find module './lib/backend/model/extension/IExtension' or its corresponding type declarations.

8 changes: 8 additions & 0 deletions extension/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "pigallery2-extension-kit",
"version": "2.0.2-edge",
"description": "Interfaces for developing extensions for pigallery2",
"author": "Patrik J. Braun",
"homepage": "https://github.com/bpatrik/pigallery2",
"license": "MIT"
}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pigallery2",
"version": "2.0.0",
"version": "2.0.2-edge",
"description": "This is a photo gallery optimised for running low resource servers (especially on raspberry pi)",
"author": "Patrik J. Braun",
"homepage": "https://github.com/bpatrik/pigallery2",
Expand All @@ -25,7 +25,8 @@
"lint": "ng lint",
"start-e2e-server": "node ./test/folder-reset test/e2e && node ./src/backend/index --config-path=test/e2e/config.json --Database-dbFolder=test/e2e --Server-port=8080",
"cypress:open": "cypress open",
"cypress:run": "cypress run"
"cypress:run": "cypress run",
"build-extension-interface": "tsc -p extension/ext-interface.tsconfig.json && tsc -p extension/ext-enums.tsconfig.json"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 70eec1a

Please sign in to comment.