"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.createReactApp = createReactApp;
var _pulumiAws = require("@webiny/pulumi-aws");
var _plugins = require("./react/plugins");
function createReactApp(projectAppParams) {
  const builtInPlugins = [(0, _plugins.uploadAppToS3)({
    folder: projectAppParams.folder
  })];
  const customPlugins = projectAppParams.plugins ? [...projectAppParams.plugins] : [];
  return {
    id: projectAppParams.name,
    name: projectAppParams.name,
    cli: {
      // Default args for the "yarn webiny watch ..." command (we don't need a "deploy" option while developing).
      watch: {
        deploy: false
      }
    },
    pulumi: (0, _pulumiAws.createReactPulumiApp)(projectAppParams),
    plugins: [builtInPlugins, customPlugins]
  };
}

//# sourceMappingURL=createReactApp.js.map