generated from Linkurious/lke-plugin-data-table
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
77 lines (77 loc) · 3.39 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
"name": "@linkurious/lke-plugin-plugin-manager",
"version": "1.0.5",
"description": "Plugin Manager for Linkurious Enterprise",
"homepage": "https://github.com/Linkurious/lke-plugin-plugin-manager#readme",
"bugs": {
"url": "https://github.com/Linkurious/lke-plugin-plugin-manager/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Linkurious/lke-plugin-plugin-manager.git"
},
"engines": {
"node": "16.19.0"
},
"author": "Linkurious",
"scripts": {
"npm-package-name": "echo ${npm_package_name}-${npm_package_version}.tgz | sed -e 's/@//' -e 's/\\//-/'",
"plugin-name": "echo ${npm_package_name} | sed -e 's/^@.*\\///' -e s/^lke-plugin-//",
"artifact-name": "echo lke-plugin-$(npm run --silent plugin-name).lke",
"clean": "rm -rf $(ls src) public/bundles *.tgz *.lke",
"lint": "eslint --fix --ext .ts .",
"lint:ci-deactivated": "eslint -f checkstyle -o reports/checkstyle.xml .",
"tsc": "tsc -b",
"frontend": "esbuild src/frontend/index.ts --bundle --outfile=public/bundles/index.js --target=es6 --platform=browser --sourcemap",
"build": "npm run tsc && npm run frontend",
"postbuild": "mkdir -p tmp/github_release && npm pack && mv $(npm run --silent npm-package-name) $(npm run --silent artifact-name) && ln -sf $(pwd)/lke-plugin-plugin-manager.lke $(pwd)/tmp/github_release/lke-plugin-plugin-manager-v$(cat .version).lke",
"deploy:login": "curl -X POST $npm_config_deploy_url/api/auth/login --cookie-jar 'lke.cookie' -H 'Content-type: application/json' -d '{ \"usernameOrEmail\": \"'$npm_config_deploy_user'\", \"password\": \"'$npm_config_deploy_pass'\" }'",
"deploy:logout": "curl -X GET $npm_config_deploy_url/api/auth/logout --cookie 'lke.cookie' -H 'Content-type: application/json' && rm lke.cookie",
"predeploy:restart-plugins": "npm run deploy:login",
"deploy:restart-plugins": "curl -X POST $npm_config_deploy_url/api/admin/plugins/restart-all --cookie 'lke.cookie'",
"postdeploy:restart-plugins": "npm run deploy:logout",
"deploy": "cp $(npm run --silent artifact-name) $npm_config_deploy_plugin_folder",
"postdeploy": "npm run deploy:restart-plugins",
"build-deploy": "npm run build && npm run deploy",
"manual-upload": "gh release create \"v$(cat .version)\" $(npm run --silent artifact-name)",
"bump:patch": "bump2version patch && npm version --no-git-tag-version patch",
"bump:minor": "bump2version minor && npm version --no-git-tag-version minor",
"bump:major": "bump2version major && npm version --no-git-tag-version major"
},
"license": "Apache 2",
"files": [
"backend",
"public",
"manifest.json",
"LICENSE"
],
"bundledDependencies": [
"express",
"express-fileupload",
"fs-extra",
"tar"
],
"dependencies": {
"@types/fs-extra": "11.0.1",
"express": "4.17.3",
"express-fileupload": "1.4.0",
"fs-extra": "11.1.0",
"tar": "6.1.12"
},
"devDependencies": {
"@linkurious/rest-client": "3.1.14",
"@types/express": "4.17.3",
"@types/express-fileupload": "1.4.1",
"@types/node": "16.18.11",
"@types/superagent": "4.1.15",
"@types/tar": "6.1.3",
"@typescript-eslint/eslint-plugin": "5.48.1",
"acorn": "8.8.1",
"esbuild": "0.16.17",
"eslint": "8.32.0",
"eslint-config-prettier": "8.6.0",
"eslint-plugin-import": "2.27.4",
"eslint-plugin-prettier": "4.2.1",
"typescript": "4.9.4"
}
}