diff --git a/.firebaserc b/.firebaserc new file mode 100644 index 00000000..7ed4de95 --- /dev/null +++ b/.firebaserc @@ -0,0 +1,5 @@ +{ + "projects": { + "default": "entur-sdk" + } +} diff --git a/.gitignore b/.gitignore index c5990ea4..2ea7bac3 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ lib/ .idea/ .tern-port .docz +.firebase/ diff --git a/firebase.json b/firebase.json new file mode 100644 index 00000000..f0be1d08 --- /dev/null +++ b/firebase.json @@ -0,0 +1,10 @@ +{ + "hosting": { + "public": ".docz/dist", + "ignore": [ + "firebase.json", + "**/.*", + "**/node_modules/**" + ] + } +} diff --git a/package.json b/package.json index 179aa13f..95187404 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "prepublishOnly": "npm run build", "docs": "docz dev", "build:docs": "docz build", + "deploy:docs": "npm run build:docs && firebase deploy", "fetch-schemas": "ts-node scripts/fetch-schemas.ts" }, "dependencies": {