From 2bf69763b8dab053931264edd8d08810f615b882 Mon Sep 17 00:00:00 2001 From: Daniel Van Der Ploeg Date: Thu, 5 Dec 2024 16:58:20 +1030 Subject: [PATCH] fix: include handlers in static hosting construct --- packages/static-hosting/.gitignore | 58 ---------------------------- packages/static-hosting/.npmignore | 11 ------ packages/static-hosting/.npmrc | 1 - packages/static-hosting/.nvmrc | 1 - packages/static-hosting/project.json | 12 +++++- 5 files changed, 10 insertions(+), 73 deletions(-) delete mode 100644 packages/static-hosting/.gitignore delete mode 100644 packages/static-hosting/.npmignore delete mode 100644 packages/static-hosting/.npmrc delete mode 100644 packages/static-hosting/.nvmrc diff --git a/packages/static-hosting/.gitignore b/packages/static-hosting/.gitignore deleted file mode 100644 index 8f77f768..00000000 --- a/packages/static-hosting/.gitignore +++ /dev/null @@ -1,58 +0,0 @@ -# These are some examples of commonly ignored file patterns. -# You should customize this list as applicable to your project. -# Learn more about .gitignore: -# https://www.atlassian.com/git/tutorials/saving-changes/gitignore - -# Node artifact files -node_modules/ -dist/ - -# Compiled Java class files -*.class - -# Compiled Python bytecode -*.py[cod] - -# Log files -*.log - -# Package files -*.jar - -# Maven -target/ -dist/ - -# JetBrains IDE -.idea/ - -# Unit test reports -TEST*.xml - -# Generated by MacOS -.DS_Store - -# Generated by Windows -Thumbs.db - -# Applications -*.app -*.exe -*.war - -# Large media files -*.mp4 -*.tiff -*.avi -*.flv -*.mov -*.wmv - -!jest.config.js - -# CDK asset staging directory -.cdk.staging -cdk.out - -*.d.ts -*.js diff --git a/packages/static-hosting/.npmignore b/packages/static-hosting/.npmignore deleted file mode 100644 index bfd115ba..00000000 --- a/packages/static-hosting/.npmignore +++ /dev/null @@ -1,11 +0,0 @@ -*.ts -!lib/handlers/*.ts -!*.d.ts -!*.js - -# CDK asset staging directory -.cdk.staging -cdk.out - -# Samples -sample/ diff --git a/packages/static-hosting/.npmrc b/packages/static-hosting/.npmrc deleted file mode 100644 index 3b9bddfc..00000000 --- a/packages/static-hosting/.npmrc +++ /dev/null @@ -1 +0,0 @@ -10.1.0 \ No newline at end of file diff --git a/packages/static-hosting/.nvmrc b/packages/static-hosting/.nvmrc deleted file mode 100644 index ef1520fc..00000000 --- a/packages/static-hosting/.nvmrc +++ /dev/null @@ -1 +0,0 @@ -20.7.0 \ No newline at end of file diff --git a/packages/static-hosting/project.json b/packages/static-hosting/project.json index e2295d52..6bd116aa 100644 --- a/packages/static-hosting/project.json +++ b/packages/static-hosting/project.json @@ -9,8 +9,10 @@ "options": { "main": "packages/static-hosting/index.ts", "outputPath": "dist/static-hosting", - "tsConfig": "packages/static-hosting/tsconfig.app.json" - } + "tsConfig": "packages/static-hosting/tsconfig.app.json", + "assets": ["packages/static-hosting/lib/handlers/**"] + }, + "dependsOn": ["merge-gitignore"] }, "lint": { "executor": "@nx/eslint:lint", @@ -27,6 +29,12 @@ "publish": { "command": "node tools/scripts/publish.mjs static-hosting {args.ver} {args.tag}", "dependsOn": ["build"] + }, + "merge-gitignore": { + "executor": "nx:run-commands", + "options": { + "command": "node tools/scripts/merge-gitignore.mjs static-hosting" + } } }, "tags": []