Skip to content

Commit

Permalink
Update mod2
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Nov 3, 2020
1 parent c2e292c commit 0db16a7
Show file tree
Hide file tree
Showing 9 changed files with 67 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
public/
node_modules/
assets/jsconfig.json
assets/jsconfig.json
2 changes: 1 addition & 1 deletion assets/js/lib/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export function hello4() {
return 'Hello from lib in the main project';
return 'Hello from lib in the main project!!';
}
1 change: 1 addition & 0 deletions assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import * as data from 'core/util/data.json';
// But doing import from 'core/util' you will get the index.js file from mod1
// (higher up in the import list), so we need to be explicit:
import { hello3 } from 'core/util/hello3';

// From main
import { hello4 } from './lib';
// From the Hugo template.
Expand Down
11 changes: 0 additions & 11 deletions assets/jsconfig.json

This file was deleted.

3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ require (
github.com/bep/hugo-jslibs/alpinejs v0.5.14 // indirect
github.com/date-fns/date-fns v2.16.1+incompatible // indirect
github.com/gohugoio/hugoTestModulesJS/mod1 v0.2.0 // indirect
github.com/gohugoio/hugoTestModulesJS/mod2 v0.1.0 // indirect
github.com/gohugoio/hugoTestModulesJS/mod2 v0.2.0 // indirect
)


1 change: 1 addition & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ github.com/gohugoio/hugoTestModulesJS/mod1 v0.2.0/go.mod h1:IfctxwCwBB4wVUA+bUb4
github.com/gohugoio/hugoTestModulesJS/mod2 v0.0.0-20201011192008-decf54abafdd h1:Uu3lXkigL0q13sVksE7NVnoPTyxx4ViYKrNA70QDKA4=
github.com/gohugoio/hugoTestModulesJS/mod2 v0.0.0-20201011192008-decf54abafdd/go.mod h1:uynOkor8I03PIUuDZN4NYQ+Bmkye7vNLV5tRUBC2+10=
github.com/gohugoio/hugoTestModulesJS/mod2 v0.1.0/go.mod h1:uynOkor8I03PIUuDZN4NYQ+Bmkye7vNLV5tRUBC2+10=
github.com/gohugoio/hugoTestModulesJS/mod2 v0.2.0/go.mod h1:uynOkor8I03PIUuDZN4NYQ+Bmkye7vNLV5tRUBC2+10=
13 changes: 13 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions package.hugo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "hugotestprojectjsmodimports",
"version": "1.0.0",
"description": "Test project used for integration testing.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/gohugoio/hugoTestProjectJSModImports.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/gohugoio/hugoTestProjectJSModImports/issues"
},
"homepage": "https://github.com/gohugoio/hugoTestProjectJSModImports#readme"
}
29 changes: 29 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"author": "",
"bugs": {
"url": "https://github.com/gohugoio/hugoTestProjectJSModImports/issues"
},
"comments": {
"dependencies": {
"date-fns": "github.com/gohugoio/hugoTestModulesJS/mod2"
},
"devDependencies": {}
},
"dependencies": {
"date-fns": "^2.16.1"
},
"description": "Test project used for integration testing.",
"devDependencies": {},
"homepage": "https://github.com/gohugoio/hugoTestProjectJSModImports#readme",
"license": "ISC",
"main": "index.js",
"name": "hugotestprojectjsmodimports",
"repository": {
"type": "git",
"url": "git+https://github.com/gohugoio/hugoTestProjectJSModImports.git"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"version": "1.0.0"
}

0 comments on commit 0db16a7

Please sign in to comment.