Skip to content

Commit

Permalink
fix package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
giamma1295 committed Jan 8, 2025
1 parent 4987fcc commit 0fe06d7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions apps/io-web-profile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"version": "1.8.1",
"license": "MIT",
"scripts": {
"clean": "shx rm -rf dist && npm run generate",
"clean": "shx rm -rf dist",
"clean:generated": "shx rm -rf ./src/generated",
"build": "tsc && yarn postbuild",
"postbuild": "dependency-check package.json --no-dev --missing ./dist/**/*.js",
Expand All @@ -14,18 +14,18 @@
"extensions:install": "func extensions install",
"start": "dotenv -e .env func start --javascript",
"start:watch": "yarn start watch",
"lint": "yarn lint:check --fix && yarn lint:api",
"lint": "yarn lint:check --fix",
"lint:check": "eslint . -c .eslintrc.js --ext .ts,.tsx --cache",
"lint:api": "find ./api -name '*.yaml' -exec swagger-cli validate {} \\;",
"lint-api": "find ./api -name '*.yaml' -exec swagger-cli validate {} \\;",
"test": "vitest run",
"test:coverage": "vitest run --coverage",
"test:watch": "vitest",
"generate": "yarn generate:definitions-internal && yarn generate:definitions-external && yarn generate:fast-login && yarn generate:hub-spid-login && yarn generate:functions-app",
"generate:definitions-internal": "shx rm -rf ./src/generated/definitions/internal && shx mkdir -p ./src/generated/definitions/internal && gen-api-models --api-spec ./api/internal.yaml --no-strict --out-dir ./src/generated/definitions/internal",
"generate:definitions-external": "shx rm -rf ./src/generated/definitions/external && shx mkdir -p ./src/generated/definitions/external && gen-api-models --api-spec ./api/external.yaml --no-strict --out-dir ./src/generated/definitions/external",
"generate:fast-login": "shx rm -rf ./src/generated/definitions/fast-login && shx mkdir -p ./src/generated/definitions/fast-login && gen-api-models --api-spec https://raw.githubusercontent.com/pagopa/io-functions-fast-login/v3.4.0/api/internal.yaml --no-strict --out-dir ./src/generated/definitions/fast-login --request-types --response-decoders --client",
"generate:hub-spid-login": "shx rm -rf ./src/generated/definitions/hub-spid-login && shx mkdir -p ./src/generated/definitions/hub-spid-login && gen-api-models --api-spec ./api/hub-spid-login.yaml --no-strict --out-dir ./src/generated/definitions/hub-spid-login --request-types --response-decoders --client",
"generate:functions-app": "shx rm -rf ./src/generated/definitions/io-functions-app && shx mkdir -p ./src/generated/definitions/io-functions-app && gen-api-models --api-spec https://raw.githubusercontent.com/pagopa/io-functions-app/5c4edda05b426c5bf70e4a45515070a58167ac2e/openapi/index.yaml --no-strict --out-dir ./src/generated/definitions/io-functions-app --request-types --response-decoders --client",
"generate:definitions-internal": "shx rm -rf ./src/generated/definitions/internal && shx mkdir -p ./src/generated/definitions/internal && gen-api-models --api-spec ./api/internal.yaml --no-strict --out-dir ./src/generated/definitions/internal",
"generate:definitions-external": "shx rm -rf ./src/generated/definitions/external && shx mkdir -p ./src/generated/definitions/external && gen-api-models --api-spec ./api/external.yaml --no-strict --out-dir ./src/generated/definitions/external",
"generate:fast-login": "shx rm -rf ./src/generated/definitions/fast-login && shx mkdir -p ./src/generated/definitions/fast-login && gen-api-models --api-spec https://raw.githubusercontent.com/pagopa/io-functions-fast-login/v3.4.0/api/internal.yaml --no-strict --out-dir ./src/generated/definitions/fast-login --request-types --response-decoders --client",
"generate:hub-spid-login": "shx rm -rf ./src/generated/definitions/hub-spid-login && shx mkdir -p ./src/generated/definitions/hub-spid-login && gen-api-models --api-spec ./api/hub-spid-login.yaml --no-strict --out-dir ./src/generated/definitions/hub-spid-login --request-types --response-decoders --client",
"generate:functions-app": "shx rm -rf ./src/generated/definitions/io-functions-app && shx mkdir -p ./src/generated/definitions/io-functions-app && gen-api-models --api-spec https://raw.githubusercontent.com/pagopa/io-functions-app/5c4edda05b426c5bf70e4a45515070a58167ac2e/openapi/index.yaml --no-strict --out-dir ./src/generated/definitions/io-functions-app --request-types --response-decoders --client",
"generate-certificate": "shx rm -rf ./certificate && yarn generate-certificate:primary && yarn generate-certificate:secondary",
"generate-certificate:primary": "shx mkdir -p ./certificate && openssl ecparam -genkey -name prime256v1 -noout -out ./certificate/ec_primary.pem && openssl ec -in ./certificate/ec_primary.pem -pubout -out ./certificate/pub_primary.pem",
"generate-certificate:secondary": "shx mkdir -p ./certificate && openssl ecparam -genkey -name prime256v1 -noout -out ./certificate/ec_secondary.pem && openssl ec -in ./certificate/ec_secondary.pem -pubout -out ./certificate/pub_secondary.pem",
Expand Down

0 comments on commit 0fe06d7

Please sign in to comment.