@tasenor/common-plugins 1.9.31 → 1.9.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-ci.log +3 -3
- package/data/PluginIndex.mjs +27 -0
- package/package.json +7 -4
- package/src/index.ts +28 -0
package/.turbo/turbo-ci.log
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
> @tasenor/common-plugins@1.9.
|
|
2
|
+
> @tasenor/common-plugins@1.9.32 ci /home/wigy/project/tasenor-qa/tasenor-bookkeeper/packages/tasenor-common-plugins
|
|
3
3
|
> pnpm run lint && pnpm run build
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @tasenor/common-plugins@1.9.
|
|
6
|
+
> @tasenor/common-plugins@1.9.32 lint /home/wigy/project/tasenor-qa/tasenor-bookkeeper/packages/tasenor-common-plugins
|
|
7
7
|
> eslint 'src/**/*.{ts,tsx}' 'data/**/*.mjs'
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
> @tasenor/common-plugins@1.9.
|
|
10
|
+
> @tasenor/common-plugins@1.9.32 build /home/wigy/project/tasenor-qa/tasenor-bookkeeper/packages/tasenor-common-plugins
|
|
11
11
|
> rm -fr dist && tsc
|
|
12
12
|
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import glob from 'glob'
|
|
3
|
+
import fs from 'fs'
|
|
4
|
+
import path from 'path'
|
|
5
|
+
import * as url from 'url'
|
|
6
|
+
|
|
7
|
+
const __dirname = url.fileURLToPath(new URL('.', import.meta.url))
|
|
8
|
+
const dir = path.join(__dirname, '..', 'src')
|
|
9
|
+
|
|
10
|
+
let txt = ''
|
|
11
|
+
for (const pathName of glob.sync(dir + '/*')) {
|
|
12
|
+
const module = path.basename(pathName)
|
|
13
|
+
if (fs.existsSync(path.join(pathName, 'backend'))) {
|
|
14
|
+
txt += `export { default as ${module}Backend } from './${module}/backend'\n`
|
|
15
|
+
}
|
|
16
|
+
if (fs.existsSync(path.join(pathName, 'backend', `${module.replace(/Import$/, '')}Handler.ts`))) {
|
|
17
|
+
txt += `export { ${module.replace(/Import$/, '')}Handler } from './${module}/backend/${module.replace(/Import$/, '')}Handler'\n`
|
|
18
|
+
}
|
|
19
|
+
// TODO: Currently tasenor-testing package does not compile tests, if this is included.
|
|
20
|
+
// if (fs.existsSync(path.join(pathName, 'ui'))) {
|
|
21
|
+
// txt += `export { default as ${module}UI } from './${module}/ui'\n`
|
|
22
|
+
// }
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const indexPath = path.join(dir, 'index.ts')
|
|
26
|
+
fs.writeFileSync(indexPath, txt)
|
|
27
|
+
console.log(new Date(), `Saved plugin index to ${indexPath}`)
|
package/package.json
CHANGED
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tasenor/common-plugins",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.33",
|
|
4
4
|
"description": "Shared common plugins of Tasenor project",
|
|
5
5
|
"repository": "git@github.com:dataplugoy/tasenor-bookkeeper.git",
|
|
6
6
|
"author": "Tommi Ronkainen <tommi.ronkainen@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
8
|
+
"main": "src/index.ts",
|
|
9
|
+
"types": "src/index.ts",
|
|
8
10
|
"dependencies": {
|
|
9
11
|
"clone": "^2.1.2",
|
|
10
12
|
"dayjs": "1.10.8",
|
|
11
13
|
"sprintf-js": "^1.1.2",
|
|
12
|
-
"@tasenor/common": "1.9.
|
|
13
|
-
"@tasenor/common-node": "1.9.
|
|
14
|
-
"@tasenor/common-ui": "1.9.
|
|
14
|
+
"@tasenor/common": "1.9.33",
|
|
15
|
+
"@tasenor/common-node": "1.9.33",
|
|
16
|
+
"@tasenor/common-ui": "1.9.33"
|
|
15
17
|
},
|
|
16
18
|
"devDependencies": {
|
|
17
19
|
"@mui/icons-material": "^5.14.1",
|
|
18
20
|
"@mui/material": "^5.13.7",
|
|
19
21
|
"@types/jest": "^29.5.2",
|
|
20
22
|
"@types/node": "^20.4.1",
|
|
23
|
+
"glob": "7.2.0",
|
|
21
24
|
"i18next": "^23.2.11",
|
|
22
25
|
"mobx": "^6.9.0",
|
|
23
26
|
"mobx-react": "^7.6.0",
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export { default as CoinAPIBackend } from './CoinAPI/backend'
|
|
2
|
+
export { default as CoinbaseImportBackend } from './CoinbaseImport/backend'
|
|
3
|
+
export { CoinbaseHandler } from './CoinbaseImport/backend/CoinbaseHandler'
|
|
4
|
+
export { default as FinnishBalanceSheetReportBackend } from './FinnishBalanceSheetReport/backend'
|
|
5
|
+
export { default as FinnishBalanceSheetReportInvestmentBackend } from './FinnishBalanceSheetReportInvestment/backend'
|
|
6
|
+
export { default as FinnishBalanceSheetReportLiteBackend } from './FinnishBalanceSheetReportLite/backend'
|
|
7
|
+
export { default as FinnishIncomeStatementReportBackend } from './FinnishIncomeStatementReport/backend'
|
|
8
|
+
export { default as FinnishIncomeStatementReportInvestmentBackend } from './FinnishIncomeStatementReportInvestment/backend'
|
|
9
|
+
export { default as FinnishIncomeStatementReportLiteBackend } from './FinnishIncomeStatementReportLite/backend'
|
|
10
|
+
export { default as FinnishInvestmentCompanyBackend } from './FinnishInvestmentCompany/backend'
|
|
11
|
+
export { default as FinnishLimitedCompanyCompleteBackend } from './FinnishLimitedCompanyComplete/backend'
|
|
12
|
+
export { default as FinnishLimitedCompanyLiteBackend } from './FinnishLimitedCompanyLite/backend'
|
|
13
|
+
export { default as GitBackupBackend } from './GitBackup/backend'
|
|
14
|
+
export { default as IncomeAndExpensesBackend } from './IncomeAndExpenses/backend'
|
|
15
|
+
export { default as JournalReportBackend } from './JournalReport/backend'
|
|
16
|
+
export { default as KrakenImportBackend } from './KrakenImport/backend'
|
|
17
|
+
export { KrakenHandler } from './KrakenImport/backend/KrakenHandler'
|
|
18
|
+
export { default as LedgerReportBackend } from './LedgerReport/backend'
|
|
19
|
+
export { default as LynxImportBackend } from './LynxImport/backend'
|
|
20
|
+
export { LynxHandler } from './LynxImport/backend/LynxHandler'
|
|
21
|
+
export { default as NordeaImportBackend } from './NordeaImport/backend'
|
|
22
|
+
export { NordeaHandler } from './NordeaImport/backend/NordeaHandler'
|
|
23
|
+
export { default as NordnetImportBackend } from './NordnetImport/backend'
|
|
24
|
+
export { NordnetHandler } from './NordnetImport/backend/NordnetHandler'
|
|
25
|
+
export { default as RapidAPIBackend } from './RapidAPI/backend'
|
|
26
|
+
export { default as TITOImportBackend } from './TITOImport/backend'
|
|
27
|
+
export { TITOHandler } from './TITOImport/backend/TITOHandler'
|
|
28
|
+
export { default as VATFinlandBackend } from './VATFinland/backend'
|