Test CI and hosting.

This commit is contained in:
Brent Schroeter 2022-03-26 15:15:03 -07:00
parent b49ff9f0f4
commit 18c6ab739e
4 changed files with 15 additions and 23 deletions

View file

@ -1,5 +0,0 @@
{
"projects": {
"default": "built-to-spell"
}
}

13
.gitlab-ci.yml Normal file
View file

@ -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

View file

@ -1,16 +0,0 @@
{
"hosting": {
"public": "dist",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}

View file

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