mirror of
https://github.com/unraid/api.git
synced 2026-01-01 06:01:18 -06:00
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit • New Features - Enhanced the login experience with improved session management and two-factor authentication. - Introduced a comprehensive README for the Unraid Plugin Builder, detailing development workflows and commands. • Chores - Streamlined build, packaging, and deployment processes with updated dependency and environment configurations. - Updated Docker configurations to support pnpm as the package manager. - Added new environment variables for better configuration management. - Introduced new scripts for improved build and packaging processes. • Tests - Removed outdated test cases and simplified test setups. • Refactor - Modernized internal code structure and asynchronous handling for improved overall performance. - Transitioned imports from lodash to lodash-es for better module handling. - Updated environment variable management and configuration settings. - Enhanced the build script for improved deployment processes. - Updated the notification handling structure to improve efficiency. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
41 lines
1.9 KiB
JSON
41 lines
1.9 KiB
JSON
{
|
|
"dependencies": {
|
|
"conventional-changelog": "^6.0.0",
|
|
"date-fns": "^4.1.0",
|
|
"glob": "^11.0.1",
|
|
"html-sloppy-escaper": "^0.1.0",
|
|
"http-server": "^14.1.1",
|
|
"semver": "^7.7.1",
|
|
"tsx": "^4.19.2",
|
|
"zod": "^3.24.1",
|
|
"zx": "^8.3.2"
|
|
},
|
|
"type": "module",
|
|
"scripts": {
|
|
"// Build scripts": "",
|
|
"build": "tsx scripts/build-plugin-and-txz.ts",
|
|
"build:validate": "npm run env:validate && npm run build",
|
|
"// Docker commands": "",
|
|
"docker:build": "docker build -t plugin-builder .",
|
|
"docker:run": "docker run --env-file .env -v $(pwd)/deploy:/app/deploy -v $(cd ../ && pwd)/.git:/app/.git -v $(pwd)/source:/app/source plugin-builder",
|
|
"docker:build-and-run": "npm run docker:build && npm run docker:run",
|
|
"http-server": "http-server ./deploy/release/ -p 8080 --cors",
|
|
"// Environment management": "",
|
|
"env:init": "cp .env.example .env",
|
|
"env:validate": "test -f .env || (echo 'Error: .env file missing. Run npm run env:init first' && exit 1)",
|
|
"env:clean": "rm -f .env",
|
|
"// Composite commands": "",
|
|
"start": "npm run env:validate && npm run docker:build-and-run",
|
|
"test": "npm run env:init && npm run start && npm run env:clean",
|
|
"// Watchers for Other Changes": "",
|
|
"wc:clean": "rm -r ./source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.my.servers/unraid-components/*",
|
|
"wc:watch": "cpx -w -v \"../web/.nuxt/nuxt-custom-elements/dist/unraid-components/**/*\" ./source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.my.servers/unraid-components",
|
|
"api:watch": "cpx -w -C -v \"../api/deploy/pack/**/*\" ./source/dynamix.unraid.net/usr/local/unraid-api",
|
|
"ui:watch": "cpx -w -v \"../unraid-ui/dist/**/*\" ./source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.my.servers/unraid-components",
|
|
"watch:all": "npm run wc:clean && npm run wc:watch & npm run api:watch & npm run ui:watch"
|
|
},
|
|
"devDependencies": {
|
|
"cpx2": "^8.0.0"
|
|
}
|
|
}
|