Skip to content
Snippets Groups Projects
Commit e5b0370a authored by Tom Robinson's avatar Tom Robinson
Browse files

Merge branch 'master' of github.com:metabase/metabase-init into tooltip_rounding

parents 78c0ea9b 7fa93c50
Branches
Tags
No related merge requests found
......@@ -19,6 +19,7 @@ profiles.clj
/*.lock.db
/*.trace.db
/resources/frontend_client/app/dist/
/resources/frontend_client/index.html
/node_modules/
/.babel_cache
/coverage
......
#!/bin/bash
set -eo pipefail
BASEDIR=$(dirname $0)
source "$BASEDIR/functions"
......
#!/bin/bash
set -eo pipefail
BASEDIR=$(dirname $0)
source "$BASEDIR/functions"
......
#!/bin/bash
set -eo pipefail
BASEDIR=$(dirname $0)
source "$BASEDIR/functions"
......
#!/bin/bash
set -eo pipefail
BASEDIR=$(dirname $0)
PROJECT_ROOT=$(cd ${BASEDIR}/..; pwd)
......@@ -7,6 +8,9 @@ ARTIFACTS_DIR="$PROJECT_ROOT/deploy/artifacts"
ARTIFACTS_S3BUCKET=${S3BUCKET:=metabase-artifacts}
BRANCH=$(cd ${PROJECT_ROOT}; $(which git) rev-parse --abbrev-ref HEAD)
# OpsWorks creates a deploy branch. We'll use master in this case
[[ "$BRANCH" == "deploy" ]] && BRANCH="master"
COMMITISH=$(cd ${PROJECT_ROOT}; $(which git) rev-parse --short HEAD)
DATE=$(date +%Y-%m-%d)
DEFAULT_RELEASE_ZIP_FILE_NAME="metabase-$BRANCH-$DATE-$COMMITISH.zip"
......@@ -24,9 +28,6 @@ upload_release_artifacts() {
}
mk_release_artifacts() {
# OpsWorks creates a deploy branch. We'll use master in this case
[[ "$BRANCH" == "deploy" ]] && BRANCH="master"
METABASE_JAR_NAME="metabase-standalone.jar"
RELEASE_TYPE="aws-eb-docker"
RELEASE_JAR_FILE_NAME=${METABASE_JAR_NAME%-standalone.jar}-$BRANCH-$DATE-$COMMITISH.jar
......
#!/bin/bash
set -eo pipefail
BASEDIR=$(dirname $0)
source "$BASEDIR/functions"
......
#!/bin/bash
set -eo pipefail
BASEDIR=$(dirname $0)
source "$BASEDIR/functions"
......
......@@ -8,9 +8,6 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<title>Metabase</title>
<link rel="stylesheet" href="/app/dist/styles.bundle.css"/>
<script charset="utf-8" src="/app/dist/vendor.bundle.js"></script>
<script charset="utf-8" src="/app/dist/app.bundle.js"></script>
</head>
<body ng-controller="Corvus">
......
......@@ -7,6 +7,7 @@ var webpackPostcssTools = require('webpack-postcss-tools');
var CommonsChunkPlugin = webpack.optimize.CommonsChunkPlugin;
var NgAnnotatePlugin = require('ng-annotate-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var _ = require('underscore');
var glob = require('glob');
......@@ -42,7 +43,9 @@ module.exports = {
// output to "dist"
output: {
path: __dirname + '/resources/frontend_client/app/dist',
filename: '[name].bundle.js'
// NOTE: the filename on disk won't include "?[chunkhash]" but the URL in index.html generated by HtmlWebpackPlugin will:
filename: '[name].bundle.js?[chunkhash]',
publicPath: '/app/dist'
},
module: {
......@@ -114,7 +117,13 @@ module.exports = {
minChunks: Infinity // (with more entries, this ensures that no other module goes into the vendor chunk)
}),
// Extracts initial CSS into a standard stylesheet that can be loaded in parallel with JavaScript
new ExtractTextPlugin('styles.bundle.css')
// NOTE: the filename on disk won't include "?[chunkhash]" but the URL in index.html generated by HtmlWebpackPlugin will:
new ExtractTextPlugin('[name].bundle.css?[contenthash]'),
new HtmlWebpackPlugin({
filename: '../../index.html',
template: 'resources/frontend_client/index_template.html',
inject: 'head'
})
],
// CSSNext configuration
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment