Skip to content

Commit 3aa3a4d

Browse files
committed
add nodemon, remove .env from being tracked
1 parent 3c39574 commit 3aa3a4d

File tree

5 files changed

+21
-8
lines changed

5 files changed

+21
-8
lines changed

.env

-4
This file was deleted.

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.DS_Store
2+
.env
23
node_modules/
34
npm-debug.log
45
dump.rdb
56
public/*
67
static/dist
7-
static/css/app.min.css
8-
.env
8+
static/css/app.min.css

nodemon.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
{
3+
"restartable": "rs",
4+
"ignore": [
5+
".git",
6+
"node_modules/**/node_modules"
7+
],
8+
"verbose": true,
9+
"watch": [
10+
"server"
11+
],
12+
"env": {
13+
"NODE_ENV": "development"
14+
},
15+
"ext": "js json"
16+
}

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "The web editor for p5.js.",
55
"main": "server.js",
66
"scripts": {
7-
"start": "node index.js",
7+
"start": "BABEL_DISABLE_CACHE=1 NODE_ENV=development nodemon index.js",
88
"test": "echo \"Error: no test specified\" && exit 1"
99
},
1010
"author": "Cassie Tarakajian",
@@ -23,6 +23,7 @@
2323
"css-loader": "^0.23.1",
2424
"file-loader": "^0.8.5",
2525
"node-sass": "^3.7.0",
26+
"nodemon": "^1.9.2",
2627
"redux-devtools": "^3.3.1",
2728
"redux-devtools-dock-monitor": "^1.1.1",
2829
"redux-devtools-log-monitor": "^1.0.11",

server/controllers/project.controller.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export function createProject(req, res) {
55
user: req.user ? req.user._id : undefined,
66
file: {}
77
}
8-
8+
99
Object.assign(projectValues, req.body);
1010

1111
Project.create(projectValues, function(err, newProject) {

0 commit comments

Comments
 (0)