<%#
 Copyright 2019-2023 the original author or authors from the JHipster project.

 This file is part of the JHipster project, see https://www.jhipster.tech/
 for more information.

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

      https://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
-%>
{
  "name": "<%= dasherizedBaseName %>",
  "version": "0.0.0",
  "description": "Description for <%= baseName %>",
  "private": true,
  "license": "UNLICENSED",
  "cacheDirectories": [
    "node_modules"
  ],
  "devDependencies": {
    "@eslint/js": "<%- nodeServerDependencies['@eslint/js'] %>",
    "browser-sync-client": "<%- nodeServerDependencies['browser-sync-client'] %>",
    "eslint": "<%- nodeServerDependencies['eslint'] %>",
    "eslint-config-prettier": "<%- nodeServerDependencies['eslint-config-prettier'] %>",
    "globals": "<%- nodeServerDependencies['globals'] %>",
    "prettier": "<%= nodeDependencies['prettier'] %>",
    "prettier-plugin-packagejson": "<%= nodeDependencies['prettier-plugin-packagejson'] %>",
    "typescript-eslint": "<%- nodeServerDependencies['typescript-eslint'] %>"
  },
  "engines": {
    "node": ">=<%= nodeVersion %>"
  },
  "workspaces": [
      "server"
  ],
  "scripts": {
    "build": "<%= clientPackageManager %> run build -w server && <%= clientPackageManager %> run build -w client",
    "build:app": "<%= clientPackageManager %> run build -w server",
    "lint:fix": "echo \"INFO: no client found\"",
    "prettier:check": "prettier --check \"{,src/**/}*.{<%= prettierExtensions %>}\"",
    "prettier:format": "prettier --write \"{,src/**/}*.{<%= prettierExtensions %>}\"",
    "start": "concurrently -k -s first -n application,client -c red,green npm:start:server npm:start:client",
    "start:server": "<%= clientPackageManager %> run start -w server",
    "start:client": "<%= clientPackageManager %> run start -w client",
    "test:client": "<%= clientPackageManager %> test -w client",
    "test:server": "<%= clientPackageManager %> test -w server",
<%_ if (!databaseTypeSql) { _%>
    "pretest:server:e2e": "npm run docker:db:up",
<%_ } _%>
    "test:server:e2e": "<%= clientPackageManager %> run test:e2e -w server",
<%_ if (!databaseTypeSql) { _%>
    "posttest:server:e2e": "npm run docker:db:down",
<%_ } _%>
    "test": "echo \"INFO: no client test found\""
  }
}
