[nodejs] package.json / npm run startdev / "startdev": "nodemon --watch app.js" > Flutter/Dart/Node

본문 바로가기
사이트 내 전체검색

Flutter/Dart/Node

[nodejs] package.json / npm run startdev / "startdev": "…

페이지 정보

작성자 sbLAB 댓글 0건 조회 1,186회 작성일 23-05-21 11:46

본문


[package.json] 세팅 예제 "startdev": "nodemon --watch app.js"


{
  "name": "flutter_socket_io_backend",
  "version": "1.0.0",
  "description": "Socket.IO backend of Flutter App",
  "main": "app.js",
  "scripts": {
    "start": "nodemon app.js",
    "startdev": "nodemon --watch app.js"
  },
  "author": "abhidiwakar",
  "license": "ISC",
  "devDependencies": {
    "nodemon": "^2.0.15"
  },
  "dependencies": {
    "express": "^4.18.2",
    "socket.io": "^4.6.1"
  }
}
 


[TERMINAL] - 개발모드

PS D:/FFF/nodeJs_test/nodejs_socket.io_flutter_chat/nodeserver> npm run startdev   <--   "startdev": "nodemon --watch app.js"


> flutter_socket_io_backend@1.0.0 startdev

> nodemon --watch app.js


[nodemon] 2.0.22

[nodemon] to restart at any time, enter `rs`

[nodemon] watching path(s): app.js

[nodemon] watching extensions: js,mjs,json

[nodemon] starting `node app.js`

Server listening on 3000



댓글목록

등록된 댓글이 없습니다.

회원로그인

접속자집계

오늘
148
어제
433
최대
1,279
전체
218,816

그누보드5
Copyright © sebom.com All rights reserved.