From 8a679cfd88f318c4499543be15f2ae226517bd89 Mon Sep 17 00:00:00 2001 From: petamoriken Date: Mon, 16 Mar 2020 03:18:00 +0900 Subject: [PATCH] Fix: Move public directory for development --- examples/with-firebase-hosting-and-docker/package.json | 2 +- .../src/{ => app}/public/placeholder.html | 0 examples/with-firebase-hosting-and-typescript/package.json | 2 +- .../src/{ => app}/public/placeholder.html | 0 examples/with-firebase-hosting/package.json | 2 +- .../with-firebase-hosting/src/{ => app}/public/placeholder.html | 0 6 files changed, 3 insertions(+), 3 deletions(-) rename examples/with-firebase-hosting-and-docker/src/{ => app}/public/placeholder.html (100%) rename examples/with-firebase-hosting-and-typescript/src/{ => app}/public/placeholder.html (100%) rename examples/with-firebase-hosting/src/{ => app}/public/placeholder.html (100%) diff --git a/examples/with-firebase-hosting-and-docker/package.json b/examples/with-firebase-hosting-and-docker/package.json index 1ff6d3ef24f9e26..e72a9b9e9440876 100644 --- a/examples/with-firebase-hosting-and-docker/package.json +++ b/examples/with-firebase-hosting-and-docker/package.json @@ -8,7 +8,7 @@ "serve": "cd dist/functions && firebase serve -p 3000 --debug -o 0.0.0.0", "deploy": "cd dist/functions && firebase deploy", "clean": "rimraf dist && mkdir -p dist/functions", - "build-public": "cpx \"src/public/**/*.*\" \"dist/public\" -C", + "build-public": "cpx \"src/app/public/**/*.*\" \"dist/public\" -C", "build-funcs": "babel \"src/functions\" --out-dir \"dist/functions\"", "build-app": "next build \"src/app\"", "copy-deps": "cpx \"*{package.json,package-lock.json,yarn.lock,serviceAccountKey.json}\" \"dist/functions\" -C", diff --git a/examples/with-firebase-hosting-and-docker/src/public/placeholder.html b/examples/with-firebase-hosting-and-docker/src/app/public/placeholder.html similarity index 100% rename from examples/with-firebase-hosting-and-docker/src/public/placeholder.html rename to examples/with-firebase-hosting-and-docker/src/app/public/placeholder.html diff --git a/examples/with-firebase-hosting-and-typescript/package.json b/examples/with-firebase-hosting-and-typescript/package.json index 0a5f118d5a910a4..47319fe886868ff 100644 --- a/examples/with-firebase-hosting-and-typescript/package.json +++ b/examples/with-firebase-hosting-and-typescript/package.json @@ -12,7 +12,7 @@ "deploy": "firebase deploy", "clean": "rimraf \"dist/functions\" && rimraf \"dist/public\"", "build-app": "next build \"src/app\"", - "build-public": "cpx \"src/public/**/*.*\" \"dist/public\" -C", + "build-public": "cpx \"src/app/public/**/*.*\" \"dist/public\" -C", "build-functions": "tsc --project src/functions", "lint-app": "tslint --project src/app", "typecheck-app": "tsc --project src/app", diff --git a/examples/with-firebase-hosting-and-typescript/src/public/placeholder.html b/examples/with-firebase-hosting-and-typescript/src/app/public/placeholder.html similarity index 100% rename from examples/with-firebase-hosting-and-typescript/src/public/placeholder.html rename to examples/with-firebase-hosting-and-typescript/src/app/public/placeholder.html diff --git a/examples/with-firebase-hosting/package.json b/examples/with-firebase-hosting/package.json index 59c326ab39662ee..0dbcd6c9fd34b24 100644 --- a/examples/with-firebase-hosting/package.json +++ b/examples/with-firebase-hosting/package.json @@ -12,7 +12,7 @@ "predeploy": "npm run build-public && npm run build-funcs && npm run build-app && npm run copy-deps", "deploy": "NODE_ENV=production firebase deploy", "clean": "rimraf \"dist/functions/**\" && rimraf \"dist/public\"", - "build-public": "cpx \"src/public/**/*.*\" \"dist/public\" -C", + "build-public": "cpx \"src/app/public/**/*.*\" \"dist/public\" -C", "build-funcs": "babel \"src/functions\" --out-dir \"dist/functions\"", "build-app": "next build \"src/app/\"", "copy-deps": "cpx \"*{package.json,package-lock.json,yarn.lock}\" \"dist/functions\" -C", diff --git a/examples/with-firebase-hosting/src/public/placeholder.html b/examples/with-firebase-hosting/src/app/public/placeholder.html similarity index 100% rename from examples/with-firebase-hosting/src/public/placeholder.html rename to examples/with-firebase-hosting/src/app/public/placeholder.html