Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugoTestModulesJS.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod1/assets/core/index.js0
-rw-r--r--mod1/assets/core/util/hello.js5
-rw-r--r--mod1/assets/core/util/hello1.js5
-rw-r--r--mod1/assets/core/util/hello2.js3
-rw-r--r--mod1/assets/core/util/index.js3
-rw-r--r--mod2/assets/core/config.ts (renamed from mod1/assets/core/config.ts)2
-rw-r--r--mod2/assets/core/util/data.json1
-rw-r--r--mod2/assets/core/util/hello1.js3
-rw-r--r--mod2/assets/core/util/hello2.js3
-rw-r--r--mod2/assets/core/util/hello3.js3
-rw-r--r--mod2/assets/core/util/index.js3
-rw-r--r--mod2/go.mod3
12 files changed, 27 insertions, 7 deletions
diff --git a/mod1/assets/core/index.js b/mod1/assets/core/index.js
deleted file mode 100644
index e69de29..0000000
--- a/mod1/assets/core/index.js
+++ /dev/null
diff --git a/mod1/assets/core/util/hello.js b/mod1/assets/core/util/hello.js
deleted file mode 100644
index 475473a..0000000
--- a/mod1/assets/core/util/hello.js
+++ /dev/null
@@ -1,5 +0,0 @@
-import { defaultConfig } from '../config';
-
-export function hello() {
- return defaultConfig.greeting;
-}
diff --git a/mod1/assets/core/util/hello1.js b/mod1/assets/core/util/hello1.js
new file mode 100644
index 0000000..e2d39ca
--- /dev/null
+++ b/mod1/assets/core/util/hello1.js
@@ -0,0 +1,5 @@
+import { defaultConfig } from '../config';
+
+export function hello1() {
+ return `Hello1 from mod1: ${defaultConfig.greeting}`;
+}
diff --git a/mod1/assets/core/util/hello2.js b/mod1/assets/core/util/hello2.js
new file mode 100644
index 0000000..6c8b48d
--- /dev/null
+++ b/mod1/assets/core/util/hello2.js
@@ -0,0 +1,3 @@
+export function hello2() {
+ return 'Hello2 from mod1';
+}
diff --git a/mod1/assets/core/util/index.js b/mod1/assets/core/util/index.js
index d077f59..0e39e2a 100644
--- a/mod1/assets/core/util/index.js
+++ b/mod1/assets/core/util/index.js
@@ -1 +1,2 @@
-export * from './hello.js';
+export * from './hello1.js';
+export * from './hello2.js';
diff --git a/mod1/assets/core/config.ts b/mod2/assets/core/config.ts
index 9dc1664..f2677ad 100644
--- a/mod1/assets/core/config.ts
+++ b/mod2/assets/core/config.ts
@@ -3,5 +3,5 @@ interface Config {
}
export const defaultConfig: Config = {
- greeting: 'Hello Hugo!'
+ greeting: 'greeting configured in mod2'
};
diff --git a/mod2/assets/core/util/data.json b/mod2/assets/core/util/data.json
new file mode 100644
index 0000000..393fc81
--- /dev/null
+++ b/mod2/assets/core/util/data.json
@@ -0,0 +1 @@
+{ "Hugo": "Rocks!" } \ No newline at end of file
diff --git a/mod2/assets/core/util/hello1.js b/mod2/assets/core/util/hello1.js
new file mode 100644
index 0000000..97bbc7d
--- /dev/null
+++ b/mod2/assets/core/util/hello1.js
@@ -0,0 +1,3 @@
+export function hello1() {
+ return 'Hello1 from mod2';
+}
diff --git a/mod2/assets/core/util/hello2.js b/mod2/assets/core/util/hello2.js
new file mode 100644
index 0000000..28dfb6f
--- /dev/null
+++ b/mod2/assets/core/util/hello2.js
@@ -0,0 +1,3 @@
+export function hello2() {
+ return 'Hello2 from mod2';
+}
diff --git a/mod2/assets/core/util/hello3.js b/mod2/assets/core/util/hello3.js
new file mode 100644
index 0000000..e82f096
--- /dev/null
+++ b/mod2/assets/core/util/hello3.js
@@ -0,0 +1,3 @@
+export function hello3() {
+ return 'Hello3 from mod2';
+}
diff --git a/mod2/assets/core/util/index.js b/mod2/assets/core/util/index.js
new file mode 100644
index 0000000..d59a46f
--- /dev/null
+++ b/mod2/assets/core/util/index.js
@@ -0,0 +1,3 @@
+export * from './hello1.js';
+export * from './hello2.js';
+export * from './hello3.js';
diff --git a/mod2/go.mod b/mod2/go.mod
new file mode 100644
index 0000000..da52eb6
--- /dev/null
+++ b/mod2/go.mod
@@ -0,0 +1,3 @@
+module github.com/gohugoio/hugoTestModulesJS/mod2
+
+go 1.15