Browse Source

Fix cypress and update nodemon config to use backend-core

master
Rory Powell 5 years ago
parent
commit
9db180b166
  1. 5
      packages/builder/src/helpers/validation/yup/app.js
  2. 2
      packages/server/nodemon.json
  3. 2
      packages/worker/nodemon.json

5
packages/builder/src/helpers/validation/yup/app.js

@ -7,7 +7,10 @@ export const name = (validation, { apps, currentApp } = { apps: [] }) => {
string()
.trim()
.required("Your application must have a name")
.matches(APP_NAME_REGEX, "App name must be letters and numbers only")
.matches(
APP_NAME_REGEX,
"App name must be letters, numbers and spaces only"
)
.test(
"non-existing-app-name",
"Another app with the same name already exists",

2
packages/server/nodemon.json

@ -1,5 +1,5 @@
{
"watch": ["src", "../auth"],
"watch": ["src", "../backend-core"],
"ext": "js,ts,json",
"ignore": ["src/**/*.spec.ts", "src/**/*.spec.js"],
"exec": "ts-node src/index.ts"

2
packages/worker/nodemon.json

@ -1,3 +1,3 @@
{
"watch": ["src", "../auth"]
"watch": ["src", "../backend-core"]
}
Loading…
Cancel
Save