From e99a0d6912630ff8059972995cd1adff03b474f6 Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Fri, 7 Apr 2023 13:17:46 -0500 Subject: [PATCH] Rename to build-scripts to it appears in GitHub file finder (#166) It seems like the `build/` directory is ignored in the GitHub file finder as a sane default for people who put compiled assets there. `build-scripts/` probably makes more sense anyway --- Dockerfile | 2 +- {build => build-scripts}/build-client-scripts.js | 0 {build => build-scripts}/build-client.js | 0 {build => build-scripts}/do-client-build.js | 0 .../generate-vite-config-for-entry-point.js | 0 {build => build-scripts}/write-version-files.js | 0 package.json | 2 +- server/start-dev.js | 2 +- 8 files changed, 3 insertions(+), 3 deletions(-) rename {build => build-scripts}/build-client-scripts.js (100%) rename {build => build-scripts}/build-client.js (100%) rename {build => build-scripts}/do-client-build.js (100%) rename {build => build-scripts}/generate-vite-config-for-entry-point.js (100%) rename {build => build-scripts}/write-version-files.js (100%) diff --git a/Dockerfile b/Dockerfile index 6b8370a..37aad30 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,7 +24,7 @@ RUN npm install # Copy what we need for the client-side build COPY config /app/config/ -COPY build /app/build/ +COPY build-scripts /app/build-scripts/ COPY public /app/public/ COPY shared /app/shared/ # Build the client-side bundle diff --git a/build/build-client-scripts.js b/build-scripts/build-client-scripts.js similarity index 100% rename from build/build-client-scripts.js rename to build-scripts/build-client-scripts.js diff --git a/build/build-client.js b/build-scripts/build-client.js similarity index 100% rename from build/build-client.js rename to build-scripts/build-client.js diff --git a/build/do-client-build.js b/build-scripts/do-client-build.js similarity index 100% rename from build/do-client-build.js rename to build-scripts/do-client-build.js diff --git a/build/generate-vite-config-for-entry-point.js b/build-scripts/generate-vite-config-for-entry-point.js similarity index 100% rename from build/generate-vite-config-for-entry-point.js rename to build-scripts/generate-vite-config-for-entry-point.js diff --git a/build/write-version-files.js b/build-scripts/write-version-files.js similarity index 100% rename from build/write-version-files.js rename to build-scripts/write-version-files.js diff --git a/package.json b/package.json index e8961d4..b161249 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ }, "scripts": { "lint": "eslint **/*.js", - "build": "node ./build/do-client-build.js", + "build": "node ./build-scripts/do-client-build.js", "start": "node server/server.js", "start-dev": "node server/start-dev.js", "test": "npm run mocha -- test/**/*-tests.js --timeout 15000", diff --git a/server/start-dev.js b/server/start-dev.js index f743aae..832a94a 100644 --- a/server/start-dev.js +++ b/server/start-dev.js @@ -5,7 +5,7 @@ console.log('start-dev process.env.NODE_ENV', process.env.NODE_ENV); const path = require('path'); const nodemon = require('nodemon'); -const buildClient = require('../build/build-client'); +const buildClient = require('../build-scripts/build-client'); // Build the client-side JavaScript bundle when we see any changes buildClient({