diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-10-11 22:20:08 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-10-12 13:10:04 +0300 |
commit | cdcbc8d6288ab7264ecb676e81fba56f2c5e439e (patch) | |
tree | af78ecd21cd9825d25b1094ffe3195d32d16d4e9 | |
parent | 5f7e20f9ff4aa92cef527d2e743dc43a238b326c (diff) |
Add anothermod2/v0.1.0mod1/v0.1.0
-rw-r--r-- | mod1/assets/core/index.js | 0 | ||||
-rw-r--r-- | mod1/assets/core/util/hello.js | 5 | ||||
-rw-r--r-- | mod1/assets/core/util/hello1.js | 5 | ||||
-rw-r--r-- | mod1/assets/core/util/hello2.js | 3 | ||||
-rw-r--r-- | mod1/assets/core/util/index.js | 3 | ||||
-rw-r--r-- | mod2/assets/core/config.ts (renamed from mod1/assets/core/config.ts) | 2 | ||||
-rw-r--r-- | mod2/assets/core/util/data.json | 1 | ||||
-rw-r--r-- | mod2/assets/core/util/hello1.js | 3 | ||||
-rw-r--r-- | mod2/assets/core/util/hello2.js | 3 | ||||
-rw-r--r-- | mod2/assets/core/util/hello3.js | 3 | ||||
-rw-r--r-- | mod2/assets/core/util/index.js | 3 | ||||
-rw-r--r-- | mod2/go.mod | 3 |
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 |