[*] Make sure cloud deploy can access .babelrc

Summary:
Now that .babelrc is in client-app, we need to make it an exception in the
.dockerignore file. Additionally, this means that the client-app directory will
exist during the postinstall script in the cloud environment, so we need a
stricter check to figure out if the client-app needs to be built or not.

Test Plan: deployed to staging

Reviewers: evan, juan

Reviewed By: juan

Differential Revision: https://phab.nylas.com/D4008
This commit is contained in:
Halla Moore 2017-02-21 18:03:19 -08:00
parent c77c8becb9
commit 87aa1a86ad
2 changed files with 2 additions and 1 deletions

View file

@ -3,6 +3,7 @@
arclib arclib
**/node_modules **/node_modules
packages/client-* packages/client-*
!packages/client-app/.babelrc
*.swp *.swp
*~ *~

View file

@ -82,7 +82,7 @@ async function npm(cmd, options) {
} }
async function electronRebuild() { async function electronRebuild() {
if (!fs.existsSync(path.join("packages", "client-app"))) { if (!fs.existsSync(path.join("packages", "client-app", "apm"))) {
console.log("\n---> No client app to rebuild. Moving on") console.log("\n---> No client app to rebuild. Moving on")
return; return;
} }