@adminforth/clone-row 1.1.0
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/.woodpecker/buildRelease.sh +13 -0
- package/.woodpecker/buildSlackNotify.sh +44 -0
- package/.woodpecker/release.yml +40 -0
- package/LICENSE +21 -0
- package/build.log +11 -0
- package/custom/CloneRowButton.vue +46 -0
- package/custom/tsconfig.json +30 -0
- package/dist/custom/CloneRowButton.vue +46 -0
- package/dist/custom/tsconfig.json +30 -0
- package/dist/index.js +53 -0
- package/dist/types.js +1 -0
- package/index.ts +54 -0
- package/package.json +49 -0
- package/tsconfig.json +13 -0
- package/types.ts +3 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
#!/bin/bash
|
|
3
|
+
|
|
4
|
+
# write npm run output both to console and to build.log
|
|
5
|
+
npm run build 2>&1 | tee build.log
|
|
6
|
+
build_status=${PIPESTATUS[0]}
|
|
7
|
+
|
|
8
|
+
# if exist status from the npm run build is not 0
|
|
9
|
+
# then exit with the status code from the npm run build
|
|
10
|
+
if [ $build_status -ne 0 ]; then
|
|
11
|
+
echo "Build failed. Exiting with status code $build_status"
|
|
12
|
+
exit $build_status
|
|
13
|
+
fi
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
|
|
3
|
+
set -x
|
|
4
|
+
|
|
5
|
+
COMMIT_SHORT_SHA=$(echo $CI_COMMIT_SHA | cut -c1-8)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
if [ "$CI_PREV_PIPELINE_STATUS" = "success" ]; then
|
|
9
|
+
MESSAGE="Did a build without issues on \`$CI_REPO_NAME/$CI_COMMIT_BRANCH\`. Commit: _${CI_COMMIT_MESSAGE}_ (<$CI_COMMIT_URL|$COMMIT_SHORT_SHA>)"
|
|
10
|
+
|
|
11
|
+
curl -s -X POST -H "Content-Type: application/json" -d '{
|
|
12
|
+
"username": "'"$CI_COMMIT_AUTHOR"'",
|
|
13
|
+
"icon_url": "'"$CI_COMMIT_AUTHOR_AVATAR"'",
|
|
14
|
+
"attachments": [
|
|
15
|
+
{
|
|
16
|
+
"mrkdwn_in": ["text", "pretext"],
|
|
17
|
+
"color": "#36a64f",
|
|
18
|
+
"text": "'"$MESSAGE"'"
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}' "$DEVELOPERS_SLACK_WEBHOOK"
|
|
22
|
+
exit 0
|
|
23
|
+
fi
|
|
24
|
+
export BUILD_LOG=$(cat ./build.log)
|
|
25
|
+
|
|
26
|
+
BUILD_LOG=$(echo $BUILD_LOG | sed 's/"/\\"/g')
|
|
27
|
+
|
|
28
|
+
MESSAGE="Broke \`$CI_REPO_NAME/$CI_COMMIT_BRANCH\` with commit _${CI_COMMIT_MESSAGE}_ (<$CI_COMMIT_URL|$COMMIT_SHORT_SHA>)"
|
|
29
|
+
CODE_BLOCK="\`\`\`$BUILD_LOG\n\`\`\`"
|
|
30
|
+
|
|
31
|
+
echo "Sending slack message to developers $MESSAGE"
|
|
32
|
+
# Send the message
|
|
33
|
+
curl -sS -X POST -H "Content-Type: application/json" -d '{
|
|
34
|
+
"username": "'"$CI_COMMIT_AUTHOR"'",
|
|
35
|
+
"icon_url": "'"$CI_COMMIT_AUTHOR_AVATAR"'",
|
|
36
|
+
"attachments": [
|
|
37
|
+
{
|
|
38
|
+
"mrkdwn_in": ["text", "pretext"],
|
|
39
|
+
"color": "#8A1C12",
|
|
40
|
+
"text": "'"$CODE_BLOCK"'",
|
|
41
|
+
"pretext": "'"$MESSAGE"'"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}' "$DEVELOPERS_SLACK_WEBHOOK" 2>&1
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
clone:
|
|
2
|
+
git:
|
|
3
|
+
image: woodpeckerci/plugin-git
|
|
4
|
+
settings:
|
|
5
|
+
partial: false
|
|
6
|
+
depth: 5
|
|
7
|
+
|
|
8
|
+
steps:
|
|
9
|
+
init-secrets:
|
|
10
|
+
when:
|
|
11
|
+
- event: push
|
|
12
|
+
image: infisical/cli
|
|
13
|
+
environment:
|
|
14
|
+
INFISICAL_TOKEN:
|
|
15
|
+
from_secret: VAULT_TOKEN
|
|
16
|
+
commands:
|
|
17
|
+
- infisical export --domain https://vault.devforth.io/api --format=dotenv-export --env="prod" > /woodpecker/deploy.vault.env
|
|
18
|
+
|
|
19
|
+
release:
|
|
20
|
+
image: node:20
|
|
21
|
+
when:
|
|
22
|
+
- event: push
|
|
23
|
+
commands:
|
|
24
|
+
- apt update && apt install -y rsync
|
|
25
|
+
- export $(cat /woodpecker/deploy.vault.env | xargs)
|
|
26
|
+
- npm clean-install
|
|
27
|
+
- /bin/bash ./.woodpecker/buildRelease.sh
|
|
28
|
+
- npm audit signatures
|
|
29
|
+
- npx semantic-release
|
|
30
|
+
|
|
31
|
+
slack-on-failure:
|
|
32
|
+
when:
|
|
33
|
+
- event: push
|
|
34
|
+
status: [failure, success]
|
|
35
|
+
- event: push
|
|
36
|
+
image: curlimages/curl
|
|
37
|
+
commands:
|
|
38
|
+
- export $(cat /woodpecker/deploy.vault.env | xargs)
|
|
39
|
+
- /bin/sh ./.woodpecker/buildSlackNotify.sh
|
|
40
|
+
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Devforth.io
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/build.log
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
|
|
2
|
+
> @adminforth/clone-row@1.0.1 build
|
|
3
|
+
> tsc && rsync -av --exclude 'node_modules' custom dist/
|
|
4
|
+
|
|
5
|
+
sending incremental file list
|
|
6
|
+
custom/
|
|
7
|
+
custom/CloneRowButton.vue
|
|
8
|
+
custom/tsconfig.json
|
|
9
|
+
|
|
10
|
+
sent 2,106 bytes received 58 bytes 4,328.00 bytes/sec
|
|
11
|
+
total size is 1,888 speedup is 0.87
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<Tooltip>
|
|
3
|
+
<RouterLink :to="{
|
|
4
|
+
name: `resource-create`,
|
|
5
|
+
params: { resourceId: props.meta.resourceId },
|
|
6
|
+
query: {
|
|
7
|
+
values: save_btoa(JSON.stringify(redirectToCreatePage())),
|
|
8
|
+
}
|
|
9
|
+
}">
|
|
10
|
+
<IconFileCloneOutline class="w-5 h-5 me-2"/>
|
|
11
|
+
</RouterLink>
|
|
12
|
+
<template v-slot:tooltip>
|
|
13
|
+
{{ $t('Clone record') }}
|
|
14
|
+
</template>
|
|
15
|
+
</Tooltip>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<script lang="ts" setup>
|
|
19
|
+
import { Tooltip } from '@/afcl';
|
|
20
|
+
import { AdminUser, type AdminForthResourceCommon } from '@/types';
|
|
21
|
+
import { IconFileCloneOutline } from '@iconify-prerendered/vue-flowbite';
|
|
22
|
+
import { useI18n } from 'vue-i18n';
|
|
23
|
+
|
|
24
|
+
const { t } = useI18n();
|
|
25
|
+
|
|
26
|
+
const props = defineProps<{
|
|
27
|
+
meta: any,
|
|
28
|
+
resource: AdminForthResourceCommon,
|
|
29
|
+
adminUser: AdminUser,
|
|
30
|
+
record: any,
|
|
31
|
+
updateRecords: Function,
|
|
32
|
+
}>();
|
|
33
|
+
|
|
34
|
+
function redirectToCreatePage() {
|
|
35
|
+
const fieldsToFill = { ...props.resource.columns.filter((col: any) => col.showIn.create === true) }
|
|
36
|
+
let dataToFill = {};
|
|
37
|
+
for (const field of Object.values(fieldsToFill)) {
|
|
38
|
+
dataToFill[field.name] = props.record[field.name];
|
|
39
|
+
}
|
|
40
|
+
return dataToFill;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function save_btoa(str) {
|
|
44
|
+
return btoa(str);
|
|
45
|
+
}
|
|
46
|
+
</script>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"baseUrl": ".", // This should point to your project root
|
|
4
|
+
"paths": {
|
|
5
|
+
"@/*": [
|
|
6
|
+
// "node_modules/adminforth/dist/spa/src/*"
|
|
7
|
+
"../../../adminforth/spa/src/*"
|
|
8
|
+
],
|
|
9
|
+
"*": [
|
|
10
|
+
// "node_modules/adminforth/dist/spa/node_modules/*"
|
|
11
|
+
"../../../adminforth/spa/node_modules/*"
|
|
12
|
+
],
|
|
13
|
+
"@@/*": [
|
|
14
|
+
// "node_modules/adminforth/dist/spa/src/*"
|
|
15
|
+
"."
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"include": [
|
|
20
|
+
"./**/*.ts",
|
|
21
|
+
"./**/*.tsx",
|
|
22
|
+
"./**/*.vue",
|
|
23
|
+
"../**/*.ts",
|
|
24
|
+
"../**/*.tsx",
|
|
25
|
+
"../**/*.vue",
|
|
26
|
+
"../*.vue",
|
|
27
|
+
"../*.ts",
|
|
28
|
+
"../*.tsx"
|
|
29
|
+
]
|
|
30
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<Tooltip>
|
|
3
|
+
<RouterLink :to="{
|
|
4
|
+
name: `resource-create`,
|
|
5
|
+
params: { resourceId: props.meta.resourceId },
|
|
6
|
+
query: {
|
|
7
|
+
values: save_btoa(JSON.stringify(redirectToCreatePage())),
|
|
8
|
+
}
|
|
9
|
+
}">
|
|
10
|
+
<IconFileCloneOutline class="w-5 h-5 me-2"/>
|
|
11
|
+
</RouterLink>
|
|
12
|
+
<template v-slot:tooltip>
|
|
13
|
+
{{ $t('Clone record') }}
|
|
14
|
+
</template>
|
|
15
|
+
</Tooltip>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<script lang="ts" setup>
|
|
19
|
+
import { Tooltip } from '@/afcl';
|
|
20
|
+
import { AdminUser, type AdminForthResourceCommon } from '@/types';
|
|
21
|
+
import { IconFileCloneOutline } from '@iconify-prerendered/vue-flowbite';
|
|
22
|
+
import { useI18n } from 'vue-i18n';
|
|
23
|
+
|
|
24
|
+
const { t } = useI18n();
|
|
25
|
+
|
|
26
|
+
const props = defineProps<{
|
|
27
|
+
meta: any,
|
|
28
|
+
resource: AdminForthResourceCommon,
|
|
29
|
+
adminUser: AdminUser,
|
|
30
|
+
record: any,
|
|
31
|
+
updateRecords: Function,
|
|
32
|
+
}>();
|
|
33
|
+
|
|
34
|
+
function redirectToCreatePage() {
|
|
35
|
+
const fieldsToFill = { ...props.resource.columns.filter((col: any) => col.showIn.create === true) }
|
|
36
|
+
let dataToFill = {};
|
|
37
|
+
for (const field of Object.values(fieldsToFill)) {
|
|
38
|
+
dataToFill[field.name] = props.record[field.name];
|
|
39
|
+
}
|
|
40
|
+
return dataToFill;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function save_btoa(str) {
|
|
44
|
+
return btoa(str);
|
|
45
|
+
}
|
|
46
|
+
</script>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"baseUrl": ".", // This should point to your project root
|
|
4
|
+
"paths": {
|
|
5
|
+
"@/*": [
|
|
6
|
+
// "node_modules/adminforth/dist/spa/src/*"
|
|
7
|
+
"../../../adminforth/spa/src/*"
|
|
8
|
+
],
|
|
9
|
+
"*": [
|
|
10
|
+
// "node_modules/adminforth/dist/spa/node_modules/*"
|
|
11
|
+
"../../../adminforth/spa/node_modules/*"
|
|
12
|
+
],
|
|
13
|
+
"@@/*": [
|
|
14
|
+
// "node_modules/adminforth/dist/spa/src/*"
|
|
15
|
+
"."
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"include": [
|
|
20
|
+
"./**/*.ts",
|
|
21
|
+
"./**/*.tsx",
|
|
22
|
+
"./**/*.vue",
|
|
23
|
+
"../**/*.ts",
|
|
24
|
+
"../**/*.tsx",
|
|
25
|
+
"../**/*.vue",
|
|
26
|
+
"../*.vue",
|
|
27
|
+
"../*.ts",
|
|
28
|
+
"../*.tsx"
|
|
29
|
+
]
|
|
30
|
+
}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { AdminForthPlugin } from "adminforth";
|
|
11
|
+
export default class extends AdminForthPlugin {
|
|
12
|
+
constructor(options) {
|
|
13
|
+
super(options, import.meta.url);
|
|
14
|
+
this.options = options;
|
|
15
|
+
}
|
|
16
|
+
modifyResourceConfig(adminforth, resourceConfig) {
|
|
17
|
+
const _super = Object.create(null, {
|
|
18
|
+
modifyResourceConfig: { get: () => super.modifyResourceConfig }
|
|
19
|
+
});
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
_super.modifyResourceConfig.call(this, adminforth, resourceConfig);
|
|
22
|
+
if (!resourceConfig.options.pageInjections) {
|
|
23
|
+
resourceConfig.options.pageInjections = {};
|
|
24
|
+
}
|
|
25
|
+
if (!resourceConfig.options.pageInjections.list) {
|
|
26
|
+
resourceConfig.options.pageInjections.list = {};
|
|
27
|
+
}
|
|
28
|
+
if (!resourceConfig.options.pageInjections.list.customActionIcons) {
|
|
29
|
+
resourceConfig.options.pageInjections.list.customActionIcons = [];
|
|
30
|
+
}
|
|
31
|
+
resourceConfig.options.pageInjections.list.customActionIcons.push({ file: this.componentPath('CloneRowButton.vue'), meta: { pluginInstanceId: this.pluginInstanceId, resourceId: this.resourceConfig.resourceId } });
|
|
32
|
+
// simply modify resourceConfig or adminforth.config. You can get access to plugin options via this.options;
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
validateConfigAfterDiscover(adminforth, resourceConfig) {
|
|
36
|
+
// optional method where you can safely check field types after database discovery was performed
|
|
37
|
+
}
|
|
38
|
+
instanceUniqueRepresentation(pluginOptions) {
|
|
39
|
+
// optional method to return unique string representation of plugin instance.
|
|
40
|
+
// Needed if plugin can have multiple instances on one resource
|
|
41
|
+
return `single`;
|
|
42
|
+
}
|
|
43
|
+
setupEndpoints(server) {
|
|
44
|
+
server.endpoint({
|
|
45
|
+
method: 'POST',
|
|
46
|
+
path: `/plugin/${this.pluginInstanceId}/example`,
|
|
47
|
+
handler: (_a) => __awaiter(this, [_a], void 0, function* ({ body }) {
|
|
48
|
+
const { name } = body;
|
|
49
|
+
return { hey: `Hello ${name}` };
|
|
50
|
+
})
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
}
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/index.ts
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { AdminForthPlugin } from "adminforth";
|
|
2
|
+
import type { IAdminForth, IHttpServer, AdminForthResourceColumn, AdminForthResource, IAdminForthHttpResponse, AdminUser, AdminForthComponentDeclaration } from "adminforth";
|
|
3
|
+
import type { PluginOptions } from './types.js';
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export default class extends AdminForthPlugin {
|
|
7
|
+
options: PluginOptions;
|
|
8
|
+
|
|
9
|
+
constructor(options: PluginOptions) {
|
|
10
|
+
super(options, import.meta.url);
|
|
11
|
+
this.options = options;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
async modifyResourceConfig(adminforth: IAdminForth, resourceConfig: AdminForthResource) {
|
|
15
|
+
super.modifyResourceConfig(adminforth, resourceConfig);
|
|
16
|
+
|
|
17
|
+
if ( !resourceConfig.options.pageInjections ) {
|
|
18
|
+
resourceConfig.options.pageInjections = {};
|
|
19
|
+
}
|
|
20
|
+
if ( !resourceConfig.options.pageInjections.list ) {
|
|
21
|
+
resourceConfig.options.pageInjections.list = {};
|
|
22
|
+
}
|
|
23
|
+
if ( !resourceConfig.options.pageInjections.list.customActionIcons ) {
|
|
24
|
+
resourceConfig.options.pageInjections.list.customActionIcons = [];
|
|
25
|
+
}
|
|
26
|
+
(resourceConfig.options.pageInjections.list.customActionIcons as AdminForthComponentDeclaration[]).push(
|
|
27
|
+
{ file: this.componentPath('CloneRowButton.vue'), meta: { pluginInstanceId: this.pluginInstanceId, resourceId: this.resourceConfig.resourceId } }
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
// simply modify resourceConfig or adminforth.config. You can get access to plugin options via this.options;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
validateConfigAfterDiscover(adminforth: IAdminForth, resourceConfig: AdminForthResource) {
|
|
34
|
+
// optional method where you can safely check field types after database discovery was performed
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
instanceUniqueRepresentation(pluginOptions: any) : string {
|
|
38
|
+
// optional method to return unique string representation of plugin instance.
|
|
39
|
+
// Needed if plugin can have multiple instances on one resource
|
|
40
|
+
return `single`;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
setupEndpoints(server: IHttpServer) {
|
|
44
|
+
server.endpoint({
|
|
45
|
+
method: 'POST',
|
|
46
|
+
path: `/plugin/${this.pluginInstanceId}/example`,
|
|
47
|
+
handler: async ({ body }) => {
|
|
48
|
+
const { name } = body;
|
|
49
|
+
return { hey: `Hello ${name}` };
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@adminforth/clone-row",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"types": "dist/index.d.ts",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"access": "public"
|
|
9
|
+
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "tsc && rsync -av --exclude 'node_modules' custom dist/"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [],
|
|
14
|
+
"author": "",
|
|
15
|
+
"license": "ISC",
|
|
16
|
+
"description": "",
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@types/node": "latest",
|
|
19
|
+
"semantic-release-slack-bot": "^4.0.2",
|
|
20
|
+
"typescript": "^5.7.3"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"adminforth": "latest"
|
|
24
|
+
},
|
|
25
|
+
"release": {
|
|
26
|
+
"plugins": [
|
|
27
|
+
"@semantic-release/commit-analyzer",
|
|
28
|
+
"@semantic-release/release-notes-generator",
|
|
29
|
+
"@semantic-release/npm",
|
|
30
|
+
"@semantic-release/github",
|
|
31
|
+
[
|
|
32
|
+
"semantic-release-slack-bot",
|
|
33
|
+
{
|
|
34
|
+
"notifyOnSuccess": true,
|
|
35
|
+
"notifyOnFail": true,
|
|
36
|
+
"slackIcon": ":package:",
|
|
37
|
+
"markdownReleaseNotes": true
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
"branches": [
|
|
43
|
+
"main",
|
|
44
|
+
{
|
|
45
|
+
"name": "next",
|
|
46
|
+
"prerelease": true
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include*/
|
|
4
|
+
"module": "node16", /* Specify what module code is generated. */
|
|
5
|
+
"outDir": "./dist", /* Specify an output folder for all emitted files. */
|
|
6
|
+
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. */
|
|
7
|
+
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
|
|
8
|
+
"strict": false, /* Enable all strict type-checking options. */
|
|
9
|
+
"skipLibCheck": true, /* Skip type checking all .d.ts files. */
|
|
10
|
+
},
|
|
11
|
+
"exclude": ["node_modules", "dist", "custom"], /* Exclude files from compilation. */
|
|
12
|
+
}
|
|
13
|
+
|
package/types.ts
ADDED