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",