diff --git a/templates/azure/gitignore b/templates/azure-functions/.gitignore similarity index 100% rename from templates/azure/gitignore rename to templates/azure-functions/.gitignore diff --git a/templates/azure/README.md b/templates/azure-functions/README.md similarity index 100% rename from templates/azure/README.md rename to templates/azure-functions/README.md diff --git a/templates/azure/app/entry.client.tsx b/templates/azure-functions/app/entry.client.tsx similarity index 100% rename from templates/azure/app/entry.client.tsx rename to templates/azure-functions/app/entry.client.tsx diff --git a/templates/azure/app/entry.server.tsx b/templates/azure-functions/app/entry.server.tsx similarity index 100% rename from templates/azure/app/entry.server.tsx rename to templates/azure-functions/app/entry.server.tsx diff --git a/templates/azure/app/root.tsx b/templates/azure-functions/app/root.tsx similarity index 100% rename from templates/azure/app/root.tsx rename to templates/azure-functions/app/root.tsx diff --git a/templates/azure/app/routes/index.tsx b/templates/azure-functions/app/routes/index.tsx similarity index 100% rename from templates/azure/app/routes/index.tsx rename to templates/azure-functions/app/routes/index.tsx diff --git a/templates/azure/azure/function.json b/templates/azure-functions/azure/function.json similarity index 100% rename from templates/azure/azure/function.json rename to templates/azure-functions/azure/function.json diff --git a/templates/azure/azure/function/index.js b/templates/azure-functions/azure/function/index.js similarity index 100% rename from templates/azure/azure/function/index.js rename to templates/azure-functions/azure/function/index.js diff --git a/templates/azure/github-actions/azure-static-web-apps.yml b/templates/azure-functions/github-actions/azure-static-web-apps.yml similarity index 100% rename from templates/azure/github-actions/azure-static-web-apps.yml rename to templates/azure-functions/github-actions/azure-static-web-apps.yml diff --git a/templates/azure/host.json b/templates/azure-functions/host.json similarity index 100% rename from templates/azure/host.json rename to templates/azure-functions/host.json diff --git a/templates/azure-functions/package.json b/templates/azure-functions/package.json new file mode 100644 index 00000000000..3f0cae355fa --- /dev/null +++ b/templates/azure-functions/package.json @@ -0,0 +1,22 @@ +{ + "scripts": { + "build": "remix build", + "dev": "swa start ./public --run \"remix dev\" --api ." + }, + "dependencies": { + "@remix-run/azure-functions": "*", + "@remix-run/node": "*", + "@remix-run/react": "*", + "remix": "*" + }, + "devDependencies": { + "@azure/functions": "^3.0.0", + "@azure/static-web-apps-cli": "^0.8.3", + "@remix-run/dev": "*", + "@remix-run/eslint-config": "*", + "@types/react": "^17.0.24", + "@types/react-dom": "^17.0.9", + "eslint": "^8.11.0", + "npm-run-all": "^4.1.5" + } +} \ No newline at end of file diff --git a/templates/azure/public/favicon.png b/templates/azure-functions/public/favicon.png similarity index 100% rename from templates/azure/public/favicon.png rename to templates/azure-functions/public/favicon.png diff --git a/templates/azure/public/index.html b/templates/azure-functions/public/index.html similarity index 100% rename from templates/azure/public/index.html rename to templates/azure-functions/public/index.html diff --git a/templates/azure/public/staticwebapp.config.json b/templates/azure-functions/public/staticwebapp.config.json similarity index 100% rename from templates/azure/public/staticwebapp.config.json rename to templates/azure-functions/public/staticwebapp.config.json diff --git a/templates/azure/remix.config.js b/templates/azure-functions/remix.config.js similarity index 100% rename from templates/azure/remix.config.js rename to templates/azure-functions/remix.config.js diff --git a/templates/azure/local.settings.json b/templates/azure/local.settings.json deleted file mode 100644 index 4e3da2cc65c..00000000000 --- a/templates/azure/local.settings.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "IsEncrypted": false, - "Values": { - "AzureWebJobsStorage": "", - "FUNCTIONS_WORKER_RUNTIME": "node" - } -} diff --git a/templates/azure/package.json b/templates/azure/package.json deleted file mode 100644 index 16c66c8dd92..00000000000 --- a/templates/azure/package.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "scripts": { - "build": "remix build", - "dev": "swa start ./public --run \"remix dev\" --api ." - }, - "dependencies": { - "@remix-run/azure-functions": "*", - "@remix-run/node": "*" - }, - "devDependencies": { - "@azure/functions": "^3.0.0", - "@azure/static-web-apps-cli": "^0.8.3" - } -} \ No newline at end of file