From 18c6ab739ee57074b37b7a2006c00581fcbf416c Mon Sep 17 00:00:00 2001 From: Brent Schroeter Date: Sat, 26 Mar 2022 15:15:03 -0700 Subject: [PATCH] Test CI and hosting. --- .firebaserc | 5 ----- .gitlab-ci.yml | 13 +++++++++++++ firebase.json | 16 ---------------- package.json | 4 ++-- 4 files changed, 15 insertions(+), 23 deletions(-) delete mode 100644 .firebaserc create mode 100644 .gitlab-ci.yml delete mode 100644 firebase.json diff --git a/.firebaserc b/.firebaserc deleted file mode 100644 index 36eb055..0000000 --- a/.firebaserc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "projects": { - "default": "built-to-spell" - } -} diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..026b4ce --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,13 @@ +image: node:lts + +workflow: + rules: + - if: '$CI_COMMIT_BRANCH == "production-test"' + +pages: + script: + - npm install + - npm run build + artifacts: + paths: + - public diff --git a/firebase.json b/firebase.json deleted file mode 100644 index 2c33c29..0000000 --- a/firebase.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "hosting": { - "public": "dist", - "ignore": [ - "firebase.json", - "**/.*", - "**/node_modules/**" - ], - "rewrites": [ - { - "source": "**", - "destination": "/index.html" - } - ] - } -} diff --git a/package.json b/package.json index b2757e0..2936540 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,8 @@ "main": "index.js", "scripts": { "lint": "eslint src", - "deploy": "rm -r .cache ; parcel build -d dist src/index.html && firebase deploy --only=hosting", - "start": "rm -r .cache ; parcel -d dist src/index.html" + "deploy": "rm -r .cache ; parcel build -d public src/index.html", + "start": "rm -r .cache ; parcel -d public src/index.html" }, "repository": { "type": "git",