From a98975e350f324ba5f2d04906070fa0b62780e0d Mon Sep 17 00:00:00 2001 From: vagrant Date: Thu, 18 Oct 2018 14:21:38 +0000 Subject: [PATCH] install by npm --- app/templates/app/layout.html | 1 - i5k/settings.py | 1 + package.json | 1 + webpack.config.js | 1 + 4 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/templates/app/layout.html b/app/templates/app/layout.html index 07b0a77f..4a647e64 100644 --- a/app/templates/app/layout.html +++ b/app/templates/app/layout.html @@ -16,7 +16,6 @@ {% if isAnalyticsEnabled %} {% endif%} - diff --git a/i5k/settings.py b/i5k/settings.py index 3a0af69f..e6ff4ca3 100755 --- a/i5k/settings.py +++ b/i5k/settings.py @@ -363,6 +363,7 @@ 'app/scripts/respond.src.js', 'app/scripts/underscore.js', 'app/scripts/error.js', + 'app/scripts/Universal-Federated-Analytics-Min.js', ), 'output_filename': 'app/scripts/app-layout.min.js', }, diff --git a/package.json b/package.json index 1b451512..8446874a 100644 --- a/package.json +++ b/package.json @@ -45,5 +45,6 @@ "underscore": "^1.7.0", "webpack": "^4.20.2", "webpack-cli": "^3.1.1" + "Universal-Federated-Analytics-Min.js": "https://github.com/digital-analytics-program/gov-wide-code.git" } } diff --git a/webpack.config.js b/webpack.config.js index dd518dff..92605a2e 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -22,6 +22,7 @@ const appScriptConfig = { { from: path.join(nodeModules, '/bootstrap/dist/js/bootstrap.js'), to: appScripts}, { from: path.join(nodeModules, '/underscore/underscore.js'), to: appScripts}, { from: path.join(nodeModules, '/Respond.js/dest/respond.src.js'), to: appScripts}, + { from: path.join(nodeModules, '/gov-wide-code-master/Universal-Federated-Analytics-Min.js'), to: appScripts}, { from: path.join(nodeModules, '/bootstrap/dist/css/bootstrap.css'), to: appStyles}, { from: path.join(nodeModules, '/bootstrap/dist/css/bootstrap.css.map'), to: appStyles}, { from: path.join(nodeModules, '/bootstrap/dist/fonts/glyphicons-halflings-regular.eot'), to: appFonts},