config.js 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. "use strict";
  2. var path = require("path");
  3. /**
  4. * @type {{controlPanel: {jsFile: string, baseDir: *}, socketIoScript: string, configFile: string, client: {shims: string}}}
  5. */
  6. module.exports = {
  7. controlPanel: {
  8. jsFile: "/js/app.js",
  9. baseDir: path.join(__dirname, "control-panel")
  10. },
  11. templates: {
  12. scriptTag: path.join(__dirname, "..", "templates/script-tags.tmpl"),
  13. scriptTagSimple: path.join(__dirname, "..", "templates/script-tags-simple.tmpl"),
  14. connector: path.join(__dirname, "..", "templates/connector.tmpl")
  15. },
  16. socketIoScript: "/public/socket.io.min.1.6.0.js",
  17. configFile: "default-config.js",
  18. userFile: "bs-config.js",
  19. template: path.join(__dirname, "..", "templates/cli-template.js"),
  20. httpProtocol: {
  21. path: "/__browser_sync__"
  22. },
  23. client: {
  24. shims: "/client/client-shims.js"
  25. },
  26. errors: {
  27. "server+proxy": "Invalid config. You cannot specify both server & proxy options.",
  28. "proxy+https": "Invalid config. You set https: true, but your proxy target doesn't reflect this."
  29. }
  30. };
  31. //# sourceMappingURL=config.js.map