diff --git a/README.md b/README.md index 4a568dabdd..799790019f 100644 --- a/README.md +++ b/README.md @@ -23,22 +23,14 @@ Short setup version: 1. Clone directory into local folder 2. Go into the cloned folder and enter `npm install` -3. Install nodemon and gulp globally by entering `npm install -g nodemon gulp` ## Run 1. Start the [schul-cloud server](https://github.com/hpi-schul-cloud/schulcloud-server) 2. Go into project folder -3. Run `gulp watch` to run gulp -4. Set the ENV-variable `TZ=Europe/Berlin` (for windows use `set TZ=Europe/Berlin`). You can also set the variables `SC_TITLE=HPI Schul-Cloud` if you want. -5. run `npm run watch` to boot the application +5. run `npm run dev` to boot the application 6. go to `http://localhost:3100` -**Alternative with browser-sync** - -1. run `gulp watch-reload` to run gulp with browser sync. It also starts the node-client-server. -2. go to `http://localhost:7000` - For connecting to the [SchulCloud Calendar-Service](https://github.com/hpi-schul-cloud/schulcloud-calendar) you have to set `export CALENDAR_SERVICE_ENABLED=true`. For connecting to the [SchulCloud Notification-Service](https://github.com/hpi-schul-cloud/node-notification-service) you have to set `export NOTIFICATION_SERVICE_ENABLED=true`. diff --git a/nodemon.json b/nodemon.json deleted file mode 100644 index 312a6178c4..0000000000 --- a/nodemon.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "ignore": [ - ".git", - "node_modules/**/node_modules" - ], - "watch": [ - "build", - "views", - "theme", - "controllers", - "helpers", - "locales", - "config", - "app.js", - "api.js" - ], - "exec": "node ./bin/www", - "ext": "js, hbs, json", - "delay": "2000" -} diff --git a/package-lock.json b/package-lock.json index ef78373992..e0a1067ac6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -152,7 +152,6 @@ "imagemin-lint-staged": "^0.5.1", "lint-staged": "^10.5.4", "mocha": "^10.1.0", - "nodemon": "^2.0.20", "nyc": "^15.1.0", "postcss-css-variables": "^0.13.0", "pump": "^1.0.2", diff --git a/package.json b/package.json index e486d325b5..32c52cd789 100644 --- a/package.json +++ b/package.json @@ -2,11 +2,9 @@ "name": "schulcloud-client", "scripts": { "start": "node --unhandled-rejections=warn ./bin/www", - "watch": "nodemon --config nodemon.json", - "debug": "nodemon --inspect=9310 --config nodemon.json", - "debug:container": "nodemon --inspect=0.0.0.0:9310 --config nodemon.json", + "watch": "node --watch ./bin/www", + "debug": "node --inspect=9310 --watch ./bin/www", "lint": "eslint --ext .json --fix . && eslint ./controllers ./helpers ./test/mocha ./api.js ./app.js ./locales --ext .js --ext .json --fix", - "startd": "echo 'Do you mean 'npm run watch'?'", "mocha": "cross-env NODE_ENV=test mocha test/mocha/ --exit --recursive", "build": "gulp clear && cross-env NODE_OPTIONS=--openssl-legacy-provider gulp", "dev": "gulp clear && cross-env NODE_OPTIONS=--openssl-legacy-provider gulp watch-reload", @@ -173,7 +171,6 @@ "imagemin-lint-staged": "^0.5.1", "lint-staged": "^10.5.4", "mocha": "^10.1.0", - "nodemon": "^2.0.20", "nyc": "^15.1.0", "postcss-css-variables": "^0.13.0", "pump": "^1.0.2",