$vim package.json ... "scripts": { "start": "nodemon app.js" }, ... "devDependencies": { "nodemon": "*" } ... $npm install npm http GET https://registry.npmjs.org/nodemon npm http 200 https://registry.npmjs.org/nodemon npm http GET https://registry.npmjs.org/nodemon/-/nodemon-0.7.10.tgz npm http 200 https://registry.npmjs.org/nodemon/-/nodemon-0.7.10.tgz nodemon@0.7.10 node_modules/nodemon $npm start > application-name@0.0.1 start /home/user/node/webapps/site1 > nodemon app.js 19 Oct 22:25:29 - [nodemon] v0.7.10 19 Oct 22:25:29 - [nodemon] to restart at any time, enter `rs` 19 Oct 22:25:29 - [nodemon] watching: /home/user/node/webapps/site1 19 Oct 22:25:29 - [nodemon] starting `node app.js`
vim設定
cd nano .vimrc ... set tabstop=4 set autoindent set expandtab set shiftwidth=4 ...
0 件のコメント:
コメントを投稿