Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backend > Fix > Adicionar scripts para rodar no windows #124

Open
nicolaskayamori opened this issue Dec 6, 2024 · 0 comments
Open

Backend > Fix > Adicionar scripts para rodar no windows #124

nicolaskayamori opened this issue Dec 6, 2024 · 0 comments

Comments

@nicolaskayamori
Copy link

Os scripts atuais no package.json rodam apenas em sistemas Linux. Temos que criar novos scripts para rodar
no ambiente Windows.

"scripts": {
    "start": "NODE_ENV=prod node src/server.js",
    "test": "NODE_ENV=test mocha ./test/integration/*.test.js --timeout 10000 --exit",
    "dev": "NODE_ENV=dev nodemon src/server.js",
    "debug": "NODE_ENV=dev nodemon --inspect src/server.js"
  } 

Para:

"scripts": {
    "start": "NODE_ENV=prod node src/server.js",
    "test": "NODE_ENV=test mocha ./test/integration/*.test.js --timeout 10000 --exit",
    "dev": "NODE_ENV=dev nodemon src/server.js",
    "debug": "NODE_ENV=dev nodemon --inspect src/server.js"
    "start:w": "set NODE_ENV=prod && node src/server.js",
    "test:w": "set NODE_ENV=test && mocha ./test/integration/*.test.js --timeout 10000 --exit",
    "dev:w": "set NODE_ENV=dev && nodemon src/server.js",
    "debug:w": "set NODE_ENV=dev && nodemon --inspect src/server.js"
  } 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant