From d27b2f49e19a978780001b5cfb1f7965206dcccd Mon Sep 17 00:00:00 2001 From: sustained Date: Sun, 21 Jul 2019 13:13:57 +0100 Subject: [PATCH 1/3] Add submodule. --- .gitmodules | 3 +++ vendor/auth-frontend-shared | 1 + 2 files changed, 4 insertions(+) create mode 100644 .gitmodules create mode 160000 vendor/auth-frontend-shared diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..c5abf3d --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "vendor/auth-frontend-shared"] + path = vendor/auth-frontend-shared + url = git@github.com:authenticus/auth-frontend-shared.git diff --git a/vendor/auth-frontend-shared b/vendor/auth-frontend-shared new file mode 160000 index 0000000..7327d1d --- /dev/null +++ b/vendor/auth-frontend-shared @@ -0,0 +1 @@ +Subproject commit 7327d1de3e384fae7beae29dc0dd0d0c1b406c54 From f0aa71880bcf9fb12902016925dcf066f452055b Mon Sep 17 00:00:00 2001 From: sustained Date: Sun, 21 Jul 2019 13:16:21 +0100 Subject: [PATCH 2/3] Add webpack alias. --- nuxt.config.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/nuxt.config.js b/nuxt.config.js index cb3b609..9d95168 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -1,3 +1,5 @@ +import { resolve } from "path"; + export default { mode: "universal", /* @@ -48,6 +50,11 @@ export default { /* ** You can extend webpack config here */ - extend(config, ctx) {} + extend(config, ctx) { + config.resolve.alias["~utils"] = resolve( + __dirname, + "vendor/auth-frontend-shared" + ); + } } }; From 47e8ee78251c60eb95b082de365dc7555bce6425 Mon Sep 17 00:00:00 2001 From: sustained Date: Sun, 21 Jul 2019 13:31:44 +0100 Subject: [PATCH 3/3] Fix typo. --- nuxt.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nuxt.config.js b/nuxt.config.js index 9d95168..36ab48b 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -51,7 +51,7 @@ export default { ** You can extend webpack config here */ extend(config, ctx) { - config.resolve.alias["~utils"] = resolve( + config.resolve.alias["~shared"] = resolve( __dirname, "vendor/auth-frontend-shared" );