Skip to content
Snippets Groups Projects
package.json 5.74 KiB
Newer Older
francois.grand's avatar
francois.grand committed
{
  "name": "fr.irstea.cassiopee",
  "displayName": "Cassiopée",
  "description": "Hydraulic calculators",
mathias.chouet's avatar
mathias.chouet committed
  "author": "Inrae",
  "version": "4.17.0",
  "main": "main.js",
francois.grand's avatar
francois.grand committed
  "license": "MIT",
francois.grand's avatar
francois.grand committed
  "scripts": {
    "ng": "cd . && \"node_modules/.bin/ng\"",
    "postinstall": "./node_modules/.bin/webdriver-manager update --gecko=false --versions.chrome=107.0.5304.110",
    "lint": "eslint -c .eslintrc.js --ext .ts src",
    "e2e": "node scripts/check-translations.js && { npm run start & sleep 180 ; } && ./node_modules/.bin/wdio run ./wdio.conf.ts",
    "e2equick": "node scripts/check-translations.js && ./node_modules/.bin/wdio run ./wdio.conf.ts",
    "monkeytest": "npm run ng -- e2e --dev-server-target= --suite=monkeyTest --webdriver-update=false",
    "mkdocs": "bash scripts/prepare_mkdocs.sh; cd build; python3 -m mkdocs build -f mkdocs-fr.yml && python3 -m mkdocs build -f mkdocs-en.yml && cd .. && node scripts/mkdocs-postprocess.js",
    "mkdocs2pdf": "node scripts/extract-nghyd-version.js build/cassiopee_version.tex && python3 scripts/mkdocs2pdf.py && node scripts/mkdocs2pdf-postprocess.js && bash scripts/check-pdf-docs.sh",
    "clean": "rm -rf build dist release src/date_revision.ts src/assets/docs docs/pdf_build",
    "preprocess": "mkdir -p build; node scripts/preprocessors.js; npm run service-worker-version; bash scripts/fix-chartjs-plugin-zoom-2.0.0.sh",
    "start": "npm run preprocess && npm run mkdocs && npm run ng serve -- --host 127.0.0.1 --poll 5000",
    "build-no-pdf": "npm run preprocess && npm run mkdocs && npm run ng build -- --configuration production",
    "build": "npm run build-href -basehref=/",
    "build-href": "npm run preprocess && npm run mkdocs && npm run ng build -- --configuration production --base-href=$npm_config_basehref && npm run mkdocs2pdf",
    "update-dist-index-mimetypes": "node scripts/update-dist-index-mimetypes.js",
    "electron": "npm run update-dist-index-mimetypes && \"node_modules/.bin/electron\" .",
    "release-linux-nocompile": "npm run update-dist-index-mimetypes && \"node_modules/.bin/electron-builder\"",
    "release-linux": "npm run build-no-pdf && npm run release-linux-nocompile",
    "release-mac-nocompile": "npm run update-dist-index-mimetypes && \"node_modules/.bin/electron-builder\" --mac",
    "release-mac": "npm run build-no-pdf && npm run release-mac-nocompile",
    "release-windows-nocompile": "npm run update-dist-index-mimetypes && \"node_modules/.bin/electron-builder\" --win",
    "release-windows": "npm run build-no-pdf && npm run release-windows-nocompile",
    "release-all": "node scripts/clean_release.js && npm run build-no-pdf && npm run update-dist-index-mimetypes && \"node_modules/.bin/electron-builder\" && \"node_modules/.bin/electron-builder\" --mac && \"node_modules/.bin/electron-builder\" --win",
    "compodoc": "node \"node_modules/@compodoc/compodoc/bin/index-cli.js\" -p src/tsconfig.app.json -s --language fr-FR -d compodoc-fr",
    "viz": "tsviz -recursive src/ nghyd_class_diagram.png",
    "webapp-nocompile": "\"node_modules/.bin/http-server\" dist",
    "webapp": "npm run build-no-pdf && npm run webapp-nocompile",
    "service-worker-version": "./scripts/update-service-worker-config.sh"
francois.grand's avatar
francois.grand committed
  },
francois.grand's avatar
francois.grand committed
  "private": true,
francois.grand's avatar
francois.grand committed
  "dependencies": {
francois.grand's avatar
francois.grand committed
  },
  "devDependencies": {