Files
api/web/package.json
Zack Spear 648b560148 refactor(package.json): update build scripts for dev and webgui
- Update the prebuild and postbuild scripts in package.json to handle environment variables and file paths correctly for the dev and webgui builds.
2024-10-03 13:47:12 -07:00

71 lines
2.5 KiB
JSON

{
"name": "connect-components",
"version": "3.10.0",
"private": true,
"scripts": {
"dev": "nuxt dev",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"type-check": "nuxi typecheck",
"prebuild:dev": "./scripts/prebuild-webgui-set-env.sh .env.staging",
"build:dev": "npm run type-check && nuxt build && npm run manifest-ts && npm run deploy-to-unraid:dev",
"postbuild:dev": "./scripts/postbuild-webgui-restore-env.sh",
"prebuild:webgui": "./scripts/prebuild-webgui-set-env.sh",
"build:webgui": "npm run type-check && nuxt build && npm run manifest-ts && npm run copy-to-webgui-repo",
"postbuild:webgui": "./scripts/postbuild-webgui-restore-env.sh",
"build": "npm run type-check && nuxt build && npm run manifest-ts",
"deploy-to-unraid:dev": "./scripts/deploy-dev.sh",
"copy-to-webgui-repo": "./scripts/copy-to-webgui-repo.sh",
"manifest-ts": "node ./scripts/add-timestamp-webcomponent-manifest.js",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare",
"serve": "serve dist/nuxt-custom-elements/unraid-components",
"codegen": "graphql-codegen --config codegen.ts -r dotenv/config",
"codegen:watch": "graphql-codegen --config codegen.ts --watch -r dotenv/config"
},
"devDependencies": {
"@graphql-codegen/cli": "^5.0.2",
"@graphql-codegen/client-preset": "^4.2.5",
"@graphql-codegen/introspection": "^4.0.3",
"@nuxt/devtools": "^1.3.1",
"@nuxt/eslint": "^0.3.12",
"@nuxtjs/tailwindcss": "^6.12.0",
"@tailwindcss/typography": "^0.5.13",
"@types/crypto-js": "^4.2.2",
"@types/node": "^18",
"@types/semver": "^7.5.8",
"@vue/apollo-util": "^4.0.0-beta.6",
"@vueuse/core": "^10.9.0",
"@vueuse/nuxt": "^10.9.0",
"lodash-es": "^4.17.21",
"nuxt": "^3.11.2",
"nuxt-custom-elements": "^2.0.0-beta.18",
"terser": "^5.31.0"
},
"dependencies": {
"@apollo/client": "^3.10.4",
"@headlessui/vue": "^1.7.22",
"@heroicons/vue": "^2.1.3",
"@pinia/nuxt": "^0.5.1",
"@vue/apollo-composable": "^4.0.2",
"@vueuse/components": "^10.9.0",
"@vueuse/integrations": "^10.9.0",
"crypto-js": "^4.2.0",
"dayjs": "^1.11.11",
"focus-trap": "^7.5.4",
"graphql": "^16.8.1",
"graphql-tag": "^2.12.6",
"graphql-ws": "^5.16.0",
"hex-to-rgba": "^2.0.1",
"marked": "^12.0.2",
"marked-base-url": "^1.1.3",
"semver": "^7.6.2",
"vue-i18n": "^9.13.1",
"wretch": "^2.8.1"
},
"overrides": {
"vue": "latest"
}
}