Skip to content
Snippets Groups Projects
package.json 3.67 KiB
Newer Older
Hugo SUBTIL's avatar
Hugo SUBTIL committed
{
  "name": "ram_server",
  "private": true,
Etienne LOUPIAS's avatar
Etienne LOUPIAS committed
  "version": "3.2.0",
Bastien DUMONT's avatar
Bastien DUMONT committed
  "description": "Res'in API",
Hugo SUBTIL's avatar
Hugo SUBTIL committed
  "license": "MIT",
  "scripts": {
    "build": "nest build",
Bastien DUMONT's avatar
Bastien DUMONT committed
    "dev": "nodemon",
    "doc": "npx compodoc -p tsconfig.doc.json -s -n 'Resin api documentation'",
Bastien DUMONT's avatar
Bastien DUMONT committed
    "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
    "init-db": "node ./scripts/init-db.js",
    "lint": "eslint src test -c .eslintrc.js --fix",
Bastien DUMONT's avatar
Bastien DUMONT committed
    "migrate:create": "migrate create --template-file ./src/migrations/migrations-utils/template.ts --migrations-dir=\"./src/migrations/scripts\" --compiler=\"ts:./src/migrations/migrations-utils/ts-compiler.js\"",
    "migrate:down": "migrate --migrations-dir=\"./src/migrations/scripts\" --compiler=\"ts:./src/migrations/migrations-utils/ts-compiler.js\" down",
    "migrate:up": "migrate --migrations-dir=\"./src/migrations/scripts\" --compiler=\"ts:./src/migrations/migrations-utils/ts-compiler.js\" up",
    "prebuild": "rimraf dist",
    "start": "ts-node -r tsconfig-paths/register src/main.ts",
Hugo SUBTIL's avatar
Hugo SUBTIL committed
    "release": "standard-version",
Bastien DUMONT's avatar
Bastien DUMONT committed
    "start:debug": "nodemon --config nodemon-debug.json",
    "start:dev": "nodemon",
    "start:prod": "npm run migrate:up && node dist/src/main",
    "test": "jest --runInBand --config ./jest.config.ts",
    "test:cov": "jest --config ./jest.config.ts --coverage --ci --reporters=default --reporters=jest-junit",
    "test:debug": "node --config ./jest.config.ts --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
    "test:e2e": "jest --config ./test/jest-e2e.json",
    "test:watch": "jest --config ./jest.config.ts --watch --coverage"
Hugo SUBTIL's avatar
Hugo SUBTIL committed
  },
  "dependencies": {
Hugo SUBTIL's avatar
Hugo SUBTIL committed
  },
  "devDependencies": {
Hugo SUBTIL's avatar
Hugo SUBTIL committed
Hugo SUBTIL's avatar
Hugo SUBTIL committed
  }
}