Skip to content
Snippets Groups Projects
package.json 3.92 KiB
Newer Older
  • Learn to ignore specific revisions
  • Hugo SUBTIL's avatar
    Hugo SUBTIL committed
    {
      "name": "ram_server",
      "private": true,
    
    Etienne LOUPIAS's avatar
    Etienne LOUPIAS committed
      "version": "2.2.0",
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
      "description": "Nest TypeScript starter repository",
      "license": "MIT",
      "scripts": {
        "build": "nest build",
    
    Bastien DUMONT's avatar
    Bastien DUMONT committed
        "dev": "nodemon",
    
        "doc:serve": "./node_modules/.bin/compodoc compodoc -s",
    
    Bastien DUMONT's avatar
    Bastien DUMONT committed
        "doc": "./node_modules/.bin/compodoc compodoc -p tsconfig.json -s -n 'Resin api documentation'",
        "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
        "init-db": "node ./scripts/init-db.js",
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
        "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --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",
    
        "test": "jest --config ./jest.json --coverage",
    
    Bastien DUMONT's avatar
    Bastien DUMONT committed
        "start:prod": "npm run migrate:up && node dist/src/main",
    
        "test:cov": "jest --config ./jest.json --coverage --ci --reporters=default --reporters=jest-junit",
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
        "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
    
        "test:e2e": "jest --config ./test/jest-e2e.json",
    
    Bastien DUMONT's avatar
    Bastien DUMONT committed
        "test:watch": "jest --config ./jest.json --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
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
      },
      "jest": {
        "moduleFileExtensions": [
          "js",
          "json",
          "ts"
        ],
        "rootDir": "src",
        "testRegex": ".*\\.spec\\.ts$",
        "transform": {
          "^.+\\.(t|j)s$": "ts-jest"
        },
        "collectCoverageFrom": [
          "**/*.(t|j)s"
        ],
        "coverageDirectory": "../coverage",
        "testEnvironment": "node"
      }
    }