From 148d4d8e1f4711d16e98462952d729091ad448e6 Mon Sep 17 00:00:00 2001 From: Florian M Date: Mon, 5 Nov 2018 10:16:31 +0100 Subject: [PATCH 1/2] in yarn refresh-schema, also invalidate Tables.scala --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e660995775c..25f00008c75 100644 --- a/package.json +++ b/package.json @@ -103,7 +103,7 @@ "lint-fix": "node_modules/.bin/eslint --cache --fix --quiet app/assets/javascripts/ tools/", "flow-coverage": "node_modules/flow-coverage-report/bin/flow-coverage-report.js -i \"./app/assets/javascripts/**/*.js\" -x \"./app/assets/javascripts/test/**/*.js\" -t html -t text", "docs": "node_modules/.bin/documentation build app/assets/javascripts/oxalis/api/api_loader.js --github --project-name \"webKnossos Frontend API\" --format html --output public/docs/frontend-api", - "refresh-schema": "./tools/postgres/refresh_schema.sh", + "refresh-schema": "./tools/postgres/refresh_schema.sh; rm -f target/scala-2.12/src_managed/schema/com/scalableminds/webknossos/schema/Tables.scala", "enable-autologin": "sed -i -e 's/enableDevAutoLogin = false/enableDevAutoLogin = true/g' ./conf/application.conf", "disable-autologin": "sed -i -e 's/enableDevAutoLogin = true/enableDevAutoLogin = false/g' ./conf/application.conf", "coverage": "nyc report --reporter=text-lcov | coveralls", From 64c49765ef682168ad2f0678b6f91d1a7a8185f8 Mon Sep 17 00:00:00 2001 From: Florian M Date: Mon, 5 Nov 2018 10:28:38 +0100 Subject: [PATCH 2/2] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 25f00008c75..283fabf4435 100644 --- a/package.json +++ b/package.json @@ -103,7 +103,7 @@ "lint-fix": "node_modules/.bin/eslint --cache --fix --quiet app/assets/javascripts/ tools/", "flow-coverage": "node_modules/flow-coverage-report/bin/flow-coverage-report.js -i \"./app/assets/javascripts/**/*.js\" -x \"./app/assets/javascripts/test/**/*.js\" -t html -t text", "docs": "node_modules/.bin/documentation build app/assets/javascripts/oxalis/api/api_loader.js --github --project-name \"webKnossos Frontend API\" --format html --output public/docs/frontend-api", - "refresh-schema": "./tools/postgres/refresh_schema.sh; rm -f target/scala-2.12/src_managed/schema/com/scalableminds/webknossos/schema/Tables.scala", + "refresh-schema": "./tools/postgres/refresh_schema.sh && rm -f target/scala-2.12/src_managed/schema/com/scalableminds/webknossos/schema/Tables.scala", "enable-autologin": "sed -i -e 's/enableDevAutoLogin = false/enableDevAutoLogin = true/g' ./conf/application.conf", "disable-autologin": "sed -i -e 's/enableDevAutoLogin = true/enableDevAutoLogin = false/g' ./conf/application.conf", "coverage": "nyc report --reporter=text-lcov | coveralls",