aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/config/paths.js
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-08-22 15:29:35 +0200
committerGitHub <noreply@github.com>2016-08-22 15:29:35 +0200
commit2d5742c8521dbc935bb77d9ecbc86f193556aff0 (patch)
tree507517b139bfa73fe4a00ec571adc919647ea8f2 /server/sonar-web/config/paths.js
parent6cee9fdcad049ca21606983b05a0a4cfc13ffd53 (diff)
downloadsonarqube-2d5742c8521dbc935bb77d9ecbc86f193556aff0.tar.gz
sonarqube-2d5742c8521dbc935bb77d9ecbc86f193556aff0.zip
optimize js build (#1145)
Diffstat (limited to 'server/sonar-web/config/paths.js')
-rw-r--r--server/sonar-web/config/paths.js27
1 files changed, 27 insertions, 0 deletions
diff --git a/server/sonar-web/config/paths.js b/server/sonar-web/config/paths.js
new file mode 100644
index 00000000000..1484c1b0607
--- /dev/null
+++ b/server/sonar-web/config/paths.js
@@ -0,0 +1,27 @@
+/*
+ * SonarQube
+ * Copyright (C) 2009-2016 SonarSource SA
+ * mailto:contact AT sonarsource DOT com
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+var path = require('path');
+
+var base = process.env.OUTPUT || path.join(__dirname, '../src/main/webapp');
+
+module.exports = {
+ jsBuild: path.join(base, 'js/bundles'),
+ cssBuild: path.join(base, 'css')
+};