1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-12-01 11:25:01 +03:00
leon/package.json

129 lines
6.4 KiB
JSON
Raw Normal View History

2019-02-10 15:26:50 +03:00
{
"name": "leon",
2022-08-24 16:35:26 +03:00
"version": "1.0.0-beta.8+dev",
"description": "Server, skills and web app of the Leon personal assistant",
2019-02-10 15:26:50 +03:00
"author": {
"name": "Louis Grenard",
2022-08-23 18:01:46 +03:00
"email": "louis@getleon.ai",
2022-02-19 04:24:34 +03:00
"url": "https://twitter.com/grenlouis"
2019-02-10 15:26:50 +03:00
},
"license": "MIT",
"homepage": "https://getleon.ai",
"repository": {
"type": "git",
"url": "git+https://github.com/leon-ai/leon.git"
},
"bugs": {
"url": "https://github.com/leon-ai/leon/issues"
},
"engines": {
"node": ">=16.0.0",
"npm": ">=8.0.0"
},
2019-02-10 15:26:50 +03:00
"scripts": {
2022-08-28 06:37:32 +03:00
"lint": "ts-node scripts/lint.js",
"test": "npm run test:json && npm run test:over-http && npm run test:unit && npm run test:e2e",
"test:unit": "npm run train en && cross-env PIPENV_PIPFILE=bridges/python/src/Pipfile LEON_NODE_ENV=testing jest --forceExit --silent --projects test/unit/unit.jest.json && npm run train",
2019-02-10 15:26:50 +03:00
"test:e2e": "npm run test:e2e:nlp-modules && npm run test:e2e:modules",
"test:e2e:modules": "ts-node scripts/run-clean-test-dbs.js && npm run train en && cross-env PIPENV_PIPFILE=bridges/python/src/Pipfile LEON_NODE_ENV=testing jest --forceExit --silent --verbose --projects test/e2e/modules/e2e.modules.jest.json && ts-node scripts/run-clean-test-dbs.js && npm run train",
"test:e2e:nlp-modules": "npm run train en && cross-env PIPENV_PIPFILE=bridges/python/src/Pipfile LEON_NODE_ENV=testing jest --forceExit --silent --verbose --setupTestFrameworkScriptFile=./test/paths.setup.js test/e2e/nlp-modules.spec.js && npm run train",
2019-02-10 15:26:50 +03:00
"test:json": "jest --silent --projects test/json/json.jest.json",
"test:over-http": "npm run generate:skills-endpoints && npm run train && cross-env PIPENV_PIPFILE=bridges/python/src/Pipfile LEON_NODE_ENV=testing LEON_HOST=http://localhost LEON_PORT=1338 LEON_HTTP_API_KEY=72aeb5ba324580963114481144385d7179c106fc jest --forceExit --silent --verbose --notify=false --bail --collectCoverage=false test/e2e/over-http.spec.js",
2022-08-28 06:37:32 +03:00
"test:module": "ts-node scripts/test-module.js",
"setup:offline": "ts-node scripts/setup-offline/setup-offline.js",
"setup:offline-stt": "ts-node scripts/setup-offline/run-setup-stt.js",
"setup:offline-tts": "ts-node scripts/setup-offline/run-setup-tts.js",
"setup:offline-hotword": "ts-node scripts/setup-offline/run-setup-hotword.js",
2022-10-07 05:41:04 +03:00
"setup:python-bridge": "ts-node scripts/setup/setup-python-dev-env.js python-bridge",
"setup:tcp-server": "ts-node scripts/setup/setup-python-dev-env.js tcp-server",
2019-02-10 15:26:50 +03:00
"preinstall": "node scripts/setup/preinstall.js",
2022-08-28 06:37:32 +03:00
"postinstall": "ts-node scripts/setup/setup.js",
2021-03-15 20:11:40 +03:00
"dev:app": "vite --config app/vite.config.js",
"dev:server": "npm run train && npm run generate:skills-endpoints && cross-env LEON_NODE_ENV=development tsc-watch --noClear --onSuccess \"nodemon\"",
2019-05-25 07:07:11 +03:00
"wake": "cross-env LEON_HOST=http://localhost LEON_PORT=1337 node hotword/index.js",
2019-02-10 15:26:50 +03:00
"delete-dist:server": "shx rm -rf ./server/dist",
"clean:python-deps": "shx rm -rf ./bridges/python/src/.venv && npm run postinstall",
2021-12-27 17:57:06 +03:00
"prepare": "husky install",
2022-08-28 06:37:32 +03:00
"generate:skills-endpoints": "ts-node scripts/generate/run-generate-skills-endpoints.js",
"generate:http-api-key": "ts-node scripts/generate/run-generate-http-api-key.js",
2021-12-27 13:02:32 +03:00
"build": "npm run build:app && npm run build:server",
2022-08-28 06:37:32 +03:00
"build:app": "cross-env LEON_NODE_ENV=production ts-node scripts/app/run-build-app.js",
"build:server": "npm run delete-dist:server && npm run train && npm run generate:skills-endpoints && tsc && resolve-tspaths && shx rm -rf server/dist/core server/dist/package.json && shx mv -f server/dist/server/src/* server/dist && shx rm -rf server/dist/server && shx mkdir -p server/dist/tmp",
2022-10-07 05:41:04 +03:00
"build:python-bridge": "ts-node scripts/build-binaries.js python-bridge",
"build:tcp-server": "ts-node scripts/build-binaries.js tcp-server",
"start:tcp-server": "cross-env PIPENV_PIPFILE=tcp_server/src/Pipfile pipenv run python tcp_server/src/main.py",
2022-09-03 04:51:35 +03:00
"start": "cross-env LEON_NODE_ENV=production node ./server/dist/index.js",
2022-08-28 06:37:32 +03:00
"train": "ts-node scripts/train/run-train.js",
"prepare-release": "ts-node scripts/release/prepare-release.js",
"pre-release:python-bridge": "ts-node scripts/release/pre-release-binaries.js python-bridge",
"pre-release:tcp-server": "ts-node scripts/release/pre-release-binaries.js tcp-server",
2022-08-28 06:37:32 +03:00
"check": "ts-node scripts/run-check.js",
"docker:build": "docker build -t leon-ai/leon .",
"docker:run": "docker compose up",
"docker:dev": "docker compose --file=docker-compose.dev.yml up",
"docker:check": "docker run --rm --interactive leon-ai/leon npm run check"
2019-02-10 15:26:50 +03:00
},
"dependencies": {
"@aws-sdk/client-polly": "^3.18.0",
2022-09-03 14:57:19 +03:00
"@fastify/static": "^6.5.0",
"@ffmpeg-installer/ffmpeg": "^1.1.0",
2022-09-04 18:59:18 +03:00
"@ffprobe-installer/ffprobe": "^1.4.1",
"@google-cloud/speech": "^4.2.0",
"@google-cloud/text-to-speech": "^3.2.1",
2022-02-12 14:10:27 +03:00
"@nlpjs/builtin-microsoft": "^4.22.7",
"@nlpjs/core-loader": "^4.22.7",
2022-02-11 16:34:39 +03:00
"@nlpjs/lang-all": "^4.22.12",
2022-02-12 14:10:27 +03:00
"@nlpjs/nlp": "^4.22.17",
2022-10-06 14:48:17 +03:00
"archiver": "^5.3.1",
2021-03-05 07:47:01 +03:00
"async": "^3.2.0",
2021-03-05 07:35:27 +03:00
"cross-env": "^7.0.3",
"dayjs": "^1.11.5",
"dotenv": "^10.0.0",
"execa": "^5.0.0",
2022-09-03 14:57:19 +03:00
"fastify": "^4.5.3",
2019-02-10 15:26:50 +03:00
"fluent-ffmpeg": "^2.1.2",
2021-03-05 07:53:57 +03:00
"googleapis": "^67.1.1",
"ibm-watson": "^6.1.1",
2019-02-10 15:26:50 +03:00
"node-wav": "0.0.2",
2022-10-07 05:41:04 +03:00
"pretty-bytes": "^5.6.0",
2022-09-04 18:53:05 +03:00
"socket.io": "^4.5.2",
"socket.io-client": "^4.5.2",
2022-09-10 06:51:23 +03:00
"stt": "^1.4.0",
2022-09-10 05:55:13 +03:00
"superagent": "^8.0.0",
"tree-kill": "^1.2.2"
2019-02-10 15:26:50 +03:00
},
"devDependencies": {
2022-06-26 12:37:21 +03:00
"@nlpjs/utils": "^4.24.1",
2022-09-03 04:51:35 +03:00
"@swc/core": "^1.2.245",
"@tsconfig/node16-strictest": "^1.0.3",
"@types/cli-spinner": "0.2.1",
2022-08-28 06:37:32 +03:00
"@types/node": "^18.7.13",
2022-09-03 13:17:16 +03:00
"@typescript-eslint/eslint-plugin": "^5.36.1",
"@typescript-eslint/parser": "^5.36.1",
2021-03-04 04:41:41 +03:00
"cli-spinner": "^0.2.10",
"eslint": "8.22.0",
2022-09-03 14:12:41 +03:00
"eslint-config-prettier": "^8.5.0",
"eslint-import-resolver-typescript": "^3.5.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-unicorn": "43.0.2",
"git-changelog": "^2.0.0",
2021-12-27 17:57:06 +03:00
"husky": "^7.0.0",
"inquirer": "^8.1.0",
2022-02-03 14:37:56 +03:00
"jest": "^27.4.7",
2021-03-04 15:16:06 +03:00
"jest-canvas-mock": "^2.3.1",
2022-02-03 14:37:56 +03:00
"jest-extended": "^2.0.0",
"json": "^10.0.0",
2022-09-03 15:33:32 +03:00
"lint-staged": "^13.0.3",
2022-09-03 07:06:00 +03:00
"nodemon": "^2.0.19",
2022-09-03 13:37:56 +03:00
"prettier": "2.7.1",
"resolve-tspaths": "^0.7.4",
"semver": "^7.3.5",
2021-03-15 20:11:40 +03:00
"shx": "^0.3.3",
2022-08-28 06:37:32 +03:00
"ts-node": "^10.9.1",
"tsc-watch": "^5.0.3",
2022-08-28 06:37:32 +03:00
"tsconfig-paths": "^4.1.0",
"typescript": "^4.8.2",
2022-09-04 18:50:17 +03:00
"vite": "^3.0.9"
2019-02-10 15:26:50 +03:00
}
}