diff --git a/.dockerignore b/.dockerignore index 701236960..939397dd2 100644 --- a/.dockerignore +++ b/.dockerignore @@ -3,6 +3,10 @@ Dockerfile .github # Created by .ignore support plugin (hsz.mobi) + +# Firebase +.firebase + ### Node template # Logs logs @@ -97,4 +101,4 @@ sw.* .postwoman # File explorer -.directory \ No newline at end of file +.directory diff --git a/.firebaserc b/.firebaserc new file mode 100644 index 000000000..55849bd02 --- /dev/null +++ b/.firebaserc @@ -0,0 +1,14 @@ +{ + "projects": { + "default": "postwoman-api" + }, + "targets": { + "postwoman-api": { + "hosting": { + "postwoman": [ + "postwoman" + ] + } + } + } +} diff --git a/.gitignore b/.gitignore index f541e327a..cc00b1dee 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,8 @@ # Created by .ignore support plugin (hsz.mobi) + +# Firebase +.firebase + ### Node template # Logs logs @@ -93,4 +97,4 @@ sw.* .postwoman # File explorer -.directory \ No newline at end of file +.directory diff --git a/.travis.yml b/.travis.yml index 8a7d2ff69..0223e03ab 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,30 +15,39 @@ language: node_js node_js: - "12" +addons: + apt: + packages: + - libgconf-2-4 # cypress binary dependency + env: - DEPLOY_ENV=POSTWOMAN_IO cache: + npm: true directories: - "node_modules" + - ~/.cache branches: only: - "master" install: + - "npm install firebase-tools" - "npm install" + +before_script: + - "npm run test" + +script: + - "cd functions" + - "npm install" + - "cd .." - "npm run generate" notifications: webhooks: https://www.travisbuddy.com -deploy: - provider: pages - skip-cleanup: true - # Refer to: https://docs.travis-ci.com/user/deployment/pages/#Setting-the-GitHub-token - github-token: $GITHUB_ACCESS_TOKEN - target-branch: gh-pages - local-dir: dist - on: - branch: master +after_success: + - firebase deploy --token $FIREBASE_TOKEN diff --git a/README.md b/README.md index bce352be5..b679ab4c6 100644 --- a/README.md +++ b/README.md @@ -5,13 +5,13 @@ When I wrote this, only God and I understood what I was doing. Now, only God kno
- API request builder - Helps you create your requests faster, saving you precious time on your development. Subscribe for updates + API request builder - Helps you create your requests faster, saving you precious time on your development - Subscribe for updates
-[](https://opencollective.com/postwoman) [](https://travis-ci.com/liyasthomas/postwoman) [](https://github.com/liyasthomas/postwoman/releases/latest) [](https://github.com/liyasthomas/postwoman/archive/master.zip) [](https://github.com/liyasthomas/postwoman/blob/master/LICENSE) [](https://github.com/liyasthomas/postwoman/issues) [](https://postwoman.io) [](https://www.paypal.me/liyascthomas) [](https://www.buymeacoffee.com/liyasthomas) [](https://t.me/postwoman_app) [](https://discord.gg/GAMWxmR) +[](https://travis-ci.com/liyasthomas/postwoman) [](https://github.com/liyasthomas/postwoman/releases/latest) [](https://github.com/liyasthomas/postwoman/issues) [](https://postwoman.io) [](https://opencollective.com/postwoman) [](https://www.paypal.me/liyascthomas) [](https://t.me/postwoman_app) [](https://discord.gg/GAMWxmR)
Built with ❤︎ by @@ -26,7 +26,7 @@ When I wrote this, only God and I understood what I was doing. Now, only God kno **Chat here: _[Telegram](https://t.me/postwoman_app), [Discord](https://discord.gg/GAMWxmR)_** -**Donate here: _[PayPal](https://www.paypal.me/liyascthomas), [Buy me a coffee](https://www.buymeacoffee.com/liyasthomas)_** +**Donate here: _[PayPal](https://www.paypal.me/liyascthomas), [Open Collective](https://opencollective.com/postwoman), [Patreon](https://www.patreon.com/liyasthomas)_**